Site logo

Archived topic

Getting a CLS issue (Large Layout Shift) on the main container

5 replies · Started by Eugene on August 31, 2022

Viewing posts 1–6 of 6

Hi there,

On those page speed reports they are telling you which HTML element is being shifted.
What they don't tell you is what is causing that element to be shifted.
As its just HTML, it itself cannot cause the shift. Its most likely a CSS optimization on your site thats causing it.

If i check the post you provided i see the page visibly shift a split second after load.
Which looks related to the Nitro CSS optimizations. Can you disable them and we can relook ?

Hi David

I've enabled safe mode on Nitropack so it's only active now with params ?testnitro=1. It seems as though the issue persists.

This is a normal GB Pro page, so there isn't any further optimisations done on the page.

So i tested the page on local developers tools and webpagetest.org, as that test is provides the same detail i can get in dev tools:

Without Nitro:

https://www.webpagetest.org/vitals.php?test=220901_AiDcAW_7AN&run=1

CLS: 0.02
This score is constant across several tests

With Nitro:

https://www.webpagetest.org/vitals.php?test=220901_BiDcH6_7FH&run=3

CLS: 0.37
This score fluctuates - thats the lowest i got. on average it was:

https://www.webpagetest.org/result/220901_BiDcDA_7GQ/

Now when I Google PSI test it - i get messed up results. 4 out of 10 tests on desktop resulted in a Network fail when checking desktop. And all other tests reported high CLS regardless of Nitro on or off. This could be Googles US servers loading a cached file.
Is it possible to completely disable Nitro and clear / disable any Page Caches on the server to eliminate that being an issue.

It seems to have been a Nitropack issue

Thanks for your support in any case!

Glad to hear you found the issue.

This archived topic is closed to new replies.