Sent by Bob Osola on 31 December 2002 15:03
I am developing an ASP-driven intranet application served over SSL. All
clients are IE6. My usual way of including CSS files (for all apps, not
just intranet/IE6 ones) is:
<style type="text/css">@import ("filename.css");</style>
However, this method resulted in a noticeable unpleasant flicker on
pages with form elements. Such pages could be seen unstyled for a brief
moment before the CSS took effect. I have never seen this before, so
assumed it was perhaps related to a rendering slow-down caused by the
SSL overhead. In trying to cure it, I fooled with some JS hacks and
simplified the CSS (which was pretty basic stuff anyway), but still the
"before-and-after" effect remained. Then, on a whim, I tried referencing
the CSS file using the good old-fashioned method of:
<link rel="stylesheet" TYPE="text/css" href="filename.css">
And, lo and behold, problem solved. The CSS was now applied
instantaneously, making the whole app feel much more responsive. So I
wondered: does the speed of CSS rendering differ in any other browsers
depending on which method is used to call the source file? Or have I
stumbled on an odd IE6 bug?
Regds,
Bob Osola.
Disclaimer
This message may contain information which is legally privileged and/or
confidential. If you are not the intended recipient, you are hereby
notified that any unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such notification not
withstanding, any comments or opinions expressed are those of the
originator, not of Taylor Made Computer Solutions, unless otherwise
explicitly stated.