DEV Community

Discussion on: I made my website 28ms faster with content-visibility 🤓

Collapse
 
tinny77 profile image
tinny77 • Edited

Remember to specify the height of the section you are going to hide with contain-intrinsic-size otherwise you will get jumps and scrollbar stange behaviours while scrolling your page. I needed a while to find out I missed the height property on my last project and that was the cause of the strange behaviour...

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yes indeed check the comment above, marcello had the same issue. Did not see it before but indeed valid point 🥰