• Resolved vadimm5

    (@vadimm5)


    Hello. How do I disable minification of .min.js and .min.css files? (I need the shortest version.) Why minify them at all? They’re already minified. Other minification plugins don’t minify these files by default. There must be something wrong with your plugin. I tried adding *.min.js and *.min.css to the exceptions, but that didn’t help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter vadimm5

    (@vadimm5)

    I have another question. I enabled page caching with preloading and minification. After I completely clear all caches, page cache preloading starts working and the page_enhanced folder starts filling with cached pages. There’s a problem. However, for some reason, minification doesn’t start working, and the minify folder remains empty. After I load a single page of the site in the browser, the minify folder immediately fills with all the minified pages. It turns out that autofill doesn’t work during minification. Could you please explain why this is happening?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vadimm5

    Thank you for reaching out and I am happy to help!

    Yes, by default all js/css files are minified and/or combined. Depending on what you selected in the advanced Minify options.
    Can you please share what is selected there?

    As for the Preload, this is expected behavior as they are completely separate systems. When you enable the page cache preload only the HTML is created and preloaded and not the assets, this being said, the files are created once the page is visited in the /minify/ folder.
    Can you please share if the page is breaking when preloaded?

    Thanks!

    Thread Starter vadimm5

    (@vadimm5)

    The page works when preloaded. Minification is simply enabled in the minification settings. You probably misunderstood the question. How can I exclude files containing .min.js and .min.css from minification? For example:
    /wp-includes/js/jquery/ui/core.min.js?ver=1.13.3
    /easy-fancybox/vendor/jquery.mousewheel.min.js?ver=3.1.13
    /plugins/meow-lightbox/app/style.min.css?ver=1773943852

    Thread Starter vadimm5

    (@vadimm5)

    W3 Total Cache re-minifies already compressed .min.js and .min.css files, as the plugin works automatically, processing all files added to the queue in a row without checking their contents.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vadimm5

    Thank you for your patience!

    You are correct. In W3TC we skip *.min.js and *.min.css files.

    *.min.js and *.min.css are detected as already minified and are combined without being minified again.
    This being said I tested the behavior and it needs some updates. I’ll create a ticket for this.
    To confirm the regex for excluding those files does not work for you?

    Thanks!

    Thread Starter vadimm5

    (@vadimm5)

    The problem has been resolved. The ticket can be closed. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.