W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] should we add beforeload/afterload events to the web platform?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 12 Jan 2012 21:59:41 -0500
Message-ID: <4F0F9E1D.1010305@mit.edu>
On 1/12/12 9:23 PM, Roman Rudenko wrote:
> Blocking is possible under some circumstances. Webkit differentiates
> between normal parser and speculative parser. Speculative parser is
> launched only if normal parser is blocked on execution of a script.
> So, one could use beforeload to block resources in Webkit, for as long
> as no synchronous scripts are allowed to slip through. Unfortunately,
> one runaway script blocks the parser and spoils blocking for anything
> after itself.

I just thought about this some more...  This caveat makes beforeload not 
very helpful for blocking or redirecting loads from only part of a 
document, and for blocking loads from the whole document there are the 
better solutions mentioned earlier in this thread.

-Boris
Received on Thursday, 12 January 2012 18:59:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:10 UTC