4 ms·
Could you not just run uncss [0] on the framework and your own CSS? Or does it get tedious to exlcude classes that are used by js? Only ever used it (and other
by keth 9y ago
Could you not just run uncss [0] on the framework and your own CSS? Or does it get tedious to exlcude classes that are used by js? Only ever used it (and other optimizations) for static sites in order to get 100 points on pagespeed.
[0] https://github.com/giakki/uncss https://github.com/giakki/uncss
- franciscop 9y agoIt might work for static sites, but as soon as you start to get fancy and use JS+CSS correctly [tm] it's more difficult because, as you say, there will be state classes modified with JS which changes the style but wasn't previously displayed. That said, my point still remains the same time invested in learning+using+tuning uncss would probably be better spent on any of my points or some others suggested here. AFTER that, sure! I got the whole page for the library I linked down to 10kb in TOTAL including images [in svg] for a competition. It has gained a bit since then though, mainly with analytics.