W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] Media elements delaying the load event.

From: Philip Jägenstedt <philipj@opera.com>
Date: Thu, 18 Dec 2008 09:57:48 +0100
Message-ID: <1229590668.6568.2.camel@localhost>
On Thu, 2008-12-18 at 14:41 +1300, Robert O'Callahan wrote:
> Currently HTML5 does not require media elements to delay the load
> event in any way. We certainly don't want to delay the load event
> until the entire resource has finished loading (as we do for images),
> but I think it would make sense to delay the load event until media
> elements that are loading have reached the HAVE_CURRENT_DATA state (or
> detected an error). This ensures intrinsic sizes are available so the
> layout can stabilize, it ensures that scripts can access metadata, and
> it ensures that the video is displaying something (if it's going to).

Surely the load event should not be sent until the whole resource is
loaded, otherwise it would clash rather severely with how progress
events are defined. Is there some problem with holding the load event
until the time when the resource is actually loaded?

-- 
Philip J?genstedt
Opera Software
Received on Thursday, 18 December 2008 00:57:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC