views:

2190

answers:

2

. Hi, We are building an ASP.NET application with C#.net as language.

Here, when the IIS renders a page & when we analyze the page code with YSlow tool it shows many WebResource.axd and ScriptResource.axd files (as we are referring many script files in the page).

Server-side code is executing fast but loading of these .axd files is taking time. So would you please guide me on this, if there is a way to optimize or suppress these axd files?

If would be great if you could also provide a reference document or web references (If needed).

Many Thanks, Regards.

+3  A: 

WebResource.axd and ScriptResource.axd references are embedded resources in the .NET Framework. WebResource.axd scripts are probably for web forms and validation while ScriptResource.axd is for ASP.NET AJAX.

You can combine the ScriptResource.axd scripts into one include by using the ToolkitScriptManager (part of the ASP.NET AJAX Control Toolkit).

I'm not sure of a way to combine the WebResource.axd scripts.

See this question for more on combining scripts.

jrummell
+3  A: 

jrummell is right on but if you want a detailed explanation of ways to improve that I would suggest this link:

ASP.NET AJAX Performance Improvement

It gives detailed information on script combining, turning on caching, and etc. Trust me it will help you speed it up.

ElvisLives