Optionally Processing CSS through a second processor? (unused-css)
-
I have not deeply looked into how the plugin is running code through criticalcss.com — I just know that it appears to be hooking in and running efficiently.
I am making an assumption in how you architected the plugin, but if I think of criticalcss.com as a generic processor. E.g., it offers an API that you pass a token, it does a scan and returns back CSS that gets stored in a temporary location and enqueued (e.g. cache/autoptimize/css/autoptimize_43j0306be9822jjj3rf9a28bb74jj.css + any inlined code, etc.).
I was wondering if (and it’s a bit if) a service existed for unused-css.com that was functionally the same mechanism as criticalcss.com if it would be possible to further filter the CSS.
Think of it as middleware. Is there any possibility of adding an extra hop in middleware in the processing of the CSS to further refine it down, provided the service acts in a way that is similar (or adaptable) to criticalcss?
- The topic ‘Optionally Processing CSS through a second processor? (unused-css)’ is closed to new replies.