Announcement

Collapse
No announcement yet.

How to Fix Cumulative Layout Shift

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to Fix Cumulative Layout Shift

    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.

    #2
    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

    Comment

    Working...
    X