Different ways of saying document ready in jQuery?
<p>Are these both the same thing, i.e. ways of saying document ready:</p>

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

<p>and </p>

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

<p>or is there a difference between the two, if so then when should I use which?</p>
