Came across this article this morning.
Conditional comments block downloads / Stoyan's phpied.com
Reading through it, the key takeaway is that placing an empty
conditional IE statement at the top of your page eliminates a bottleneck
in CSS style sheet processing when there are IE6 and IE7 style sheet references later on the page.
So best practice would seem to go something like this:
Code:
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html lang="en">
<head>
<title>base page</title>
<link type="text/css" rel="stylesheet"
href="http://tools.w3clubs.com/pagr/1.expires.css">
<!--[if IE 6]>
<link type="text/css" rel="stylesheet"
href="http://tools.w3clubs.com/pagr/2.expires.css">
<![endif]-->
<!--[if IE 7]>
<link type="text/css" rel="stylesheet"
href="http://tools.w3clubs.com/pagr/3.expires.css">
<![endif]-->
</head>
<body>
The content of the document......
</body>
</html>
In the comments to this post, it was also suggested that if
you are using @import for loading your style sheet, you might want
to try adding an empty <link> element like this:
Code:
<!--[if IE]><link/><![endif]-->
as it additionally fixes the @import FOUC problem well known to exist in IE
Flash of Unstyled Content (FOUC)
Anyone doing this? Comments?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals" Please login or register to view this content. Registration is FREE
|