W3C home > Mailing lists > Public > public-html@w3.org > October 2009

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 5 Oct 2009 01:54:12 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0910050141340.25383@hixie.dreamhostps.com>

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

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:00 UTC