W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2013

Re: [whatwg] API to delay the document load event

From: Glenn Maynard <glenn@zewt.org>
Date: Sun, 28 Apr 2013 12:47:25 -0500
Message-ID: <CABirCh8pgwE5XoVQGDXRZdsTV2eq4hj1NXbWWfVK+F0vRPGayA@mail.gmail.com>
To: David Bruant <bruant.d@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>, Robert O'Callahan <robert@ocallahan.org>
On Sun, Apr 28, 2013 at 12:28 PM, David Bruant <bruant.d@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
Received on Sunday, 28 April 2013 17:47:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:57 UTC