Determine if javascript has completed
<p>My question is somewhat similar to <a href="http://stackoverflow.com/questions/951945/javascript-have-body-onload-function-wait-until-scripts-have-completed">this one.</a> We want to know if there's a way to determine if all javascript has completed (so no javascript is running). We have a lot of stuff that runs on a timeout after the page's onload event, so even after the page is loading, stuff could be happening for a few seconds. For a whole bunch of reasons, mostly relating to requirements from management, we need to know when all of these scripts have finished running. There's an arbitrary number of them so a general solution would be great.</p>
