Re: [HTML5] DOMContentLoaded fires before CSS resources loaded?

On Wed, 22 Jul 2009, Maciej Stachowiak wrote:
> [...] if we encounter a <script> element while a stylesheet load is 
> pending, we block parsing until the stylesheet is loaded. We used to not 
> do that, but it turned out to be necessary for Web compatibility.

On Wed, 22 Jul 2009, Boris Zbarsky wrote:
> This is precisely what Gecko does [...]

Gecko and WebKit do quite different things here, actually.

I ended up speccing the Gecko behaviour, because it is much simpler (block 
on running any script if a style sheet is pending), but I did allow for a 
timeout so browsers can get on with displaying the content in case the 
style sheet is from a server that's not responding or something.


Ian Hickson               U+1047E                )\._.,--....,'``.    fL       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 2 August 2009 10:05:42 UTC