• Hi there,

    I am trying to improve our CLS rating for some time already, but am struggling to get rid of the last impacts. The Chrome developer tools noted a strong CLS influence when the cookie bar loaded and shifted into view.

    Removing the transition and setting
    #moove_gdpr_cookie_info_bar{transition:none!important}
    helped to solve this.

    Perhaps you might want to consider to add an option in the plugin to remove the fancy effect or just add it in the css directly. Otherwise I will overwrite it only locally on our end.

    Let me know, if you need further information from my side.

    Best regards,
    Christopher

    PS: Thank you for this awesome plugin!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Christopher Mail?nder

    (@ceem123)

    Sorry for the confusion: After some more testing, I added back the transition effect, let your plugin load in wp_head instead of wp_footer (moove_gdpr_cookie_popup_modal + moove_gdpr_cookie_popup_info) and added some more dimension information (might only be relevant for us, as the GDPR CSS is loaded deferred).

    Plugin Author Moove Agency

    (@mooveagency)

    Hi @ceem123

    We checked the CLS impact: this is because the banner is managed using JavaScript. Our plugin first has to check if the user needs to give their consent or not (could be hidden due to geolocation, or cookies have been already accepted, etc).

    If the user needs to give their consent, we show the cookie banner. This couldn’t be deferred, and it could cause minimal CLS, but we can’t improve it.

    Hope this helps.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CLS impact’ is closed to new replies.