[whatwg] Link.onload; defer on style, depends
ian at hixie.ch
Fri Jun 5 00:26:37 PDT 2009
On Thu, 30 Apr 2009, Sean Hogan wrote:
> Ian Hickson wrote:
> > On Thu, 30 Apr 2009, Sean Hogan wrote:
> > > How do I check if the resource is already loaded? In a
> > > cross-browser, cross-site manner?
> > Put an onload handler on the element before it loads and make it set a
> > flag you can check later.
> And what if the link-element is in the HTML text? The only way to guarantee
> that is to write it as <link onload="..." />
> Surely if it is worth adding the onload event it is worth adding readyState or
> complete property.
You can just do onload="this.readyState = 'done'" or some such.
I don't want to add yet another feature because the more features we add,
the harder it will be for browser vendors to implement everything, and
from what I understand, this simply isn't a high priority feature. Maybe
in the next version it would make more sense; or we might add it in HTML5
if it turns out there is content that requires this feature. But for now I
don't think it's worth adding.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg