Click here to Skip to main content
Licence CPOL
First Posted 26 Sep 2009
Views 4,583
Bookmarked 2 times

Microsoft Ajax CDN

By Sohel_Rana | 26 Sep 2009 | Technical Blog
Microsoft Ajax CDN

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

  1. No need to maintain duplicate jquery or Ajax files in the project. Just add a reference to a URL to Microsoft provided URL.
  2. Surely page loading will be faster as the script is loading from a different domain. Browser as usual 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 per server and while loading js file browser stops 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 jquery file) multiple times. So for site 1, the URL of the jquery file is http://www.site1.com/js/jquery-1.2.3.js. For site 2, the same jquery file is deployed as http://www.site2.com/js/jquery-1.2.3.js. So browser is loading the same version of query file for a different site. Now if you add CDN reference, then the same jquery will be used for multiple sites. And as browser caches js file, once the js file is cached for site 1, for site2 the js file will not be download.

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

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Sohel_Rana

Web Developer

Bangladesh Bangladesh

Member
Sohel Rana is currently working as Software Engineer in a software firm in Dhaka, Bangladesh. He has years of expertise in working with products like SharePoint, Ektron, DotNetNuke. He's main expertise is in the area of SharePoint.
 
He likes to learn new technologies. He likes to listen music in his spare time.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralUsing Microsoft Ajax CDN with the ASP.NET 3.5 PinmemberAlexander Turlov5:44 30 Nov '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120210.1 | Last Updated 26 Sep 2009
Article Copyright 2009 by Sohel_Rana
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid