optimization - Optimizing css compiler -


i'd real optimization/compilation of css styles (not minification), in similar vein google closure compiler works javascript.

for example, if entire stylesheet just:

div#hello {      color: #fff;     background-color: #000; }  div#hello p {     color: #fff;     margin-top: 10px;     margin-bottom: 10px;     margin-right: 10px;     margin-left: 10px;     font-family: helvetica, arial, sans-serif; }  {     color: #fff;     margin-top: 10px;     margin-bottom: 10px;     margin-right: 10px;     margin-left: 10px;     font-family: helvetica, arial, sans-serif; } 

that can optimized down (i'm keeping whitespace here readability, have go too):

#hello {     color: #fff;     background: #000 }  #hello p, {     color: #fff;     margin: 10px;     font-family: helvetica, arial, sans-serif } 

this seems looking for:

http://iceyboard.no-ip.org/projects/css_compressor

heres comparison of few others:

http://www.bloggingpro.com/archives/2006/08/17/css-optimization/


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -