Closed paulirish closed 14 years ago
document.documentElement is much faster than getElementsByTagName('html')[0]
We use it in Modernizr and got a decent speed boost. (relatively, of course)
Done on version 0.3.5
document.documentElement is much faster than getElementsByTagName('html')[0]
We use it in Modernizr and got a decent speed boost. (relatively, of course)