title: Why put JavaScript in head
body: <p>If it is perfectly acceptable to put JavaScript right before <code>&lt;/body&gt;</code> what is a good reason to keep it in the <code>&lt;head&gt;</code>?</p>
  
  <p>Based on the question <a href="https://stackoverflow.com/questions/7751514/javascript-in-head-or-just-before-body">JavaScript in &lt;head&gt; or just before &lt;/body&gt;?</a>
  many answers state that the page will load faster if you put it right before the <code>&lt;/body&gt;</code> tag. </p>
  
  <p>However I don't see any sound arguments on why it should be kept in the <code>&lt;head&gt;</code>. I'm asking because I am not a very strong JavaScript developer and from everything I've read and seen, the standard is to keep most JavaScript code and external references in the the <code>&lt;head&gt;</code>.</p>