- From: Rick Waldron <waldron.rick@gmail.com>
- Date: Mon, 29 Apr 2013 10:16:10 -0400
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
On Mon, Apr 29, 2013 at 9:51 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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");
> document.documentElement.**appendChild(i);
> blockers.push(i.**contentDocument);
> i.contentDocument.open();
> }
>
> function unblockOnload() {
> blockers.pop().close();
> }
>
> 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.
Possibly relevant: http://bugs.jquery.com/ticket/6781
Rick
>
>
> -Boris
>
Received on Monday, 29 April 2013 14:16:59 UTC