• Resolved drazon

    (@drazon)


    Hi Frank I noticed this

    maybe it’s HTTP/2 + minification (which AO can do as well)

    in your FAQ and wanted to ask. Is it possible with the newest version to have Autoptimize just minify the files and not concatenate them? If the answer is yes how can it be done?

    Thank you

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

    (@optimizingmatters)

    damn, people reading the FAQ, didn’t count on that happening 😉

    anyways, twoXtwo filters;

    1. to enable minification of non-aggregated JS and/ or CSS:

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

    2. and to disable aggregation:

    add_filter('autoptimize_filter_js_dontaggregate','__return_true');
    add_filter('autoptimize_filter_css_dontaggregate','__return_true');

    My advice would be to keep on aggregating for the main CSS/ JS (which _should_ be identical accross your entire site) and to minify all non-aggregated resources.

    But have fun playing with these shiny new filters! 😉

    frank

Viewing 1 replies (of 1 total)

The topic ‘HTTP/2 + minification without concatenation?’ is closed to new replies.