I have two arrays.
- A list of urls to JavaScript files that I am registering with $.getScript(url);
- A list of inline JavaScript commands to register with $("html").append(inline)
Any items in (2) may be dependant on any items in (1). Meaning that I have to be sure that all items in (1) have finished loading before any of (2) are registered.
I want to load all of (1) asynchronously... since it will be faster, but how do I ensure that all of these processes have finished before registering (2)?