DCSIMG
You are reading a MIX Online Opinion. In which we speak our minds. karstenj Meet Karsten Arrow

Opinion

4Comment Retweet

jQuery Love: Microsoft’s CDN Service for Microsoft AJAX Library and jQuery

Oct 02, 2009 In Development By Karsten Januszewski

jQuery Love: Microsoft’s CDN Service for Microsoft AJAX Library and jQuery

A few weeks back, Microsoft announced a new content delivery network (CDN) that supports hosting for both the Microsoft AJAX libraries and the jQuery library. This is an exciting development and big step toward improving the performance of AJAX applications: by referencing the libraries hosted on the CDN, you can rest assured that users hitting your website will be served a copy of the library from a server local to their location.

The move also highlights Microsoft's commitment to supporting the jQuery library.  Not only does the CDN host jQuery 1.3.2, it also hosts the jQuery VSDOC file, which provides intellisense for jQuery from within Visual Studio. (For more on using jQuery with Visual Studio, see http://blogs.msdn.com/webdevtools/archive/2008/11/18/jscript-intellisense-faq.aspx.) In addition, the CDN hosts the popular plug-in jQuery.Validate, which makes adding client-side validation to forms very easy.

If it isn’t clear yet, Microsoft—and we at Mix Online —are big fans of jQuery.  In fact, we’ll be updating Mix Online itself to use the jQuery from Microsoft’s CDN shortly.  And the next versions of Oomph and Glimmer will use the CDN, as will a jQuery-dependent project I’m currently working on (top secret!).

For more about Mix Online’s support for jQuery, check out Glimmer (an interactive designer for jQuery). And for more general info, check out Yehuda Katz's article on The Rise of jQuery and Dave Ward's piece on ASP.NET Developers and jQuery.

You can read more about the new CDN here. Below you'll find the short version—with all the URLs you need to know:

Microsoft Ajax Releases on the CDN:

Microsoft Ajax version 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

http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxWebForms.js

http://ajax.microsoft.com/ajax/beta/0909/MicrosoftAjaxWebForms.debug.js

jQuery Releases on the CDN:

jQuery version 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

jQuery Validation Releases on the CDN:

jQuery Validate 1.5.5

http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.js

http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js

http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate-vsdoc.js

Follow the Conversation

4 Comments so far. You should leave one, too.

Ian Muir (gravatar) Ian Muir said on October 12, 2009

This is great news.

One thing though, is there really a need to link to the CDN version of anything but the min version of the files? I thought that the vsdoc files were only used locally by Visual Studio.

Karsten Januszewski (gravatar) Karsten Januszewski said on October 16, 2009

@Ian Muir — I find it useful to have a CDN copy that isn’t min’d for debugging purposes. That way I can step into the jQuery library during development and see what’s happening, and then, when I deploy, I just change the extension to the .min version.

Whut. Whut. said on December 21, 2009

Don’t let the filenames fool you: min-vsdoc files are not minified in any way (they’re identical to the -vsdoc files), and should not be used in a live website.

Whut.Whut. Whut.Whut. said on December 21, 2009

@Karsten Yes, it’s handy to use the -vsdoc file for debugging, but there’s no benefit to pulling it from a CDN. The point of referencing files from a CDN is to speed things up, and while debugging, pulling the file from localhost will be much faster than from a CDN.

Add your social network profile — we’ll use it to find your avatar. Or, just add your email. That works too.