Hello,
I am using Asp.net Ajax extension 1.0.In my application ,I am using a index.aspx page,which have no script manager control.When i am runing this application the the index page is loading very slow.When I save the page from browser I am finding six ScriptResource.axd files are loading on client side.Which have up to 400 kb.So I want to reduce these files on index page.But I do not know how I do it.Please help me.
Regards,
Pawan
Hi Pawan,Basically, those scripts won't be requested if there is no AJAX related controls on the form.
If you are using MasterPage and there is ScriptManager on it, they will be downloaded too.
Hope this helps.
Hello Raymond Wen,
Thanks for reply.
I am using asp.net ajax enable website1.0.I have noticed that ScriptResource.axd is uploaded each time when I am navigate the site.On each page ScriptResource.axd is again loading.I want to cache ScriptResource.axd on Client Side.If you have any idea about it then please help me. Thanks & Regards, Pawan
Please try the following:
1. Set debug to false in web.config
2. Set ScriptMode property of the ScriptManager to release
These should be cached on the client as long as you have <Compilation Debug="false" /> in your web.config.
No comments:
Post a Comment