Non unique minified/combined css for each page
-
I have noticed that the generated css files (e.g. /wp-content/litespeed/cssjs/fc01c.css) are not unique for each page. I have both minify and combine set and would expect each page to have its own file.
This is a problem because I created a local
uncss node
app and am coming in after the css files are generated (via a cron) and removing the unused css for each of the generated files. When unused css is removed for one page, the inclusion of that same css file on another page results in broken styles due to them having been removed when compared to whatever happened to be the first page tested.I have overcome this by creating a custom css file (on the fly), named for the page being loaded and with rules that are unique (e.g. random ::after content on an insignificant element with a height of 0) then enqueueing it.
While this does force the creation of a minified and combined css for each page, this really isn’t practical and likely isn’t reliable. Is there a setting or other inherit method within the plugin that will achieve this?
- The topic ‘Non unique minified/combined css for each page’ is closed to new replies.