[whatwg] document.readyState and its initial value

Ian Hickson ian at hixie.ch
Tue Aug 5 13:45:34 PDT 2008


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list