Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aston
on Feb 14, 2008
|
parent
|
context
|
favorite
| on:
Nine Javascript Gotchas
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.
eusman
on Feb 15, 2008
[–]
the only sure thing is that the whole javascript perfomance/memory footprint/cross-browser/degrade challenge can drive someone crazy!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: