title: jQuery $(function() {}) vs (function () {})($)
body: <p>I understand that the following is shorthand for <code>$( document ).ready()</code>:</p>
  
  <pre><code>$(function() {
      console.log( "ready!" );
  });
  </code></pre>
  
  <p>I also understand what an anonymous JS function is, but does jQuery does anything special when it's called using one. I.e.:</p>
  
  <pre><code>(function() {
      console.log( "ready!" );
  })($);
  </code></pre>
  
  <p>Is the latter just a normal anonymous JS function that uses jQuery (ie. it will NOT be considered shorthand for <code>$(document).ready()</code> and so will execute immediately)?</p>
  
  <p>I feel this MUST have been asked before, but I can't find it if it has.</p>