Support » Plugin: Autoptimize » Many Autoptimize Files

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

    (@optimizingmatters)

    this is new in AO24 Leon; files that are exluded from optimization are now minified by AO if not minified already (based on filename), resulting in autoptimize_single_xyz123.js (or .css) files.

    you can disable this with the following code snippet;

    
    add_filter('autoptimize_filter_js_minify_excluded','__return_false');
    add_filter('autoptimize_filter_css_minify_excluded','__return_false');

    hope this helps,
    frank

    leonliang

    (@leonliang)

    Thank you Frank for the quick support!

    Do you think it will speed up the website (reduce http requests) without loading the single files?

    I guess there must be a reason you’ve chosen to do it this way. Just curious.

    Thank you
    Leon

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, the files were excluded, so they would have been loaded separately already. the advantage is that now they’re at least minified, so there is a performance advantage to that 🙂

    frank

    leonliang

    (@leonliang)

    I see. So that means even if I disable it with the two lines of code, the original css and js files will still be loaded, which will be bigger (at least not smaller) files than the AO generated ones. Is that correct?

    If that’s the case, it’s still better to keep it as is.

    Thank you Frank
    Leon

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I see. So that means even if I disable it with the two lines of code, the original css and js files will still be loaded, which will be bigger (at least not smaller) files than the AO generated ones. Is that correct?

    it is 🙂

    Thank you Frank

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Many Autoptimize Files’ is closed to new replies.