What javascript event is tied to "waiting for localhost"?
<p>I want to wait until the "waiting for localhost" message in the browser goes away before running some function.</p>

<p>Is it </p>

<pre><code>$(document).ready(#myfunction) 
or
 $(window).load( #myfunction );
</code></pre>

<p>or is it something else?</p>
