Browser & Web Performance · Middle · Question 6 of 75
Why does a very large DOM (tens of thousands of nodes) hurt responsiveness?
- ✓Correct answer: Style recalculation and layout get more expensive, and each interaction that updates the page takes longer to render
- 2Each DOM node creates a separate network request
- 3Browsers limit pages to 10 000 nodes and throw errors after that
Explanation
Rendering cost grows with the number of nodes affected. Virtualizing long lists keeps only visible rows in the DOM.