Sunday, 15 June 2014

html - Do IE Conditional Comments slow down page load? -


I am creating "CSS hacks" "conditional comments" vs "recent logic" This question is out of the stack overflow community is.

  & lt ;! - [if IE] & gt; & Lt; Link type = "text / css" rel = "stylesheet" href = "yi-specific.css" /> & Lt; [Endif] - & gt;  

By using IE conditional comments the main argument it appears that you are adding additional HTTP requests to each page, thus slowing down your page's performance

Except for the reason of the maintenance of several stylesheets versus maintenance of stylesheets, I am able to find any real-world metrics I is not though it is a legitimate in itself Is there a discussion), is anyone here? What is the purpose of recession using conditional observations that you have been able to, or any other data, can be able to point me in the direction?

This conditional comment is not about actually , this conditional compilation Is like

An IE browser should appear on your page as

  and   

(with a small bit of additional processing to evaluate the status of the comment)

Any non-IE browser will simply see a comment.

Only potential performance effect is that the IE browser will need to evaluate conditional comment status (which is going to be negligible), and then going to include another CSS file. Of course other Browsers just see normal files and ignore comments completely.

The question is that the IEEE 5Kb standard-) 2Kb "hacks" file, and everyone else is receiving just 5Kb files; Versus a 7Kb file showing it with blackjack CSS. Depending on the various factors including the speed and latency of the network, the size of the file, the number of resources used on the page, it can have a noticeable effect on the IE case (this can certainly be faster than non- For IE user agents).

With all the display questions, you will have the effect of your code to see the profile in your environment - but in general guidelines I expect that the effect for IE, Increasing a small display for all other browsers, as well as feeling fuzzy, be able to write "appropriate" CSS in your actual file and then fix IE separately.


No comments:

Post a Comment