Free Public CDN Services
To load jQuery library from Google CDN, copy and paste the following HTML snippet in your web page:
AngularJS, Dojo, jQuery, jQuery UI, jQuery Mobile, MooTools, Prototype, SPF, etc.
To load jQuery from Microsoft CDN, simply add the following
<script> tag to your web page:
jQuery, jQuery Migrate, jQuery UI, jQuery Mobile, Modernizr, Ajax Control Toolkit, JSHint, Globalize, Bootstrap, Bootstrap TouchCarousel, etc.
To load jQuery from jsDelivr CDN, embed the following code:
Almost 1200 projects hosted including jQuery, Modernizr, Bootstrap, Font Awesome, etc.
Sponsored by CloudFlare, cdnjs is an open source CDN that hosts everything from jQuery and Modernizr to Bootstrap. Currently used by ~700k websites worldwide.
To load jQuery from cdnjs CDN, embed the following code to your web page:
To load jQuery library from jQuery CDN, add the following tag to your web page:
jQuery Core, jQuery UI, jQuery Mobile, jQuery Color, QUnit, PEP.
jQuery CDN Fallback
Using a CDN to load jQuery most likely will speed up your website. Moreover, your visitor may already have it cached from a previous visit to another site using the same CDN. But what if the CDN goes down for some reason? The best solution would be to use the CDN version of jQuery first, and if it fails, load the local copy.
Here is a fallback technique:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="path_to_your_js_lib/jquery.js"></script>')</script>
Test-drive a CDN
Free of charge. No contract, no commitment.
Excellent coverage with 27 edge servers in 22 countries, transparent pay-as-you-go pricing with no restriction on the number of websites like other CDNs. Free 14-day trial comes with all features enabled. Get setup within minutes, no DNS changes or manual configurations necessary.
No bandwidth limit. No credit card required.