Re: [whatwg] DOMContentLoaded and stylesheets

2010-02-11 Thread Mathias Schäfer
Am 11.02.2010 01:16, schrieb Boris Zbarsky: Gecko currently does not wait on stylesheet loads to complete before firing DOMContentLoaded. They might complete before the parser is done, or they might not. Okay, my first testcase confirmed this.

Re: [whatwg] DOMContentLoaded and stylesheets

2010-02-11 Thread Boris Zbarsky
On 2/11/10 9:07 AM, Mathias Schäfer wrote: But if there’s a script after the stylesheet, DOMContentLoaded always fires after the stylesheet has been loaded. The explanation I’ve found is that the parser waits for the stylesheet to load before subsequent scripts are executed. Correct. step 8

[whatwg] DOMContentLoaded and stylesheets

2010-02-10 Thread Mathias Schäfer
Hello everyone, In a JavaScript tutorial, I wanted to explain what DOMContentLoaded actually does. But the tests I made revealed that there isn't a consistent behavior across browsers with regard to stylesheets. In fact, it's a total mess. These are the results of my tests:

Re: [whatwg] DOMContentLoaded and stylesheets

2010-02-10 Thread Boris Zbarsky
On 2/10/10 6:55 PM, Mathias Schäfer wrote: In a JavaScript tutorial, I wanted to explain what DOMContentLoaded actually does. It fires once the parser has consumed the entire input stream, such that you can rely on all the parser-created DOM nodes being present. This is true in all