How to prevent Cumulative Layout Shift for responsive images
Are you seeing this message warning in your Lighthouse report?
Image elements do not have explicit width and height.
If you're not sure how to resolve the problem to reduce potential CLS (Cumulative Layout Shift), while staying responsive, keep rea...
blog.jankoritak.com4 min read
Victor Eke
Software developer specializing in front-end development and open-source, currently pursuing a bachelors degree in computer science.
Lol. I never knew there was an
aspect-ratioproperty in CSS, This is a great article. Thanks for sharing Jan Koriťák. 😅