Hello. I'm getting a "CLS-Cumulative Layout Shift" error in the important web data section in Google Search console. What is the solution for this error? I don't understand if the problem is with the theme. Thanks for your help.
Announcement
Collapse
No announcement yet.
How to Fix Cumulative Layout Shift
Collapse
X
-
This is typically due to images not having width/height attributes, or aspect ratios set on them. As images are loaded, the content on the page is forced to shift. It's usually an easy CSS fix. E.g.
.your-image-class {aspect-ratio: 16/9}
https://web.dev/cls/
-Ryan
- 1 like
Comment