DEV Community

Discussion on: Automatically remove unused css from Bootstrap or other frameworks

Collapse
plainjavascript profile image
plainJavaScript

Just use plain-vanilla CSS: It solves the whole problem...

Collapse
likebrain profile image
Ricardo Rivera • Edited on

Hey, i dissagree here.
this sounds a bit polemical... ;)

You can have unused Plain-Vanilla CSS Classes also... this is the Problem that here Solved...

I think you Need multiple steps to solve a Size Issue in CSS...

  • Remove unused CSS Rules
  • Avoid Base64 Embedding ( a Base64-String has 120% size compared to RAW-Binary-Format)
  • Minify CSS
  • Compress

and so on...
you need to ensure that, no matter if Vanilla CSS or Framework CSS

Written on my phone ;)