Minifying CSS

chinmay.sahoo

New member
The savings from minifying CSS are typically less than the savings from minifying JavaScript because CSS generally has fewer comments and less whitespace than Java-Script.The greatest potential for size savings comes from optimizing CSS—merging identical classes, removing unused classes, etc.This is a complex problem, given the order-dependent nature of CSS (the essence of why it’s called cascading).This area warrants further research and tool development.The best solution might be one that removes comments and whitespace, and does straightforward optimizations such as using abbreviations (like “#606” instead of “#660066”) and removing unnecessary strings (“0” instead of “0px”).
 
Back
Top