If you’re reading this article, chances are you’ve run into an “Avoid an excessive DOM size” warning from Google Lighthouse.
For WooCommerce store owners, this warning is particularly common. Product grids, complex filter widgets, and “Add to Cart” fragments can quickly bloat your HTML. Your webpage has a large DOM size if it has too many DOM nodes or HTML tags, or if these nodes are nested too deeply. This leads to jerky scrolling and slow page load times, both of which can reduce conversion rates.
On the other hand, an optimized DOM size offers a better user experience, leading to increased conversions.
If you’ve added superficial CSS3 animations or JavaScript widgets to your website, it might be experiencing the effects of a large DOM size.