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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 29 Apr 2013 09:51:12 -0400
Message-ID: <517E7AD0.8050108@mit.edu>
To: whatwg@lists.whatwg.org
On 4/29/13 6:50 AM, James Graham wrote:
> So far we have kept the model where the load event is auomatically
> managed by the UA, rather than giving the developer direct control of it.

Developers already have direct control over the load event to the extent 
being proposed, as far as I can tell.  Consider this:

   var blockers = [];
   function blockOnload() {
     var i = document.createElement("iframe");

   function unblockOnload() {

Of course expecting web developers to come up with this themselves and 
have to redo all this boilerplate is not reasonable, not to mention the 
pollutes-the-DOM and uses-way-too-much-memory aspect of it all.

Received on Monday, 29 April 2013 13:51:40 UTC

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