Saijo George

Curated by Saijo George

Read more

friday7 Aug 2020

content-visibility: The New CSS Property That Boosts Your Rendering Performance

https://web.dev

content-visibility relies on primitives within the the CSS Containment Spec but  content-visibility is only supported in Chromium 85 for now.

This new property can help you improve initial load time by skipping the rendering of offscreen content. content-visibility enables the user agent to skip an element’s rendering work, including layout and painting, until it is needed. In their example, they see a boost from a 232ms rendering time to a 30ms rendering time. That’s a 7x performance boost.

The content-visibility property accepts several values, but auto is the one that provides immediate performance improvements.

Another use is thecontent-visibility: hiddenproperty which is an alternative to display: none and visibility: hidden.

Update 04/12/2020:

Looks like google supports both

General


I love tl;dr Marketing because I can get all the latest SEO news and trends in one spot without having to read lengthy articles. I really look forward to the daily emails to see what's new in our industry!

content-visibility: The New CSS Property That Boosts Your Rendering Performance 1 - General News

Ryan Mews SEO Manager Merkle