title: Can you write jQuery code inline before loading jQuery?
body: <p>I wouldn't think its possible at all, but I'm just wondering because my friend has this on his page:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;&lt;/head&gt;
      &lt;body&gt;
          &lt;script&gt;
              $(function(){
                // ...
              });
          &lt;/script&gt;
          &lt;div&gt;&lt;span&gt;html stuff&lt;/span&gt;&lt;/div&gt;
          &lt;script src="jquery-1.7.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So I was just wondering, is that valid? Will jQuery take that <code>$(function(){});</code> block and make it work after its done loading?</p>