Forum Moderators: not2easy

Message Too Old, No Replies

External Sheets

when do they load?

         

Emperor

6:08 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



Hi guys,

A few days ago my cable modem was so freaking slow I could hardly use it, but when I did visit some sites they looked awful until the CSS loaded, which was *after* the page loaded.

Well, my pages also look horrible without the CSS; the layout isn't too terrible but the logo looks stupid just sitting on a grey background and the images I use for my menu headers look worse.

So I was thinking, the only way to fix that would be to embed the CSS in my <head> area. But then I don't take advantage of caching.

What do you guys think?

Take care,
Emperor

Longhaired Genius

6:19 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



My approach is to make my html and css as lean as possible and then not to worry about this. Who can tell what sort of connection your visitors may have? Once the stylesheet is downloaded it's instantly available anyway.

garann

6:49 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



I think you're talking about the "Flash of Unstyled Content". If so, BlueRobot.com says it can be fixed pretty easily, while still using an external stylesheet:

Just one LINK element or SCRIPT element inside a document's HEAD element will prevent a flash of unstyled content.

Here's the full explanation. [bluerobot.com]