Skip to content
Speed and performance · free, no sign-up

DOM Size Checker

Counts the HTML elements on a page and how deeply they are nested.

Why it matters

Every element takes memory and work to style and draw. Page builders and long menus can add thousands, which makes scrolling and tapping feel slow, particularly on phones.

How to fix it

  • Remove wrapper elements that do nothing.
  • Load long lists and tables in pages, or as people scroll.
  • Look for a lighter theme or page builder if it is the source of the bloat.

What a good result looks like

Up to 1,400 elements is reasonable, with nesting under 32 levels and no element having over 60 direct children.

Common mistakes

  • Page builders wrapping each item in several empty divs.
  • Rendering a huge menu or product list on every page, even when hidden.

Questions about the DOM Size Checker

Does a large DOM always slow a page?

Not always. Lighthouse now flags a big page only when styling or layout really takes time. Use the speed test to see whether yours is affected.

Why do hidden elements count?

The browser still has to build and keep them. A hidden menu with hundreds of links costs memory and styling work even when closed.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More speed and performance tools