performance - Do browsers interpret/execute css tags that they see as empty? (ie IE hacks) -


i curious efficiency of example piece of css:

ul, a, span, p, li { *zoom:1; } 

please keep in mind purely theoretical merits or pitfalls of css hacks not of interest.

my question — browsers other ie6&7 do:

  1. look match selectors in page , realise empty , not act upon it? (horribly inefficient)
  2. realise empty , not act upon selectors (fairly efficient)
  3. no of above.

any ideas received.

cheers, ad.

i don't know. :) might depend on browser, although of them in race optimize speed as possible. i'd assume have thought this.

but since can never sure, recommend put ie hacks inside separate css file , use conditional comments in html include these css files conditionally.

but when doing that, think should provide these files 'expires' header allows them cached longer period of time (like day?). when don't provide these headers, ie invalidate cached file sooner other browsers, might cause more requests (for these separate css files) server when visitor browser multiple pages of site. not big problem, if you're talking optimization this, might issue.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -