Which is the Fastest Bootstrap CDN and jQuery CDN

Do you use the fastest Boostrap CDN for loading scripts like Bootstrap and jQuery on your site? Both these scripts power thousands of sites, and most site owners use the power of free third party popular CDNs to host these scripts, without increasing their server load and spending server monthly bandwidth.

Default CDN

If you are like me, then you are probably using the default choices. Most people load jQuery through Google Developers hosted libraries and Bootstrap through BootstrapCDN service which are the most commonly used options. We use the following sources to load jQuery and Bootstrap.

https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css

These are the most popular CDNs for these scripts but are they the fastest and most reliable CDN.

Fastest Bootstrap CDN

Let’s see what CDNperf has to say about the speed of different CDNs. This is a site which compares popular Content Delivery Networks (CDN) for latency, uptime, downtime, etc.

cdn speeds

The clear winner with least latency consistently is at the bottom (black line).  That is the Microsoft CDN! Its called the Microsoft Ajax Content Delivery Network and used to be previously accessible at ajax.microsoft.com and now has been renamed to ajax.aspnetcdn.com.

So here are the source files I am loading my files now on this site.

http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.3.min.js
http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/bootstrap.min.js
http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/css/bootstrap.min.css

Microsoft Ajax CDN hosts both jquery and Bootstrap scripts and many other popular scripts. Simply change your current source URL to these and enjoy a faster CDN experience, and a faster Bootstrap experience as well. Here are more sources to get free jQuery CDN services.

Why use a CDN? A content delivery network will allow users to access the file nearest their geographical location, which will help to increase site speed. We also use MaxCDN and Amazon Cloudfront to host several static files on this site in addition now to Microsoft CDN.

Why load jQuery/bootstrap by CDN? These are common scripts and using popular  CDN allows these files to be cached in your browsers as you visit multiple sites. These are heavy scripts, so serving from third party free servers which are through CDN allows faster delivery of these heavy scripts to the user browser, and your server bears no extra load and saves your hosting bandwidth which heavy scripts can quickly drain.

Of course, they host many other scripts and you can use them too. The benefit of using many scripts through one CDN service is that you have fewer HTTP requests to new domains and this also helps to increase site speed.