@mateico
Hi Mateo.
I’ve been trying a lot of things to reduce the CLS which on Pagespeed Insights were Mobile=0.006 and Desktop=0,548. GTMetrix showed CLS 0,4.
First I tried to see if LiteSpeed Cache could help. It didn’t.
Then I tried system font stack.
I tried with two differnt CSS I found.
First this:
body {font-family: -apple-system, system-ui, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”;}
h1,h2,h3,h4,h5,h6 {font-family:-apple-system, system-ui, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”;}
And then this:
/* System fonts used as in Github */
body {
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
}
/* System fonts used as in WordPress dashboard */
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}
/* System fonts used as in Booking.com */
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
The results with system font stack confused me. Using Pagespeed insights the Desktop CLS continued high, 0,559. Testing with GTMetrix the Desktop CLS went down to 0,001. It seems weird they give such different results.
After this I tried without system font stack and changing settings in OMGF Optimize My Google Fonts. I only choosed to preload Source Sans Pro Normal (weight 300, 400, 600, 700, 900). The change I made was not to preload Italic.
This resulted that Pagespeed went down to Desktop CLS 0,12, and GTMetrix CLS 0.01.
It would be great if I could get rid of this CLS 0,12.
Pagespeed insight show this is the cause:
HANDLA SINGELH?NGMATTA SINGEL-H?NGMATTOR H?ngmattor f?r 1 person HANDLA DUBBE…
<div class=”wp-block-columns”>
It’s a block with double columns. If I try to delete that block the CLS continues 0,12, and shows the next block with double columns as the cause.
I’m stuck on trying to get rid of this CLS that’s too high.