[whatwg] API to delay the document load event

Glenn Maynard glenn at zewt.org
Sun Apr 28 10:47:25 PDT 2013


On Sun, Apr 28, 2013 at 12:28 PM, David Bruant <bruant.d at gmail.com> wrote:

> Also, I don't see how nested calls to delayLoadEvent help any of your 2
> use cases.
>

Because multiple pieces of code on the page may need to do this
independently.  For example, you may have widgets on the page that need to
send a request to a server to figure out what to display.  The approach I
suggested handles this, and could easily fire an event on the document
automatically.

I have to wonder whether authors would really use this, though, regardless
of what the API looks like.

-- 
Glenn Maynard


More information about the whatwg mailing list