0

How can I get from my web browser the external javaScript documents used on the current website. the aplication is not using all the .js, I tried to look up with the console, but the information is confusing. is there any way that i can get the .js documents running in a current html compile by the web browser

Andy Chaves
  • 137
  • 1
  • 2
  • 9

1 Answers1

0

aside from disabling them one by one, and/or manually checking yourself using Chrome's Developer Tools or Firefox's Firebug... there is no solution that can know every document that could potentially be used in your page.

When a button is clicked, you could dynamically bring in some content that your browser knew nothing about, which suddenly uses one of the linked JS files. Therefore no solution can tell you what you are asking for.

adam
  • 2,930
  • 7
  • 54
  • 89
  • Does this help: http://stackoverflow.com/questions/13174988/detect-linked-unused-files-and-unused-javascript – Barbara Laird Oct 08 '13 at 15:28
  • @BarbaraLaird no, that solution will tell you code that is unreachable. the OP could have a lot of "reachable" code that is simply never invoked. – adam Oct 08 '13 at 15:29