Closed GoogleCodeExporter closed 8 years ago
Original comment by joe.scylla
on 6 Aug 2010 at 1:08
Original comment by joe.scylla
on 13 Jul 2011 at 9:25
I believe the attached plugin re-orders properties as desired; it probably is a
bit too cautious as I don't *quite* follow exactly what cssmin is doing, or the
edge cases it might have to cope with, but it works for me :) Doesn't make an
enormous difference to my CSS file when gzipped (~1%) but this will vary hugely
by the contents of your CSS file.
Enable by adding 'ReorderRulesForGzip'=>true to your filter configuration array.
Cheers!
Original comment by rowanb@gmail.com
on 2 Aug 2011 at 6:05
And here's the attached plugin without two obvious strict-mode errors :)
Original comment by rowanb@gmail.com
on 2 Aug 2011 at 9:43
Attachments:
Thanks for you contribution rowanb. I will have a look on you plugin soon and
will add it to the CssMin source if you permit it (with proper credits for
sure).
Original comment by joe.scylla
on 3 Aug 2011 at 6:37
If you're happy with it of course you can add it - if so, credit to Rowan
Beentje / <a href="http://assanka.net">Assanka</a> please :)
Original comment by rowanb@gmail.com
on 3 Aug 2011 at 7:11
Fixed in Version 3.0.1 (Revision #163)
See: http://code.google.com/p/cssmin/wiki/WhatsNewVersion301
Original comment by joe.scylla
on 19 Aug 2011 at 10:25
Cool - thanks! :)
It might be worth updating
http://code.google.com/p/cssmin/wiki/MinifierFilterSortRulesetProperties to fix
the example (silver to #000) and mention that it improves gzip compression :)
Original comment by rowanb@gmail.com
on 19 Aug 2011 at 10:35
Good point; will do ;)
Original comment by joe.scylla
on 19 Aug 2011 at 1:43
Original issue reported on code.google.com by
daniel.k...@gmail.com
on 1 Sep 2009 at 1:51