What is the difference between using document.head and using document.getElementsByTagName(\"head\")[0]? Tests I ran showed that they both take about a
document.head
document.getElementsByTagName(\"head\")[0]
According to MDN, document.head only gained support in IE 9, so using the other method as a fallback protects you from browser incompatibilities