0

I am very confused with this 2 files. when i go to chrome => developer tools => Resource

I see this 2 files loading over 8-9 times, specially ScriptResource.axd file 6 times.

when i open these file, they have javascript inside it and every file has a diff codes.

i understand from this SO Post that these are ScriptManager file whenever you use Ajax in your app. and also it says that it is generated one time when you deploy. BUT i see it total of 9 times on my local as well as on my server. and each file is taking around 32ms to load, thats what i see in developer tools.

please help me with this and let me know how can i resolve these files to load only once.

thank you for your time.

Community
  • 1
  • 1
patel.milanb
  • 5,822
  • 15
  • 56
  • 92

1 Answers1

0

It's different scripts. If you AJAX control toolkit or another ASP.NET AJAX framework, where there are script files embedded into a DLL, all of these scripts are loaded separately and are represented by ScriptResource or WebResource. They are not all automatically combined into one reference.

Open up IE's debugger tools, FireFox with FireBug, or Chrome Dev tools and take a look at each script. There's 2 scripts for ASP.NET AJAX, 1 for validator controls, etc.

Brian Mains
  • 50,520
  • 35
  • 148
  • 257