Ask questions and get good answers on jQuery

1
1

I've heard Microsoft have a CDN (Content Delivery Network) for jQuery, as do Google (both linked and through the google.Load() method). Are there others, and has anyone done comparisons of performance and reliability?

asked Jan 29 '10 at 08:16

Bernhard%20Hofmann's gravatar image

Bernhard Hofmann
926

edited Jan 29 '10 at 22:43

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


I think you should use the Google CDN. It's simple statistics. Those who would consider using the MS CDN for jQuery will always be a minority. There are too many non-MS developers using jQuery who will use Google's and wouldn't consider using Microsoft's. Since one of the big wins with a public CDN is improved caching, splitting usage among multiple CDNs decreases the potential for that benefit.

Another consideration is that calling it via Google you'll always have the latest version:

http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

will return the last 1.xx version of jQuery minified (now the 1.4). And the google minified version is 6k lighter than the others.

answered Jan 29 '10 at 22:41

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

edited Jan 29 '10 at 22:50

Even Stackoverflow is using Google: check the page sources at http://stackoverflow.com

(Jan 30 '10 at 10:25) Pietro Polsinelli ♦♦

answered Jan 30 '10 at 10:27

Pietro%20Polsinelli's gravatar image

Pietro Polsinelli ♦♦
407

Your answer
toggle preview

jQuery main site - Matteo Bicocchi