2 ms·
Interesting to see so many ways to do it, but what's missing is explanations of pros and cons of the different approaches (though I'm sure there probably aren't
by bherms 15y ago
Interesting to see so many ways to do it, but what's missing is explanations of pros and cons of the different approaches (though I'm sure there probably aren't many differences). Why not just stick with one then?
- barrkel 15y agoI read it as more poking fun at the combination of redundancy in the DOM API combined with redundancy in Javascript.
- mmahemoff 15y agoNo real difference, but on an older browser, you might shave a few milliseconds off by using "window.location" instead of just "location", as the latter will need to traverse from local scope up to the global (window) scope.