• Resolved treecutter

    (@treecutter)


    Hi Autoptimize
    We use this popular plugin for GDPR complaince: https://en-gb.wordpress.org/plugins/cookie-law-info/
    When we enable Autopimize option “Optimize JavaScript code” the cookie plugin is broken and does not display properly.
    We tried excluding all the plugin’s javascript files under the “Exclude scripts from Autoptimize:” section, plus checking/unchecking “Add try-catch wrapping?” plus disabling “Save aggregated script/CSS as static files?” but the cookie plugin is still broken when we enable “Optimize JavaScript code” When we do not enable “Optimize JavaScript code” the cookie plugin works fine
    Running WordPress 4.9.6, Autoptimize 2.3.4, GDPR Cookie Consent 1.5.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    did a quick test on my local development machine and seemed to work OK with pretty settings (in both AO and cookie-law-info), so not a generic problem apparently. I see that “cookie law info” depends on jquery, so make sure jquery is (still) excluded (it is by default). if not that, can you check what JavaScript errors are shown on your browser’s console when both are active?

    frank

    Thread Starter treecutter

    (@treecutter)

    Hi Frank

    You’re a genius !! It was indeed jquery, I think we removed the exception.
    Added back in and all working perfectly

    BIG THANK YOU for the very prompt reply and fix, greatly appreciated

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You’re welcome @treecutter, feel free to leave a review of the plugin and support here! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘GDPR Plugin broken with Autoptimize’ is closed to new replies.