• Resolved pinksharpii

    (@pinksharpii)


    We’re trying to improve mobile page speed on some client sites and this plugin loads a script at the top of the header that greatly impacts the site speed. It adds over 1 sec of load time according to Google Page Speed.

    The biggest offender is this https://cdn-cookieyes.com/client_data/IDHERE/script.js

    Because it’s echoed into the template and not wp_enqueue_script, we can’t try to defer it in our theme like we do with other JS, to prevent render blocking. I’m not sure if defering is even an option since that might make the plugin not work as intended? But is there anything we can do to make this script not impact the site so much?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @pinksharpii,

    Greetings from CookieYes!

    The page speed is slowed down by the script because it is considered a render-blocking script.

    To stop third-party scripts from running, the plugin uses Javascript. The plugin script should be positioned in the head tag or at the very least before all other script tags in order to block them. However, changing this implementation in the plugin is not possible.

    Thread Starter pinksharpii

    (@pinksharpii)

    Is there anything that you guys can do on your end to help speed up this plugin? It makes a pretty big hit to site speed on every client site we use this on, which unfortunately is impacting SEO for them.

    In addition to the error above, I’m now seeing this on Google Page Speed Insights:
    Avoid serving legacy JavaScript to modern browsers
    It’s flagging banner.js and script.js from CookieYes.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @pinksharpii,

    Due to the plugin’s?control over the scripts and iframes on the website, there will inevitably be a slight speed drop.

    Avoid serving legacy JavaScript to modern browsers
    It’s flagging banner.js and script.js from CookieYes.

    We cannot take action on the aforementioned statement because it was retained to support older browsers.

    We hope it is clear! Let us know if there is anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cookie plugin affecting page speed “Eliminate render blocking resources”’ is closed to new replies.