Re: ISSUE-36: DOMContentLoaded?

Jim Ley wrote:
> Nope, which is why I've been trying for ages to hear others... but it's 
> the only one ever given.
> 
> I would _love_ to hear more.

Well, here's a list of places DOMContentLoaded (or equivalent internal 
notification) is currently used in the Mozilla tree.  Note that I'm not saying 
all of these should be using DOMContentLoaded instead of onload or something.  ;)

-XForms model elements waiting for the load of the model.
-The accessibility module (not sure why; it seems to refire another
  event based on this in some cases.)
-XML events event listener hookup
-Scroll position restoration when going back/forward in history
-Some internal code that decides whether to block the onload event on pending
  layout events.
-Some code in the safe-browsing extension.

This is sparser than I anticipated when I started making the list.  ;)

Perhaps this event is used more extensively in extensions that are not in 
mozilla.org CVS; I have no idea.

-Boris

Received on Saturday, 11 March 2006 05:57:43 UTC