How to Improve CLS (Cumulative Layout Shift)?

praetserge

Elite Member
Executive VIP
Jr. VIP
Joined
Apr 4, 2014
Messages
6,459
Reaction score
4,861
First of all, I'd like to thank some people who helped me to improve Core Vitals... there are a few nice threads on this forum.

But 1 problem persists, CLS (Cumulative Layout Shift). The high CLS is caused by the cookies notice which covers about a third of the screen on a mobile.
So how do you guys go around fixing this? I have to show a cookies notice but at the same time it causes the high CLS.
 
Is this something you are referring to?

https://www.blackhatworld.com/seo/improve-largest-contentful-paint-lcp-with-a-js-css-trick.1313033/
 
One of the free solutions I found was to use WP-Optimize for WordPress and use your JavaScript deferred loading options.
 

Attachments

  • 1616419744491.png
    1616419744491.png
    312 bytes · Views: 103
  • 1616419783205.png
    1616419783205.png
    312 bytes · Views: 93
Sites can mitigate these layout shifts by:
  1. Statically reserve space for the ad slot. ...
  2. Take care when placing non-sticky ads near the top of the viewport. ...
  3. Avoid collapsing the reserved space if there is no ad returned when the ad slot is visible by showing a placeholder.
 
Back
Top