- From: Cameron McCormack <cam@mcc.id.au>
- Date: Fri, 28 Nov 2014 12:24:35 +1100
- To: Felipe Nascimento de Moura <felipenmoura@gmail.com>
- CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style <www-style@w3.org>
Felipe Nascimento de Moura wrote: > I am suggesting a new way for these tools to compress the css, for us :) I tried taking your example, before and after your compression suggestion, and compressing the files with gzip. /* one.css */ .selector-1, .selector-2 { border-color: #0b0b0b; color: #0b0b0b; padding: 10px; margin: 10px; border-top: 10px; left: 100px; top: 100px; } /* two.css */ .selector-1, .selector-2 { border-color, color: #0b0b0b; padding, margin, border-top: 10px; left, top: 100px; } File Size --------------- --------- one.css 140 bytes two.css 112 bytes one.css gzipped 105 bytes two.css gzipped 104 bytes Most web servers will transparently compress content with gzip when it is transferred.
Received on Friday, 28 November 2014 01:25:04 UTC