View Single Post
Old 02-15-2008, 02:05 PM   #21
Peter Sorotokin
speaking for myself
Peter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it is
 
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
Quote:
Originally Posted by Hadrien View Post
OK, that's a pretty nice tip, and now that I need multiple body elements (because I have multiple flows), I can use different CSS stylesheets easily. Would it impact the performance in a positive way if I limited the CSS stylesheet as much as I can (multiple stylesheets with few elements, instead of a single one for the main content) ?
The smaller the stylesheet the better, but the main rule of thumb (for the current version of our software, we expect this to get better at some point) is to avoid any selectors, except these:
  • tag
  • .class
  • tag.class

Peter
Peter Sorotokin is offline   Reply With Quote