Support Forum Support Forum GDPR Cookie Compliance Request for unminified versions of your JS

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Premium
    AvatarJohannes Larsson
    March 12, 2020 @ 3:14 am

    Hello again,

    It seems that some of your CSS files are loaded via JS. Our developer needs to read your JS files to either counteract on the issue or request a fix. Would you please include unminified versions of your JS in, at least, your base plugin as is also required by wp.org ?

    Thank you for your time.

    Moove AgencyMoove Agency
    March 12, 2020 @ 8:12 am

    Hi Johannes,

    Thanks for using our plugins.

    The GDPR Cookie Compliance plugin loads the assets (js and css) files in minified format from plugin directory as requested by wp.org. The only exception is the Lity lightbox (used for pop-up), this is loaded via JavaScript, as our plugin checks if the Lity is already loaded by one of your plugins or by your theme, in order to prevent conflicts.
    For this purpose, we created the CDN base field, applied for Lity assets only.
    Alternatively, you can add the following code snippet to your functions.php to prevent this extra check and JS load for Lity:

    add_action( 'gdpr_enqueue_lity_nojs', '__return_false' );

    Hope this helps.

    Premium
    AvatarJohannes Larsson
    March 12, 2020 @ 9:11 pm

    Hello,

    Thank you for your response. Yes, lity.css was one major issue in reducing our Pagespeed score: http://prntscr.com/rfi8rr

    Loading it via our CDN does not really help. We would like to enqueue it properly in our code and bundle it with our minified assets. I think that gdpr_enqueue_lity_nojs action will come in handy but please can we have the unminified JS of your base plugin (the free one, not the pro addon) so that our developer can see the big picture?

    Thank you for your time.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.