Yah, there's somewhat of a delay in both browsers. But there's a lot of stuph getting downloaded, too; and I notice that the delay goes away on subsequent hits to the page. So, I would guess the problem is mainly just in the amount of stuph the browser has to initially retrieve/parse. Once it's in the cache it's fine.
One other immediate thought: Since you're using conditional logic for IE, you could include the alternate stylesheet block in the reverse condition, to ensure that IE won't try to redownload the same set of sheets. I.E.,
<!--[if !IE]>blah blah blah
Hey, thanks ! That might be really usefull, indeed.
Something that I just notice (I'm not at home so I can't try any modification right now) is that no stylesheet is downloaded in Safari. It just returns the page without any styling. Do you know if something is messing up with Safari ? I thought the browser was acting like firefox, but apparently it's not
it is usually a good idea to plase js code at end of page to allow page to at least fully display
BTW, are you sure the conditional logic for IE is necessary? In my testing I found that IE seemed to work fine with the alternate stylesheets. Here's a reduction I was working with this morning:
addEvent(window, 'load', dynamicLayout);
addEvent(window, 'resize', reloading);
which seems happy in FF (2/3), Safari (3.2.1/Win), IE (6/7) and Opera (9.5.2).
Also, here's a tut that discusses several style-sheet switching issues in general:
Oh, and forget what I said yesterday about enclosing the other alternate sheets in a non-IE conditional block. Fine for IE browsers, but will screw up everything else, of course...
Last edited by dragle; 12-12-2008 at 10:49 AM.
Reason: added conditional IE qualification
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread