• Resolved Nabil Sikder

    (@mdnabilsikder)


    Hello Autoptimize Team,

    Please add Minify All Inline CSS or at least remove all whitespace && comment , it looks bad in source, let me know if there is any workaround

    Thanks

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

    (@optimizingmatters)

    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

    Thread Starter Nabil Sikder

    (@mdnabilsikder)

    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.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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? 🙂

    Thread Starter Nabil Sikder

    (@mdnabilsikder)

    Yeah, Please share, I will try

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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) 🙂

    Thread Starter Nabil Sikder

    (@mdnabilsikder)

    Thanks for sharing this, I am sure i will use this in some point.

    Thread Starter Nabil Sikder

    (@mdnabilsikder)

    Just Tested, I able to add display swap with a pattern. Thanks.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    feel free to share code snippets, I’m sure others can benefit from this! 🙂

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

The topic ‘Inline All CSS Feature Improvement’ is closed to new replies.