Questions about jQuery's getScript()
- by Nimbuz
$.getScript("somescript.js", function() {
alert('Load Complete');
});
Once loaded, is it cached or is it loaded again if referenced more than once?
If an event depends on this file being loaded, will the event be delayed of fail/timeout in case the file takes longer to load or doesn't load?
How do I check and do something in case the file fails to load for some reason?
Thanks in advance for your help.