DCSIMG
ASP.NET Ajax 4/3.5 CDN support - Pini Dayan

Pini Dayan

The best thing about a boolean is even if you are wrong, you are only off by a bit.

ASP.NET Ajax 4/3.5 CDN support

Today I found out a cool nice thing. As we all know Microsoft ASP.NET Ajax 4.0 is shipped with the new caching support for the JS library it uses. This feature is called the CDN and basically it is working and increasing performance by spreading lots of servers around the world that store JS files like the ASP.NET Ajax 4.0 and the Jquery library files.

From Microsoft: “By taking advantage of the Microsoft Ajax CDN, you can significantly improve the performance of your Ajax applications. The contents of the Microsoft Ajax CDN are cached on servers located around the world”

For a list of all available files check this site.

What if your application is ASP.NET 3.5 and not 4.0 and you are not using or whishing to upgrade to the 4.0 version. Well you can still use the CDN. Microsoft added the 3.5 Js files to the CDN as well.

The 2 files available are the

 http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.debug.js

 http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js

You can use them by using the Script manager like this:

<asp:ScriptManager ID="SCRIPTMANAGER1" EnablePartialRendering="false" runat="server">

 <Scripts>

     <asp:ScriptReference Name="MicrosoftAjax.js"

                Path="http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js" />               

 </Scripts>

</asp:ScriptManager>

Enjoy

Comments

ASP.NET Ajax 4/3.5 CDN support – Pini Dayan | Programming Blog Imagik.org said:

Pingback from  ASP.NET Ajax 4/3.5 CDN support &#8211; Pini Dayan | Programming Blog Imagik.org

# June 18, 2010 12:49 PM

Webmaster Crap » Blog Archive » ASP.NET Ajax 4/3.5 CDN support - Pini Dayan said:

Pingback from  Webmaster Crap  &raquo; Blog Archive   &raquo; ASP.NET Ajax 4/3.5 CDN support - Pini Dayan

# June 18, 2010 2:29 PM

ASP.NET Ajax 4/3.5 CDN support – Pini Dayan « ??????????????????????????????????????? said:

Pingback from  ASP.NET Ajax 4/3.5 CDN support &#8211; Pini Dayan &laquo;  ???????????????????????????????????????

# June 18, 2010 5:26 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: