📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials jQuery in Practice jQuery CDN and Versioning

jQuery CDN and Versioning

3 min read
Load jQuery from a CDN for browser caching and geographic speed. Use the minified build in production and the slim build when you only need DOM and events. Include a local fallback if the CDN is unavailable.

jQuery CDN and Slim Builds

<!-- Full build -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>

<!-- Slim build (no ajax or effects, ~6KB smaller) -->
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js"></script>

Use the slim build when you only need DOM manipulation and events.