AO minifies CSS-files that don’t end in “min.css”. If a file does end in “min.css”, it is assumed to be minified. If that is not the case, the best course of action would be to contact the developer of the culprit (theme/ plugin) and ask to ensure that a file of which the filename claims to be minified, is minified?
If you can provide your site’s URL, I’ll be happy to have a look to identify the “guilty” party 😉
frank
You are right, i just checked it’s end with “min.css”, so it’s out of minification. but is it possible to remove comments from that when we use this plugin inline all css feature. because i see it’s displaying author info of css.
well, even when minifying some comments are not removed, but if you’re into PHP/ wordpress development I can give you one or two filters you can hook into to change that? 🙂
Yeah, Please share, I will try
Nice, you can hook into autoptimize_filter_css_bodyreplacementpayload and you’ll be able to change anything in the aggregated CSS (wrapped in a <style .. </style> tag) 🙂
Thanks for sharing this, I am sure i will use this in some point.
Just Tested, I able to add display swap with a pattern. Thanks.
feel free to share code snippets, I’m sure others can benefit from this! 🙂