W3C home > Mailing lists > Public > www-style@w3.org > November 2014

Re: Multiple assignment structure (suggestion)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 27 Nov 2014 07:29:57 -0800
Message-ID: <CAAWBYDDFxa7wAA+8UmMy01CSdD=mgGpCwyu2B1x_O5v-imyY0g@mail.gmail.com>
To: Felipe Nascimento de Moura <felipenmoura@gmail.com>
Cc: Cameron McCormack <cam@mcc.id.au>, www-style <www-style@w3.org>
On Wed, Nov 26, 2014 at 6:04 PM, Felipe Nascimento de Moura
<felipenmoura@gmail.com> wrote:
> Yes, but the idea was not to type less!
> The idea was to save bytes!

You should have said that in your first email. ^_^  I had to guess at
what you were trying to achieve in the first place, let alone what the
overall goal was.

This has an even easier answer, then: don't worry about it.

It's not your job to try and find repeated structures in your CSS
(well, beyond a high-level "don't repeat yourself" sort of thing).
That's the job of your compression algorithm, who can do it vastly
better than you, and can do it without you having to contort your
source file.  Just turn on compression on your server and you'll have
far greater savings than you'll achieve with tricks like this.

Or remove a single image from your page. That generally saves far more
than anything else you can do combined.

Received on Thursday, 27 November 2014 15:30:44 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:46 UTC