Support » Plugin: WP Rocket ASYNC CSS » Purify CSS

  • Hi, I am curious if some postprocessing like could be applied to the minified css file after everything is done.

    Especially with the new Page Speed Insights recommendatios for mobile, there is a ton of unusued CSS in many cases. Maybe up to 90% of it. For sure sections refering to tablets and desktops could be easily removed I guess.

    I inspected and saw the mobile and desktop minified files point to different css minified files but as for a good responsive website the content is actually identical.

    I am sure we could benefit from the separate minification for desktop and mobile and just add the purification postprocessing to each to delete some unusued css code.

    If you can provide a filter to add our own postprocessing as soon as your processing is done I could even start to experiment myself with various libraries without needing to hack your plugin code…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Derrick Hammer


    While I could add a filter, and I have researched this, I have found that it would too error-prone right now and way too many edge cases to do this effectively. A solution should be created but it’s not high on my to-do list and is a big undertaking to do it right I think.

    Thanks 🙂


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.