Home › Forums › CSS › ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code? › Re: ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code?
Totally agree with you @msguerra74.
I have spent a lot of time looking into this today and you’re right in saying the OOCSS/SMACSS approach is better for performance but only noticeable on huge sites. In fact, it seems most small-medium websites wont even notice the difference at all, and if you gzip, there will probably be NO difference, as Gzipping works best with repetitive data.
I still feel it’s a good idea to try and create reusable classes for common styles around the site, but used with care and maintaining a balance between CSS performance and HTML bloat/semantics.
@CrocoDillon – There is a lot of benefits to this approach.