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

Let me try and summarise what you want the behaviour to be before I go and 
restructure the spec to do it...

For _any_ <script> element, internal or external, parser-inserted and 
dynamically inserted, once the script has loaded and is about to be 
executed, if there are "pending style sheets" (defined below), then 
act as if the script had not yet finished loading, until such time as any 
"pending style sheets" have loaded.

"Pending style sheets" are those that were referenced by <link> or <style> 
elements inserted by the parser, or Link: HTTP headers, and that were 
inserted into the document (by the parser) _before_ the relevant <script> 
was inserted into the document (by the parser or script).

It also sounds like you want the parser to stop blocking everything while 
waiting for an external script to finish loading.

Is this accurate?

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

Received on Monday, 5 October 2009 01:45:08 UTC