Cumulative Layout Shift (CLS) error.

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
cmartins
 
 
Posts: 77
Joined: Tue Mar 01, 2016 12:25 pm

Cumulative Layout Shift (CLS) error.

Post by cmartins »

Dear Pablo,

Looking at my site on Google Search Console, I noticed that many pages on my site have the Cumulative Layout Shift (CLS) error. The pages of my website are basically made with simple text inside the Grid Layout of the WWB. Please, is there any solution to this CLS problem?

As always, thanks for your valuable help.

Carlos Martins

(*) https://search.google.com/search-consol ... D&hl=pt-BR
User avatar
Pablo
 
Posts: 23252
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cumulative Layout Shift (CLS) error.

Post by Pablo »

I'm sorry, but I am not familiar with Cumulative Layout Shift (CLS) errors.
Can you please be more specific?

Note that the specified URL does not work for me.
cmartins
 
 
Posts: 77
Joined: Tue Mar 01, 2016 12:25 pm

Re: Cumulative Layout Shift (CLS) error.

Post by cmartins »

Dear Pablo,

As explained by Google Search Console, 42 pages of my site are with CLS error.

As explained by https://web.dev/cls/ a page with CLS presents some problems ... But I can't see these problems!

My page https://www.carlosmartins.com.br/curriculo.htm is presented as an example of the other 42 pages of my site that are with CLS error.

I don't know if this error can be corrected...

As always, thanks for your valuable help,

Carlos Martins
User avatar
Pablo
 
Posts: 23252
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cumulative Layout Shift (CLS) error.

Post by Pablo »

The reason why the content moves, is because the layout is flexible.
There are large images so it will take some time to load them.
After the image has been loaded, the browser will adjust the content based on the image's size.

Possible solution:
- use smaller images so the layout will load faster.
or
- set the height of layout grid to 'fixed'
or
- use absolute layout, of course in that case the layout will no longer be flexible
cmartins
 
 
Posts: 77
Joined: Tue Mar 01, 2016 12:25 pm

Re: Cumulative Layout Shift (CLS) error.

Post by cmartins »

"The reason why the content moves, is because the layout is flexible."...

Dear Pablo,

I made my website initially using a WWB template. Now, when I use Google Search Console to analyze my site, many pages need improvement because of CLS (a problem when the page layout changes during the loading phase). I imagine this is because the layout is flexible.

Please, does Wysywyg allow me to migrate my website using another template? Is there a tutorial on the WWB website?
User avatar
Pablo
 
Posts: 23252
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cumulative Layout Shift (CLS) error.

Post by Pablo »

The behavior is logical, because the size of the image is unknown before the page is loaded.
You cannot easily use another template, because each template has a complete different structure.
However, you can create a fixed layout by replacing all layout grids with layers or absolute positioned elements.

But why is this such a problem? Isn't this with almost any website?
cmartins
 
 
Posts: 77
Joined: Tue Mar 01, 2016 12:25 pm

Re: Cumulative Layout Shift (CLS) error.

Post by cmartins »

Friend Pablo,
If I "scroll" down any page on my site I notice that the site menu changes position (skips to the left side). I can't seem to solve this. Please, would you know how to help me?
User avatar
Pablo
 
Posts: 23252
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Cumulative Layout Shift (CLS) error.

Post by Pablo »

This is because you have enabled 'affix' for the menu.
That will not work if the menu is already fixed by the page header.
Post Reply