Basis for CSS optimization. Start by trying to analyzing a CSS file.
- count CSS selectors
- count CSS properties, especially most frequent properties
- filter CSS properties
- order CSS properties ala CSS Comb
- explore phloc-css; more complicated than desired
- explore OBSP CSS Parser
- learned how to import dependencies from GitHub projects
- jUnit tests in src/test/groovy/com/github/itgumby/OsbcpParseTest
- simple, clean interface
- unsuitable for media queries
- explore CssParser (implementation of SAC)
- jUnit tests in src/test/groovy/com/github/itgumby/ParseCssTest.groovy
- example in src/main/groovy/com/github/itgumby/analyzeCss/ParseExample.groovy
- both based on code gleaned from StackOverflow
- unsuitable for
@media
media selectors
- explore W3C SAC
- unsuitable SAC has no implementation, just an interface