title: Guide on using jQuery $(function())
body: <p>The  statement <code>$(function())</code> in jQuery is a shorthand for <code>$(document).ready( ...</code></p>
  
  <p>Does it make sense having just once at the beginning of the script portion and holding all the script code (as example within  tags in a aspx page) as needed? 
  <br/></p>
  
  <p>Or rather would it be better to replicate it more than once and containing each set logic of correlated code?</p>
  
  <p>As example:</p>
  
  <pre><code>&lt;script&gt;
   $(function()
   {
      //script code for function 1
    });
  
   $(function()
   {
      //script code for function 2
    });
   &lt;/script&gt;
  </code></pre>
  
  <p>Is there any "best practice" about it or are both approaches exaclty equivalent?</p>