How to figure out what script files gets loaded??

  • Thread starter Thread starter Søren M. Olesen
  • Start date Start date
S

Søren M. Olesen

Hi

Is there an easy way to figure out, from code behind, what javascript files
gets loaded on an .aspx page??

Of source I cound tap into the render and parse the html, but I was
wondering if that information already exists somewhere....

TIA

Søren
 
Søren,

You could change all javascript includes to reference .ashx files instead
and then write an HttpHandler to handle the includes. This would give you
complete control of what javascript is being requested.

See this link for an example of how to write HttpHandlers:
http://www.dotninjas.dk/artikler/codehttphandler/

HTH, Jakob.
 
Back
Top