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.
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
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:
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