Title: CLS &#8211; div elements
Last modified: May 12, 2021

---

# CLS – div elements

 *  Resolved [jakubl373](https://wordpress.org/support/users/jakublutter/)
 * (@jakublutter)
 * [5 years ago](https://wordpress.org/support/topic/cls-div-elements/)
 * First of all, thank you for the great plugin. It improves the site load speed
   visibly and I am using it together with EWWW image optimizes, W3 total cache,
   Asset cleanup and Speed booster.
    Given that I use other plugins for some of 
   the functions, I have disabled the following functionalities of your plugin: -
   optimized css -optimized js
 * However, after activating the plugin, I have noticed issues with rising CLS. 
   It is not caused by images or iframes but by various div elements which are shifted
   in the layout. I managed to fix some of the occuring shifts by setting the position
   to fixed (this was the cookie bar) but another fixed element is causing a shift
   despited being fixed.
    In addition to this, there are some divs that cause a 
   CLS which cannot be set to a fixed position (as they are part of the “regular”
   site content).
 * I tried disabling lazyload by filtering viac CSS selectors but this did not work
   and the divs were still lazy loaded.
 * Do you have any idea what could I do (except for disabling this plugin)?
    Thank
   you.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [shinsenter](https://wordpress.org/support/users/shinsenter/)
 * (@shinsenter)
 * [5 years ago](https://wordpress.org/support/topic/cls-div-elements/#post-14430632)
 * [@jakublutter](https://wordpress.org/support/users/jakublutter/)
 * Thank you for using the plugin and giving feedback. I will check and consider
   a solution.
 *  Plugin Author [shinsenter](https://wordpress.org/support/users/shinsenter/)
 * (@shinsenter)
 * [5 years ago](https://wordpress.org/support/topic/cls-div-elements/#post-14440843)
 * [@jakublutter](https://wordpress.org/support/users/jakublutter/)
 * Can you give me a URL to sites that are having CLS issues? I need to do some 
   investigation on your site.
 * My plugin has basically nothing to do with DIV tags (unless you need to lazyloading
   the style attribute present on some DIV tags).
 *  Thread Starter [jakubl373](https://wordpress.org/support/users/jakublutter/)
 * (@jakublutter)
 * [5 years ago](https://wordpress.org/support/topic/cls-div-elements/#post-14442513)
 * [@shinsenter](https://wordpress.org/support/users/shinsenter/) I have done some
   research and found out that the source of the lazy loaded div elements was EWWW
   Image Optimizer (which is only supposed to lazy load images, which was turned
   off in your plugin). Funnily enough, even disabling EWWW Image Optimizer and 
   skipping all lazy loading did not prevent the layout shifts – so I guess it is
   my theme that is causing this.
    Thank you for your help but there is nothing 
   you can do here.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CLS – div elements’ is closed to new replies.

 * ![](https://ps.w.org/shins-pageload-magic/assets/icon-256x256.jpg?rev=1662885)
 * [A faster website! (aka defer.js)](https://wordpress.org/plugins/shins-pageload-magic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shins-pageload-magic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shins-pageload-magic/)
 * [Active Topics](https://wordpress.org/support/plugin/shins-pageload-magic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shins-pageload-magic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shins-pageload-magic/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jakubl373](https://wordpress.org/support/users/jakublutter/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/cls-div-elements/#post-14442513)
 * Status: resolved