title: $(document).ready shorthand
body: <p>Is the following shorthand for <code>$(document).ready</code>?</p>
  
  <pre><code>(function($){
  
  //some code
  
  })(jQuery);
  </code></pre>
  
  <p>I see this pattern used a lot, but I'm unable to find any reference to it. If it is shorthand for <code>$(document).ready()</code>, is there any particular reason it might not work? In my tests it seems to always fire before the ready event.</p>