# How to reduce an excessive DOM size

> Pages with thousands of elements are slow to style, lay out and interact with. Page builders and mega menus are the usual culprits.

Speed & Core Web Vitals · HTML version: https://getreport.app/learn/dom-size

## Page element count

Passing looks like: Page element count passes.

**Why it matters.** Every element costs memory, style calculation and layout time. Very large pages feel sluggish on phones and make layout shifts more likely.

**How to fix it.**

1. Remove hidden or duplicated markup (mobile and desktop menus rendered twice, off-screen sliders).
2. Paginate or lazy-render long lists and product grids.
3. Simplify page-builder nesting — each wrapper div counts.

Check your own page: https://getreport.app/
