We use $.getScript(url, callback) all over the place. In troubleshooting very occasional undefined errors, i noticed this from the jQuery documentation:
"The callback is fired once the script has been loaded but not necessarily executed."
Can anyone suggest a generic way to guarantee the callback is called after the script is executed?
I know I could poll for a var that gets defined in the script, but i'm hoping for a more elegant solution (because i'd have to make this change in hundreds of spots for hundreds of different variables)... like a callback I've missed from the documentation.
thanks in advance!