views:

1277

answers:

5

Does anyone know of a good/free CDN? We're hosting a small web app and want to load the Jquery JavaScripts from a CDN. Advice would be appreciated.

+19  A: 

Both Google and Microsoft offer the latest jQuery from their distribution networks. Included links go to the pages listing all of the resources available from the respective CDNs.

tvanfosson
A: 

If its just the jQuery API you want to host then you could use either Google or Microsoft CDN's as they both host the js files for this API

Microsoft : http://www.asp.net/ajax/CDN/
Google : http://code.google.com/apis/ajaxlibs/

Gavin Draper
A: 

Check this link for the details of Microsoft's CDN and how to enable your apps to use it:

http://weblogs.asp.net/scottgu/archive/2009/09/15/announcing-the-microsoft-ajax-cdn.aspx

slugster
A: 

Hi, thanks for the responses. We took a quick look at the Google Hosting (before posting here), and were initially very excited.

On closer inspection, we were a bit disappointed that they did not have a way to link to the latest update of Jquery - basically you link to a version, and if there is a newer version, you then have to manually update all your links to the newest one.

But still, it solves the problem for us, so thanks.

DeepandMeaningless
+4  A: 

With the Google CDN you can use the latest version of JQuery

For instance, if you want the lastest 1.X.X, the 1.4.X otherwise the specific 1.4.2 version just link your page to one of those:

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

Same thing with the other hosted javascript libs.

Filippo
An Example of script linking:<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
Filippo