How many document.ready in single html file or javascript file?
<p>How many <code>$(document).ready()</code> function can we use in a single html file or in a single javascript file?</p>

<pre><code>$(document).ready(function(){
     alert("first document ready");
     //do some action here
});

$(document).ready(function(){
     alert("second document ready");
     //do some action here too
});
</code></pre>

<p>If we can use infinite, how will they be invoked? Will they execute line by line or is there any algorithm for calling this?</p>
