Web Vitals & Performance (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
How does CSS `content-visibility: auto` cut render times?
senior LevelCode ExampleSystem Design
In Simple Words:
css
.article-card {
content-visibility: auto;
contain-intrinsic-size: auto 350px;
}
Instructs the rendering engine to skip layout and painting for elements that are currently outside the viewport. As the user scrolls, the elements render just-in-time, cutting initial paint times by 80%.