Search code examples
jquerygoogle-chromegetscript

Debugging getScript()


Using Google Chrome (Chromium), is it possible to watch/see $.getScript() loading external scripts into your webpage?

Basically, I am dynamically loading many scripts into my webpage based on user preference, and it's causing an issue, I want to check if a particular script is getting inserted or not, and if it is getting inserted, I want to know if it is getting inserted once, or more than once.


Solution

  • You can see them in the Network tab of the developer console. Press F12 and go to the Network tab and you'll see all the resources loaded on that page. (You'll need to refresh once you open it.)