Title: Purify CSS
Last modified: April 23, 2019

---

# Purify CSS

 *  [Richard Vencu](https://wordpress.org/support/users/rvencu/)
 * (@rvencu)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/purify-css/)
 * Hi, I am curious if some postprocessing like [https://github.com/purifycss/purifycss](https://github.com/purifycss/purifycss)
   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](https://wordpress.org/support/users/pcfreak30/)
 * (@pcfreak30)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/purify-css/#post-11465402)
 * 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 🙂
 *  [Rookie](https://wordpress.org/support/users/alriksson/)
 * (@alriksson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/purify-css/#post-12044764)
 * +1

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

The topic ‘Purify CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rocket-async-css.svg)
 * [WP Rocket ASYNC CSS](https://wordpress.org/plugins/rocket-async-css/)
 * [Support Threads](https://wordpress.org/support/plugin/rocket-async-css/)
 * [Active Topics](https://wordpress.org/support/plugin/rocket-async-css/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rocket-async-css/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rocket-async-css/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rookie](https://wordpress.org/support/users/alriksson/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/purify-css/#post-12044764)
 * Status: not resolved