I'm hoping this is the correct place to post such a question, apologies if not.

I'm making a big push where I work for the team to start writing more efficient 
CSS. The guides I've read (including Mozilla's) naturally suggests keeping 
selectors as simple as possible, to the point that, ideally, all the selectors 
consist of only a single class.
I was discussing this with a colleague and he expressed his concern about the 
HTML becoming bloated with classes being added to most, if not all, of a page's 
elements.

I'm wondering then if anyone could advise as to what is best for performance. 
Is it having heavier HTML with lots more classes but smaller and more efficient 
CSS selectors? Or, is it lighter HTML with fewer classes but bigger and less 
efficient CSS selectors?
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to