WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Cls warning - how to define loading of elements in x5?  en

Autore: Adrian B.
Visite 862, Followers 1, Condiviso 0  

x5 pro 2021.1.4

My main home page is a header, an image object that is dynamic (i have tried gallery & swiper grid slider), a text object, a menu object, a fixed image object, footer, and some seperator objects (abthermal.com).

I have a bad CLS rating, always red from google.  When I use chrome dev tools I can see the shift and it appears to be the loading of the top image object.  I have tried using a simple fixed static image object which does improve the CLS rating considerably but it is still in the orange rating and not green.  I want to use the gallery object.

Is there a way to set the loading order/sizing?  I'm hoping that may fix problem.

Thank you

Postato il
4 RISPOSTE
Aleksej H.
Aleksej H.
Moderator

Hello. For experiment, remove the cookie message first. If it doesn't help, then remove the picture at the top of the site.
If the reason is cookie message - move this message down.
If the reason is in the picture, optimize it (example in the attachment) or try to hide it on mobile.

Leggi di più
Postato il da Aleksej H.
Adrian B.
Adrian B.
User
Autore

Thank you Aleksej - Is there a way to force the loading order?  From Lighthouse it shows that the first page first row image objects are making the largest shift as they load after the main text object. See attached

Leggi di più
Postato il da Adrian B.
Adrian B.
Adrian B.
User
Autore

Playing with hiding objects at the moment......

Leggi di più
Postato il da Adrian B.