If you use Lighthouse to measure your site’s performance, you might have seen the Avoid excessive DOM size warning before. It looks something like this: Lighthouse warns us about large DOM sizes because they increase memory usage and can produce expensive style calculations.
Full article