CLS issue: more than 0.1 (desktop)

CLS issue: more than 0.1 (desktop)

neildt
Tourist
6 0 1

Our website is showing in Google Webmaster Console, that all of our pages have the issue "CLS issue: more than 0.1 (desktop)".  There are no reports of the same problem for these same URLS on mobile.


We've run a few CLS tools and saw

 

a4f4068a118a4fb2887ff46b90066750.png

 

But we can't see what is triggering this layout shift.  Can anyone offer any insight?

Replies 4 (4)

nvchien
Shopify Partner
55 23 13

Hi @neildt 

In Chrome browser, you can go to Inspect > Network tab , tick "Disable cache" and choose "Slow 3G" to observe the problem more clearly.

I think that is issue with the image (the layout is shifted after images loading)

 

nvchien_0-1717781127928.png

 

- If this solution helped you out, please consider accepting it as a solution and giving it a thumbs-up. Your feedback is valuable to me and the community!
- If you're feeling extra generous, you can always buy me a coffee . Your support helps fuel my Shopify knowledge and keeps the solutions flowing!
- You can also follow more tips and tricks from my blog.
neildt
Tourist
6 0 1

I used https://gtmetrix.com/reports/www.atopalm.co.uk/Tuwn6mxH/#video and you can see that there is a big gap before the page is loading

 

14ff8a1a55d343b9a726d921116113ab.png

 

But I'm not sure what the cause of this is.  Can you offer any insight?

nvchien
Shopify Partner
55 23 13

Hi @neildt,

I'm not sure, but we need to observe to debug before knowing the real cause of the problem.

With the gap between heading and body, I'm assuming the problem is with the style of the body tag

body {
  display: grid;
  ....

you can try updating it to display:block; and check it again.

 

 

- If this solution helped you out, please consider accepting it as a solution and giving it a thumbs-up. Your feedback is valuable to me and the community!
- If you're feeling extra generous, you can always buy me a coffee . Your support helps fuel my Shopify knowledge and keeps the solutions flowing!
- You can also follow more tips and tricks from my blog.
neildt
Tourist
6 0 1

Tried changing to display:block; but still the same.