Click here to Skip to main content
15,885,161 members
Articles / All Topics

Microsoft Ajax CDN

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
26 Sep 2009CPOL1 min read 11.4K   2   1
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.

This article was originally posted at http://sohel-rana.spaces.live.com/blog/feed.rss

License

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


Written By
Architect ImpleVista Aps
Denmark Denmark
Sohel has more than six years of experience in professional software development with extensive involvement in Web based Object-Oriented, Multi-Tiered application design and development. He's Familiar with Test Driven Development (TDD) and refactoring techniques as well as having expertise in architecturing large enterprise applications. He has Experience in working with Content Management System and Portal Management System tools like SharePoint, DotNetNuke, Ektron.

Over last few years, he’s involved in development with projects on Microsoft SharePoint and received Microsoft MVP for SharePoint Server Development in the year 2011 and 2012. Currently he's working in a software company located Copenhagen,Denmark on a project integrating SharePoint and SAP. You can read his popular blog at: http://ranaictiu-technicalblog.blogspot.com

Comments and Discussions

 
GeneralUsing Microsoft Ajax CDN with the ASP.NET 3.5 Pin
Alexander Turlov30-Nov-09 4:44
Alexander Turlov30-Nov-09 4:44 

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

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