Speed up rendering with content-visibility: auto ⚡ This CSS property skips rendering off-screen content until needed, giving massive performance wins on long pages. ⋅ Pairs with contain-intrinsic-size ⋅ Zero-effort lazy rendering Learn more 👇 developer.mozilla.org/en-US/docs/...
Post
auto comes with restrictions, e.g. margin collapse and other things that would affect already layout things do not work anymore. But for many situations this would still be a good default and starting point. Maybe content-visibility: auto; will find its way into templates?
0 reposts1 like
content-visibility: auto; is not a magic bullet on its own. See this great video, it requires a tiny bit of work and consideration (said restrictions) ->
I haven't. I've been focusing on stuff as it lands in Firefox or becomes baseline. Whereas content-visibility became baseline in 2024. I did something on it in a previous life though www.youtube.com/watch?v=FFA-...