How to remove unused CSS between multiple pages?
Posted on 2013-12-12
I have 2 pages that use 3 css files. A lot of the CSS in the files are redundant. Some of the CSS neither page uses. And some of the CSS is used by one page, but not the other.
Each page uses some CSS that the other page doesn't use. I want to combine all the CSS into one file for both pages, but I want the minimum amount of CSS in the single file that both pages use. What is the best way to do this?
I went to "unused css" which will look for unusued css in a single page, but that doesnt help me. If I remove all the unused CSS for page A, then page B won't work. If I put all the CSS into one giant file, I want to remove all unused CSS for the COMBINED URL's of page A and B.