Skip to content

Comment on How Bad is DOM Interaction Really?

Comments

TL;DR: Writing is slower, debounce resize event handlers, cache references to dom nodes or jquery selections.

Really the resize thing is sort of bs also because it is such an incredibly rare thing to handle (99% of all apps will never ever require handling resize except to test responsive designs)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.