Performance · DOM

Excessive DOM width

One element on this page has 120 children, twice the 60 that Lighthouse treats as the limit, which increases the cost of style and layout.

How this page is built

The grid below is a single div with 120 child elements. The page has few elements in total and is not deeply nested, so the only fault is the number of children in one parent.

Why it matters

When a single element has a very large number of children, any change to it or its layout has to be worked through for every child. Lighthouse reports an element with more than 60 children as a sign of an inefficient DOM.

Wide DOMs usually come from long flat lists, such as product grids or tables rendered all at once.

How to check it

Run Lighthouse or PageSpeed Insights on the page and look at the diagnostics. Crawl tools that run Lighthouse for each page, or that measure page resources, report the same finding across the site. Lighthouse names the element with the most children and how many it has.

How to fix it

Split long lists into pages or groups, or render them as visitors scroll. For large tables, show fewer rows at a time.

Back to all tests