javascript Wait Function
<p>Kolink recently gave me this:</p>

<pre><code>// start the page with:
loadScripts = [];
loadScript = function(cb) {loadScripts.push(cb);}

// end the page with:
while( x = loadScripts.shift()) x();
</code></pre>

<p>But where do I put the code that I want to be completed when the page is loaded?</p>
