Previous Message
Next Message

Re: [css-d] Fw: Flash of Unstyled Content affecting your site?

Sent by Andrew Clover on 29 January 2002 10:10


Jeremy Arnold [EMAIL-REMOVED]> wrote:

> I know that some of the links emailed to this list are effected by this
> troublesome IE render error...

You know, I don't count it as an error. If the browser has a copy of my
page but hasn't yet finished fetching the stylesheet for it, why not
display it style-less? Why should the user have to wait when they could
make a start on reading the content?

This is in practice a silly argument of course, since stylesheets generally
only take a moment to download, so it *is* just a 'flash' of unstyled
content. But still, it's interesting and the solution shows what's going on:

When IE encounters a <script src>, it waits until that script has been
loaded before carrying on rendering the page. It has to do this because the
script could call document.write() to insert content to that point in the
document. But I don't see any reason it needs to do the same with a
stylesheet <link>.

-- 
Andrew Clover
[EMAIL-REMOVED]
http://and.doxdesk.com/
Previous Message
Next Message

Message thread: