All jobs / Frontend / web developer / Performance

Frontend / web developer interview question · 3–5 years

Ten thousand rows in a div and the tab dies. What do you do?

The strongest answer

Window or virtualize the list (and recycle rows); don't mount ten thousand DOM nodes — paginate if the UX allows

Why it works

DOM count is the budget. Virtualization on web and FlashList / recycling on native are the same idea.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions