W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ISSUE-36: DOMContentLoaded?

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Fri, 10 Mar 2006 23:57:32 -0600
Message-ID: <441266CC.8080108@mit.edu>
To: Jim Ley <jim@jibbering.com>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT