[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-layout
Subject:    Re: Bloated HTML or Inefficient CSS Selectors?
From:       fantasai <fantasai.lists () inkedblade ! net>
Date:       2012-06-07 18:43:30
Message-ID: A8SdnQRewdfPa03SnZ2dnUVZ_tKdnZ2d () mozilla ! org
[Download RAW message or body]

On 06/03/2012 12:20 PM, Boris Zbarsky wrote:
> On 6/3/12 2:28 PM, Ste Allan wrote:
> > 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?
> 
> It really depends on how many elements and how many rules are involved, and on what \
> you're doing with the page. 
> If your page has 100-1000 elements (pretty normal) and 10,000 CSS rules (also \
> pretty normal), that's a different situation from 100,000 elements and 200 CSS \
> rules...

Probably also depends on whether your performance concern is load time
(mostly static pages) or manipulation time (mostly dynamic apps).

~fantasai
_______________________________________________
dev-tech-layout mailing list
dev-tech-layout@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-layout


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic