Closed gjohnson closed 11 years ago
I wonder if we should do document.getElementsByTagName('HEAD')[0]
instead?
In my case its for third-party javascript so you can't always rely on the head being there. :-(
http://www.jspatterns.com/the-ridiculous-case-of-adding-a-script-element/
Though (if your cool with it) we could move it up out of the function and cache it.
Good source @gjohnson Thanks a lot for the pro-tip.
make IE <=8 happy