Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #128930
    carlo
    Guest

    HI,
    I saw that in another cache plugin (wprocket) there is the possibility to exclude the iubenda java script from minification.
    I guess it’s possible to do the same thing with w3 total cache.
    Can you help me please?

    The iubenda banner compromises the performance of my site, but it is mandatory.

    #128935
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for reaching out and I am happy to help!
    Yes, you can exclude specific JS/CSS in W3 Total Cache. Go to Performance>Minify>Advanced, and add the path to the file in “Never minify following JS files” for example:
    /wp-config/plugins/some-plugin/some-js-file.js
    Make sure to save all settings and purge the cache.
    Thanks!

    #128966
    Carlo
    Guest

    Hi,
    Thank you for your answer.
    I followed the path you recommended (I think you confused “config” with “content”. Following the recommended path I don’t immediately find a JS file (img 1);
    Img1
    Maybe you are referring to a JS of these in Img 2?
    Can you point it out to me please?
    Img2
    Thank you

    #128974
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for your feedback and I am sorry about the typo.
    Yes, I meant /wp-content/ instead of /wp-config/ So for example if you want to exclude legal_blocks.js just add /wp-content/plugins/iubenda-cookie-law-solution/assets/js/legal_blocks.js to Performance>Minify>Advanced>“Never minify following JS files”

    I hope this helps!

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Exclude iubenda script from minification’ is closed to new replies.