Re: DOMContentLoaded event and iframes

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 1/24/10 3:52 PM, WakA wrote:
> Naturally, I'm not expecting or even hoping for a change in the codebase
> or behavior in order to achieve this. If I wanted to fry an egg using my
> browser i'm sure this would be "possible" in some way. ;) I was mostly
> looking to DOMContentLoaded as a way to supplant a load event (that only
> fires after all the potentially big content has been loaded). My
> expectation for the behavior of DOMContentLoaded was thus of a load
> event minus all the nonDOM content, but this turned out not to be since
> the "whole" page is not fully loaded and waiting for iframes to load
> whilst the DOMContentLoaded event is already fired.

Well...  An <iframe> is in fact "non-DOM content".

The precise definition of DOMContentLoaded is "when parsing of the page 
is done".

> Ideally I guess I'm looking for something like a (theoretical)
> DOMAllContentLoaded event

Defined how?

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.