css minification

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 16 14:35:42 PST 2015


On 1/16/15 5:30 PM, Andrei Alexandrescu wrote:
> On 1/16/15 2:26 PM, Vladimir Panteleev wrote:
>> On Friday, 16 January 2015 at 22:17:51 UTC, Steven Schveighoffer wrote:
>>> On 1/16/15 5:12 PM, Andrei Alexandrescu wrote:
>>>> On 1/16/15 1:44 PM, Steven Schveighoffer wrote:
>>>>> I don't care how much of the overall bandwidth it is, what I was
>>>>> asking
>>>>> is how much does the file shrink if you minify.
>>>>
>>>> 30% -- ANDREI
>>>
>>> so d-minified.css.gz is 30% smaller than d.css.gz? Just want to clarify.
>>>
>>> -Steve
>>
>>                Original  Minified
>> Uncompressed    16028     11959
>> gzip -9          4252      3194
>>
>> Looks closer to 25%, but same ballpark.
>
> So then the two optimizations don't compete. I hate it when I'm right
> :o). -- Andrei

If the CSS isn't frequently changing, a 4kb file should not comprise 5% 
of all traffic if caching is enabled.

I certainly think this is well worth the optimization, though, 25% is a 
good improvement.

-Steve



More information about the Digitalmars-d mailing list