title: document.head v. document.getElementsByTagName("head")[0]
body: <p>What is the difference between using <code>document.head</code> and using <code>document.getElementsByTagName("head")[0]</code>? Tests I ran showed that they both take about a millisecond.</p>
  
  <p>I have also seen </p>
  
  <pre><code>document.head||document.getElementsByTagName("head")[0];
  </code></pre>
  
  <p>which would have led me to believe that <code>document.head</code> is faster and the other is more more compatible, <strike>except that the tests I did disproved this.</strike></p>
  
  <p>And if one is more compatible, why use the other as well?</p>
  
  <p><strong>Update:</strong> My tests were wrong, as some have pointed out.</p>