ASP.NET web application – WebResource.axd and ScriptResource.axd files – Loading time issue

asp.netloadingscriptresource.axdwebresource.axd

.
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.

Best Answer

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.

Related Topic