Thursday, September 24, 2009

Microsoft Ajax CDN

Microsoft recently announced that they are going provide Content Delivery Network support for ajax and Jquery. This is great idea as developers can link the jquery to Microsoft site rather than including in the project. There are few benefits of this:

1. Don’t need to maintain duplicate jquery or ajax files in the project. Just add a reference to an URL to Microsoft provided URL.

2. Surely page loading will be faster as the script is loading from different domain. Browser as usually doesn’t allow to load multiple resources from server while loading js file. So browser can request for two or more image files from a server simultaneously. But can request for single js file to per server and while loading js file browser stop requesting any other file to the same server. Now as the js file is deployed on different server so page loading will be definitely faster.

3. Currently for multiple sites you are deploying the common JavaScript file (say jqeury file) multiple times. So for site 1 the url of the jquery file is For site 2, the same jquery file is deployed as So browser is loading the same version of query file for different site. Now if you add CDN reference then the same jquery will be used for multiple sites. And as browser caches js file so once the js file is cached for site 1, for site2 the js file will not be download.

We can expect such type CDN network for other common components. Details can be found here on site.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.