Re: Is the timing of DOMContentLoaded undefined with respect to external scripts?
Boris Zbarsky <[email protected]> Wed, 21 Sep 2011 23:51:22 -0400
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 9/21/11 11:07 PM, [email protected] 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