- This topic has 5 replies, 2 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
November 2, 2022 at 8:31 am #2398619
Gary
Hi,
I’m struggling with a new CLS issue in Search Console.
I can’t work out where the issue is coming from as there are no new elements on the page.
Any advice or help on this would be massively appreciated!
November 2, 2022 at 9:03 am #2398667David
StaffCustomer SupportHi there,
try disabling any cache / optimization plugins first, then re-test your site.
if the issue persists, leave them disabled and let me know.December 8, 2022 at 4:48 am #2454361Gary
Hi,
I’ve finally got round to picking this back up this week and I can’t work out what the issue is. I’ve disabled everything cache/optimization related and will leave you to take a look.
I really appreciate the help on this!
December 8, 2022 at 6:50 am #2454532David
StaffCustomer SupportLooking at CLS first.
See here:
https://www.webpagetest.org/vitals.php?test=221208_BiDcDS_8XR&run=12 issues:
1. The email protector is changing the HTML. I am not sure how that function is added to the site.
2. You have Perfmatters loading the fonts for you, and in its settings its using:
font-display: swap;https://perfmatters.io/docs/font-display-swap/
Disable that option as it allows the browser to load a system font first, and then when the actual font loads it occupies a different amount of space which cause layout shift.
See if you can fix those and we can then take a look at LCP
December 8, 2022 at 6:58 am #2454539Gary
Ok, so I’ve switched off the font swap, but there’s no way to change settings on the email plugin (and it’s crucial for getting the enquiries through).
Would it be ok to take a look with it on-site? I can look to remove at some point, but have a couple of things going on that mean I can’t do it now.
Sorry to be difficult, I’m just really keen to get this resolved but have no option but to go offline for a few hours now.
December 8, 2022 at 7:22 am #2454571David
StaffCustomer SupportFor the email issue, check with the plugin author if its possible to change the [email protected] text, and if so, add some extra characters to make it the same length as the actual email, then it should not shift.
The alternative to that is to add some CSS, at around 404px is where there isn’t enough room for the email and telephone on one line. So you can use this to force the
[email protected]text to a new line. So it won’t cause a shift.@media(max-width: 404px ) { .__cf_email__{ display: block !important; } } -
AuthorPosts
- You must be logged in to reply to this topic.