content-visibility

noun

say it: “KON-tent viz-uh-BIL-ih-tee” /ˈkɒntɛnt ˌvɪzəˈbɪlɪti/

A CSS property that, set to auto, lets the browser skip drawing sections that are far off screen until the reader scrolls near them, which speeds up long pages.

What does content-visibility do?

content-visibility: auto lets the browser skip rendering sections that are off screen until they are scrolled near, which speeds up long pages.

.blog-post { content-visibility: auto; contain-intrinsic-size: auto 800px; }

In a sentence

  • “With content-visibility, the browser saves its work on the 200 reviews nobody has scrolled to yet.”
  • “Adding content-visibility: auto to each blog post made the archive page open noticeably faster.”

Level: Master · More CSS terms at this level

Updated