{"id":11460120,"date":"2019-04-23T20:41:53","date_gmt":"2019-04-23T20:41:53","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/purify-css\/"},"modified":"2019-04-23T20:41:53","modified_gmt":"2019-04-23T20:41:53","slug":"purify-css","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/purify-css\/","title":{"rendered":"Purify CSS"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>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&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-11460120","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11460120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11460120\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11460120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}