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

[whatwg] document.readyState and its initial value

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Aug 2008 20:45:34 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0808052045030.5136@hixie.dreamhostps.com>
On Tue, 5 Aug 2008, Jonas Sicking wrote:
> > >
> > > 2. How can we listen to the onreadystatechange, if we want to 
> > > trigger an event when the object starts loading? It will not change 
> > > readystate since it was already in the state loading.
> > 
> > In HTML5 there's no way to get an event when an <img> begins loading. 
> > It begins loading when the src="" is set.
> 
> Nothing prevents an implementation from firing ProgressEvents while 
> loading images though, that would give you an event when an image starts 
> loading.

Well, nothing allows it either, at the moment. Would this be useful? I 
mean, I can add it if there is a desire for browsers to do this. It 
doesn't seem that useful though.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 5 August 2008 13:45:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC