What is CSS Content Visibility Generator?
content-visibility: auto tells the browser to skip rendering work for off-screen elements until they approach the viewport. Paired with contain-intrinsic-size, it gives the browser an estimated size so the scrollbar behaves correctly. This can significantly improve rendering performance on long pages with many repeated sections such as blog archives, product grids, and documentation.
Quick answer
Use content-visibility: auto to skip rendering off-screen elements until they approach the viewport. This can improve initial page load performance on long pages with many repeated sections.
Limitations
- Browser support varies. Chrome 85+, Edge 85+, Firefox 125+, and Safari 18.2+ support content-visibility. Older browsers ignore the property and render all content as normal.
- Anchor links may not scroll correctly to elements with content-visibility: auto because the browser has not rendered the target area before the scroll attempt.
How to use this tool
- Choose the content type that best matches your repeating sections.
- Set the estimated average height of one section in pixels.
- Copy the CSS and apply it to the container selector for your repeating sections.
- Test page performance and scrollbar behavior before publishing.
What you can use it for
- Speed up rendering of long blog article lists with many repeated cards.
- Improve performance on documentation pages with many collapsible sections.
- Reduce layout work on product listing pages with hundreds of items.