today I\'ve been working on loading dynamic javascript code (files). The solution I use is :
function loadScript(scriptUrl) { var head = document.get
You could use a counter variable, and a kind of callback:
var scriptsToLoad = 10; var loadedScripts = 0; //... function increaseLoadCount() { loadedScripts++; if(loadedScripts == scriptsToLoad) { alert("start here"); } } //script1-10.js increaseLoadCount();
Maybe a bit nicer than with a timeout..