title: jQuery scripts: function(window, document, undefined) vs ;(function($, window, document, undefined)
body: <p>I have seen some jQuery scripts embedded in webpages that open with</p>
  
  <pre><code>(function(window, document, undefined){...
  </code></pre>
  
  <p>or</p>
  
  <pre><code>;(function ( $, window, document, undefined ) {...
  </code></pre>
  
  <p>I believe the <code>;</code> could be there if the script is concatenated with other files and there is a missing closing bracket, the <code>;</code> stops the minifier from removing the first lines of the code, but I am not sure.  </p>
  
  <p>Whats up with the two variants I posted? Why do people open their code like this, why is the first example missing the dollar sign?</p>