Interview practice question
A page has an extremely large DOM
Frontend Engineering · Web Performance · Intermediate
Lighthouse warns that a page has over 10,000 DOM elements, and scrolling is janky. How would you improve it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Virtualise long lists/tables.
- Paginate or load on demand.
- Simplify markup (fewer wrappers).
- content-visibility: auto.
- Reduce style complexity.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.