How do you debug a script that was loaded with the jquery getScript(), it does not show up in the google chrome scripts list ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
what are you looking for?
getScriptuses GET and should appear in the network tab. It is then executed safely from within jQuery (afaik, there was an alternative toeval). alsogetScriptalso allows for a callback, which you can use to determine if the script is loaded, like say add aconsole.log?check if that part of your code gets executed at all. your code might not have reached that part of your script.
here’s a demo of

getScriptloading another script (kernelJS). I can see it from the resources.