DEV Community

Discussion on: Automatically Removing Unused CSS from Wordpress Pages?

Collapse
 
hyperpress profile image
John Teague

One way to do this would be building an companion plugin for the Autoptimize plugin that runs the purifycss part after Autoptimize renders the concatenated output.css for pages and posts. The trick would be timing the trigger for purifycss. Maybe in a theme hook. Something for me to think about.