title: Order of execution of jquery document ready
body: <p>Suppose, I have a js file which looks like this: </p>
  
  <pre><code>$(document).ready(function() { // first task} );
  $(document).ready(function() { // second task } );
  $(document).ready(function() { // third task } );
  </code></pre>
  
  <p>Upon loading the file the tasks get executed in order. I am not able to understand why ?
  I'm guessing that the callback methods are fired when an "on ready" event occurs. How is the execution order being retained ? Are the consecutive call backs being queued up in some place ?</p>
  
  <p>Note: I know that this is a very naive way of coding. I have written the snippet only to get my point across and do not write such code in my projects.</p>