Browser & Web Performance · Middle · Question 5 of 75
What does content-visibility: auto do?
- 1Hides the element from screen readers
- ✓Correct answer: Skips rendering work (layout and paint) for offscreen content until it approaches the viewport
- 3Loads the element's images lazily but renders everything else
Explanation
On long pages it can greatly cut initial rendering time. Pair it with contain-intrinsic-size so the scrollbar doesn't jump.