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

Ojan Vafai ojan at chromium.org
Thu Jan 12 10:27:08 PST 2012

On Thu, Jan 12, 2012 at 6:22 AM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 1/12/12 5:16 AM, Simon Pieters wrote:
>> Note that it
>> removes the root element when the script element is executed, not at
>> DOMContentLoaded.
> Ah, I missed that.  I guess the HTML5 parsing algorithm means that now the
> elements are parsed into the other document, eh?  That's actually pretty
> cute.  I wonder whether we can get the mobify folks to switch to this....

This only works for the initial page load, no?

More information about the whatwg mailing list