content-visibility
Newly availableSince 202494% of users
Allows the browser to skip the rendering work for elements that are currently off-screen. Setting it to 'auto' can drastically improve the initial load speed and scroll performance of long pages.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since September 2024. Widely available around March 2027.
Newer parts of content-visibility
autoBaseline Sept 2025
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
visible- Inherited
- No
- Applies to
- elements for which size containment can apply
- Animation type
- discreteButVisibleForDurationWhenAnimatedHidden
Quick example
.off-screen-section {
/* Skips rendering until the user scrolls near it */
content-visibility: auto;
contain-intrinsic-size: 1000px;
}Values
visibleautohiddenRelated snippet
Lazy rendering without IntersectionObserverWorkflow →content-visibility browser support
BaselineNewly availableSince 2024 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage94%of people can use this6% use a browser without it.
Browsers
85+
125+
18+
85+Mobile
85+Android
125+Android
18+iOS