$(document).ready() - How it is being executed?
<p><code>$(document).ready()</code> - How it is being executed?. Whether the cursor will be waiting in that piece of line in order to execute the code after DOM creation OR this method will be executed like event handler after the DOM has been created by the browser?</p>

<p>What if the image doesnt get downloaded but the <code>$(document).ready()</code> gets executed to read the that image's <code>src</code> attribute to assign to some other local variable after the DOM construction?</p>
