otsukare Thoughts after a day of work

opera 11 and document.head

As David mentioned, Opera 11 has now the javascript method document.head for accessing the head of an html document. The way to do that before was

document.getElementsByTagName('head')[0]

Now

document.head

And you can still use this method. But we are always looking on improving speed for our code. So what is more effective? jsperf helps us to find out. Results? document.getElementsByTagName('head')[0] is 70% to 80% slower than document.head.

Speed matters.