PageSpeed: Avoid Excessive DOM Size

back to issues overview

Avoid Excessive DOM Size

Pages with a large DOM size over the recommended 1,500 total nodes. A large DOM tree can slow down page performance.

How to Analyse in the SEO Spider

To populate this filter the PageSpeed Insights API must be connected via ‘Config > API Access > PSI’.

View URLs with this issue in the ‘PageSpeed’ tab and filter and use the lower ‘PageSpeed Details’ tab to click on the issue on the left-hand side, and see details of the DOM size on the right-hand side.

Bulk export the pages and DOM size details such as Total DOM elements, DOM depth and child elements via ‘Reports > PageSpeed > Avoid Excessive DOM Size’.

What Triggers This Issue

This issue is triggered when pages have a Document Object Model (DOM) size that exceeds the recommended limit of 1,500 total nodes.

How To Fix

Optimise the DOM size by looking for ways to create DOM nodes only when needed, and destroy nodes when they’re no longer needed.

Further Reading

Back to top