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

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