DEV Community


Discussion on: Frontend Metrics: CSS Specificity

ben profile image
Ben Halpern

This is really great! Do you track these metrics as quarterly goals or include them in CI or anything else along those lines?

wuz profile image
Conlin Durbin Author

Right now I have a lot of these just running in a script locally. I am working on getting it to run nightly and pull all the metrics I've currently got.

The company I work at has frontend and backend "guilds" which are cross-team groups interested in the respective topics. We are using the metrics to inform our choices in the frontend guild.

We actually just reduced our CSS by like 50% (which showed up in the metrics dashboard) by conditionally loading some vendor CSS. It was pretty cool!

I do think having some of this in CI can be really helpful - especially around like JS chunk sizes and package additions. It helps prevent package bloat :D