Wednesday, August 12, 2015

Ajax Toolkit Script Manager Slows down website

Many times when we develop asp.net web applications and use some ajax controls(like calender extender,mask editor,etc),we may notice that the performance of our website goes down.
If you go to the network tab of browser and see the files that are being requested,you will notice a large number of .axd files are being downloaded.The latest version of Ajax Control toolkit is loading all the scripts.This will end up in slowing your application . Scripts and images downloaded from the WebResources.axd handler are not cached. To overcome this issue we need to append our script manager tag with ScriptMode="Release" tag.
Now what will this tag do is the obvious question.

The answer is that the Scripts and images downloaded from the WebResources.axd handler are cached now.

<ajaxtoolkit:toolkitscriptmanager runat="server" scriptmode="Release"></ajaxtoolkit:toolkitscriptmanager>

No comments :

Post a Comment