Lighthouse warns us about large DOM sizes because they increase memory usage and can produce expensive style calculations . This can have a significant impact on user experience, especially for users on lower-end devices.
When we work with a tree data structure like the DOM, its depth has a lot to do with how fast operations such as lookups perform on them.
The deeper a tree goes, the more operations it could take to access one of its elements.
5
8 reads
CURATED FROM
IDEAS CURATED BY
How the DOM tree size is actually affects your page load speed
“
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates