when does document.ready actually fire?
<p>Let's consider the following case:</p>

<p>There is a 2.5MB image in an image tag and I'm on a slow connection which takes considerable time to download that image. If I'm putting the document.ready() in the head tag, then will it wait for the image to be downloaded or it will fire when all the html is downloaded?</p>

<p>In case it fires when all the html is downloaded,then how do I avoid it?</p>

<p>How do I make the .ready() function to fire after the 2.5MB data transfer?</p>
