soyturk / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minify is not using the full potential of Minification. #315

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is not the full potential of Minification used, because unnecessary spaces 
exist in the minified files.

For example, a minified file containing the following:
    background:rgba(0, 0, 0, 0) repeat scroll 0% 0% / auto padding-box border-box;
Although this would go shorter:
    background:rgba(0, 0, 0, 0) repeat scroll 0% 0%/auto padding-box border-box;

In some places even double spaces are available:
    background:-webkit-linear-gradient(top,  rgba(76,105,186,1) 0%,rgba(59,85,160,1) 100%);
Although this would also go shorter:
    background:-webkit-linear-gradient(top, rgba(76,105,186,1) 0%,rgba(59,85,160,1) 100%);

According gtmetrix.com the minified files can be smaller by 1-2%. It would be 
good if the full potential would be used, and the unnecessary spaces would be 
removed.

Original issue reported on code.google.com by nodeforu...@gmail.com on 7 Jun 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Here is the complete diff between the version of Minify, and the possible 
Minification of gtmetrix.com: http://www.diffchecker.com/h6eqk9uj 

This CSS file is from my web site http://nodecode.de . This website I run with 
the CMS WordPress, the Minify-engine I use in the plugin WP Minify Fix ( 
http://wordpress.org/plugins/wp-minify-fix/ ) what is a further developed by 
myself, based on the dead WP Minify plugin. A user has brought to my attention 
that the minify not engine uses the full potential.

Original comment by nodeforu...@gmail.com on 7 Jun 2014 at 9:34

GoogleCodeExporter commented 9 years ago
Please see the second section of https://code.google.com/p/minify/wiki/FAQ

Original comment by mrclay....@gmail.com on 7 Jun 2014 at 12:04