Minified CSS is sub-optimal #137

jaspermdegroot opened this Issue Apr 11, 2013 · 2 comments


None yet

3 participants


This is a copy of the issue submitted by @mrextreme at the jQuery Mobile repo:

I just took a look at the minified CSS the ThemeRoller creates after an upgrade (from an 1.3.0 file to a 1.3.1), and it is sub-optimal, to say. It is FULL of whitespaces.

A few examples:

border:1px solid #B3B3B3 ;
text-shadow:0  1px  1px  #333333 ;
background-image:   -moz-linear-gradient( #a6ce39,#72bf44 ); background-image: .....
background-image:        linear-gradient( #FFa621,#FF9000 );

Spaces are everywhere!

I ran the good ol' YUI Compressor on the already "minified" file, and from 21.3 kB it went down to 19.8. (I stripped off the JQM header by hand beforehand, as it has nothing to do with this experiment, and should stay in the file.)

@jaspermdegroot jaspermdegroot referenced this issue in jquery/jquery-mobile Apr 11, 2013

Minified CSS is sub-optimal #5874

carterm commented Feb 26, 2014

1.4.1-> The "min.css" and the "css" file look identical at this point. It doesn't appear to be doing any compression.


id does something now towards the end, but the first half of the file is still uncompressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment