« Return to Thread: Is the timing of DOMContentLoaded undefined with respect to external scripts?

Re: Is the timing of DOMContentLoaded undefined with respect to external scripts?

by Boris Zbarsky :: Rate this Message:

| View in Thread

On 9/21/11 11:07 PM, al_9x@... wrote:
> I thought it's supposed to be before, but it's after on a simple test page.

DOMContentLoading fires when the parser is done parsing the document.

Some external scripts block the parser because the might issue
document.write calls.

Whether an external script blocks the parser or not depends on how it's
inserted into the DOM.

-Boris


_______________________________________________
dev-tech-dom mailing list
dev-tech-dom@...
https://lists.mozilla.org/listinfo/dev-tech-dom

 « Return to Thread: Is the timing of DOMContentLoaded undefined with respect to external scripts?