BT

Microsoft Creates a CDN for AJAX and jQuery Libraries

by Abel Avram on Sep 17, 2009 |

In an attempt to lure developers and web sites to use ASP.NET, Microsoft has created a special CDN that serves Microsoft AJAX and jQuery scripts to all interested for free.

The scripts currently stored on Microsoft’s CDN are:

Microsoft AJAX v. 0909 (preview)

  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.debug.js

jQuery v. 1.3.2

  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.min.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2-vsdoc.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.min-vsdoc.js

To get such a script from the CDN, one needs to use the script tag in an ASP page as following:

<script src="http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.js" type="text/javascript"></script>
<script src="http://ajax.Microsoft.com/ajax/jquery-1.3.2.js" type="text/javascript"></script>

Another way to load the scripts from CDN is by specifying EnableCdn=”true”:

<asp:ScriptManager ID=”SM1” EnableCdn=”true” runat=”server” />

Microsoft’s CDN also contains debug versions of the AJAX library and minified ones of the jQuery library.

The service is offered free of charge both to non-commercial and commercial applications, without the need for registration, according to the Terms of Use (docx).

Hello stranger!

You need to Register an InfoQ account or to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Similar to what Google has been doing since... by Thom Nichols

code.google.com/apis/ajaxlibs/
Just so ya know... :)

good for us by zhang sword

yeah,it's good for us,isn't it

Undefined acronymns equal sloppy writing by Steve Macdonald

PLEASE do not use acronyms without defining them anywhere. That is SO lazy and sloppy. Especially those such as "CDN" which has no widely understood definition (other than "Canadian").

Re: Undefined acronymns equal sloppy writing by Abel Avram

CDN = Content Delivery Network
I did not explain it, not because of laziness, but because I thought it was an acronym well known by our readers. If I overuse explanations some will say that I consider them stupid, which I don't.

Re: Undefined acronymns equal sloppy writing by John Peng

I didn't know that infoQ was an elite network slective on qualifying "our readers". Well, I happened to be one of the long time stupid readers who didn't know this acronym.

Re: Undefined acronymns equal sloppy writing by Wim De Blende

Yet another stupid reader :p
But I googled it ;)

Re: Undefined acronymns equal sloppy writing by Tom Hancock

Didn't define AJAX either!

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

7 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT