DEV Community

Discussion on: I made my website 28ms faster with content-visibility 🤓

Collapse
 
sandeshsapkota profile image
sandeshsapkota

Hi Chris, I am quite excited with this property and seems yet to be supported by many browsers. but quite confused with your screenshots. content-visibility property skips the rendering, layouting and painting of the elements which have a direct impact on rendering performance which we can see on the rendering on summary tab. in your screenshot it has increased by 1ms from 12ms to 13ms. what is happening ?

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yes, not too sure how that works.
On paper, it should indeed cut down on that, but somehow it cuts down on other parts?

I don't quite know how it counts, but you are right it's very weird it doesn't make that less.

Collapse
 
sandeshsapkota profile image
sandeshsapkota

Yes. as this blog tells web.dev/content-visibility/ it has major impact on rendering.