Skip to content

How to reduce an excessive DOM size

Speed1 min readFixes check 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.

Step by step, with screenshots: Divi performance: the settings that actually cut page weight →

Check your own site

Runs this check and the other 186, free, in about 45 seconds.

What a passing site looks like

  • Page element count: passeswarning · −2 ptseffort L

Page element count

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.

Filed under Speed & Core Web Vitals. Copy is generated from the same catalogue that scores every report, so what you read here is what the report says.