Difference between $(fn) and $(document).ready(fn) in jQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1388043/different-forms-of-document-ready">Different forms of $(document).ready</a><br>
  <a href="http://stackoverflow.com/questions/2662778/what-is-the-difference-between-these-jquery-ready-functions">What is the difference between these jQuery ready functions?</a>  </p>
</blockquote>



<p>What is the difference between the following two functions?: </p>

<pre><code>$(function() { });
</code></pre>

<p>and</p>

<pre><code>$(document).ready(function(){});
</code></pre>
