Debug script loaded with getScript

How do you debug a script that was loaded by jquery getScript (), it does not appear in google chrome scripts list?

+3
source share
1 answer

what are you looking for? getScriptuses GET and should appear on the network tab . Then it runs safely from jQuery (afaik, there is an alternative eval). also getScriptallows a callback that you can use to determine if the script is loading, for example, add console.log?

check if this part of your code is fully executed. your code may not have reached this part of your script.


here is a demo getScript loading another script (kernelJS). I see this from the resources. enter image description here

0

All Articles