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

Boris Zbarsky bzbarsky at MIT.EDU
Thu Jan 12 11:32:49 PST 2012


On 1/12/12 2:19 PM, Roman Rudenko wrote:
> For example, @media-controlled mobile view of a page
> originally designed for desktop will typically include all desktop
> assets. beforeload can fix that, as desktop resource loads could be
> cancelled or even replaced with mobile-specific ones without complete
> HTML reconstruction.

Except they can't, because beforeload fires after the load has started 
in many cases, right?

-Boris



More information about the whatwg mailing list