- This topic has 6 replies, 2 voices, and was last updated 2 years, 5 months ago by
David.
-
AuthorPosts
-
April 5, 2023 at 4:23 am #2597724
Ivaylo
Hi,
I have been getting terrible results lately with CLS. I’m using Ezoic as an ad management and after numerous support chats with them, they insisted it is not from their ads, but P div that is causing the shift. Could you please check the URLs and let me know if P div is the culprit? They insist P div should have defined height and width in order to not cause CLS.Thanks
April 5, 2023 at 7:27 am #2597988David
StaffCustomer SupportHi there,
i tested the first URL on page speed insights and it returns
0
CLS on Mobile and Desktop.
So on load there is no CLS. I assume you’re seeing this reported in the google console ? And is therefore part of CRUX reporting, so its happening to users after page is loaded.Is that correct?
As a general note: a
p
ordiv
or any HTML elements are never the cause of CLS. And adding a defined width or height is only necessary if you want to constrain its size. When CLS gets reported they identify the HTML elements that were shifted and not thing that caused the CLS.April 5, 2023 at 7:47 am #2598018Ivaylo
April 5, 2023 at 7:50 am #2598027Ivaylo
One more example in the private section:
April 5, 2023 at 8:45 am #2598244David
StaffCustomer SupportOf course it needs to be fixed if we want to keep google happy 🙂 Just needed to ascertain when and where the CLS occurs.
So thanks for the URL that is showing CLS on load. As that helps track that issue.
See here:I noticed the gap on your pagespeed report changing in size.
So i checked that page, and a advert placeholder element with a min-height of 50px is first loaded on the page, which is later filled with a 300px iframe….Which would result in CLS.
There are some other things on the site that are causing small layout shifts, but you may want to address the above first.
April 10, 2023 at 12:12 am #2603649Ivaylo
Thanks, David!
I have removed the ad in question on mobile and it looks like CLS is starting to improve. I’m waiting for Ezoic to either fix this ad or keep it from showing.
You are talking about some other small layout shifts that must be fixed. Could you please let me know what these are so I can take action accordingly?
Thanks again!
April 10, 2023 at 3:39 am #2603843David
StaffCustomer SupportI ran a couple of more posts through a test and none of them now show any layout shifts on load. Which is good.
For now i think you’re fine as long as Ezoic and fix their ad insertion issues. -
AuthorPosts
- You must be logged in to reply to this topic.