Purify CSS
-
Hi, I am curious if some postprocessing like 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…
The topic ‘Purify CSS’ is closed to new replies.