Monday, September 13, 2010

How to improve AJAX page Speed with 5 easy steps

Hello friends,

Many times we face the Ajax speed problem. Our AJAX page is very slow.

So here I am with five valuable tips checkout if it helps you some where.

1) EnablePartialRendering:-

Make enable partial rendering = true in script manager

Its syntax is as shown below


asp:ScriptManager ID=”scm” runat=”server” EnablePartialRendering =”true” ”

It enable partial rendering so use does n’t have to wait a long for page.

Remember its useful only when you have multiple panel update.

2) Script Refrence Profiler dll:-

This is one of the most important DLL by which you can imporve your page performance.

Its simple in use you have to do just drag and drop Script refrence profiler in Div. Then run the page it will give you all refrence Scripts.

As shown below fig.



Just copy this and page in script tag of Script manager as shown below.

asp:ScriptManager ID=”scm” runat=”server” EnablePartialRendering =”true” >

Scripts

asp:ScriptReference path=”../Includes/Scripts/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js”/

/script>

/asp:scriptManager

3) Script Mode=”Release”:-

Try to make script mode always release for better performance.

You have to do following setting



4) LoadScriptBeforeUI=”false”:-

This should be false for better result. When you do this then screen comes fast.

5) Composite Script:-

If you are using Asp.net 3.5 with service pack 1 then there will be a nice tag which is called Composite script tag.

By the name its clear that it composite all the script its syntax is as follows.

asp:ScriptManager ID=”scm” runat=”server” ScriptMode =”Release”

CompositeScript ScriptMode =”Release”

Scripts

Samsung Jet S8000 Unlocked Phone with 3G, Quad-Band GSM, 5 MP Camera, and 2 GB Memory--International Version No Warranty (Black)