Re:Nine Javascript Gotchas
by aston on Thursday February 14, 2008 @06:54PM
(#116165)
Of course it's faster to use a precomputed reference than to find an element in the DOM. I can't see the "overhead" of manually storing a reference to a DOM element in a variable ever mattering in any application. Grab it once and you're done.
[ Parent
| on HN ]