Daniel Lemire's blog

, 5 min read

Saving Bandwidth with CSSTidy

8 thoughts on “Saving Bandwidth with CSSTidy”

  1. Lucas Gonze says:

    I have used the Flumpcakes optimzer for quite a while and like it too much to change to CSS Tidy.

  2. Matt Sephton says:

    Your example is wrong, as nom has a background colour of black. Therfore, CSSTidy and Flumpcake produce identical results.

    Even after correcting your error, both produce the same output – still not the same as your manual solution.

    Or am I missing something?

  3. Matt: The solution I give, minus the mistake you point out, is exactly what Flumpcake gives me. Of course, you’ve got to turn all Flumpcake optimization on.

  4. Matt Sephton says:

    Thanks. I did not tick the “group styles” box.

  5. Matt Sephton says:

    Thanks. I did not check the “group styles” box.

  6. MC Moisei says:

    Shouldn’t the last generated paragraph should be first ?

    montant, nom, texte {
    background: white;
    font-style: normal;
    }

    For example if later on need to make nom’s background red how do I do it ? How is the inheritance applied here, isn’t it defined by the order of the defined classes ?

  7. MC Moisei says:

    One thing about optimizers, if the css file is pretty big after optimizing it it may be difficult to read it especially if you use the “group styles” option.

  8. No,

    A,B,C {
    }

    is the same as

    C,B,A {
    }

    There is no inheritance here…

    You are getting mixed up with

    A B C {
    }

    which is *not* the same as

    C B A {
    }