• Ramanan

    (@superpoincare)


    If some css/js files are already minified, Autoptimize doesn’t minify them again which is good but in the case where files aren’t concatenated, there’s a potential improvement.

    This is because some already-minified files needn’t be gzipped by WordPress, theme or plugins.

    But since Autoptimize can gzip by using a filter, doesn’t it makes sense to make a copy of these files and store them in the cache/autoptimize folder, so that turning the filter on will gzip these files too?

    • This topic was modified 4 years, 6 months ago by Ramanan.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Minification and compression are 2 different things Ramanan; minification is creating a file with less whitespaced/ newlines, compression is (g)zipping the file and compression should be done on both minified and unminified files.

    Autoptimize does minification, but compression usually is done on webserver level (although AO can (a) compress if the “serve as static file” is off and (b) will try to tell webservers to compress the files in cache/autoptimize).

    If you have Autoptimize JS files that are compressed and non-autoptimized files that are not, then your best approach is configuring the webserver to do compression of all compressable files, see e.g. https://varvy.com/pagespeed/enable-compression.html for more info.

    hope this clarifies,
    frank

    Thread Starter Ramanan

    (@superpoincare)

    Hi Frank,

    Should have clarified … what I am saying is that the availability of prezipped gzip files is certainly useful. The web server wouldn’t compress them on every visit.

    So having a copy of preminified files in the autoptimize folder is useful as they can be precompressed.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, pre-gzipping, that indeed is only done on resources that are autoptimized so excluded files that are considered minified already will not be pre-gzipped. if you have time and know some PHP I’d be willing to consider PR’s on Github ??

    Thread Starter Ramanan

    (@superpoincare)

    Will see if I can do something.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Have autoptized files for already minified files?’ is closed to new replies.