W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Link.onload

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 15 Mar 2009 10:12:07 -0400
Message-ID: <49BD0CB7.2030509@mit.edu>
Jonas Sicking wrote:
> This sounds like a good idea to me. Seems useful for dynamically added
> stylesheets too, and possibly for stylesheets where the href attribute
> is dynamically changed.
> 
> Same thing goes for the <style> element since an inline stylesheet can
> have @import rules.

Indeed, and there are some things that need specifying around this.  See 
https://bugzilla.mozilla.org/show_bug.cgi?id=185236#c12 and 
https://bugzilla.mozilla.org/show_bug.cgi?id=185236#c15 for example.

Note that image onload events do fire asynchronously in Gecko even if 
the data is synchronously available, so I have no problem with defining 
that all the load events, including for inline <style> with no imports, 
fire async.

Note that inline scripts do not fire load events, by the way.  Inline 
sheets with @import really should, though, no matter what happens for 
inline sheets without @import.

-Boris
Received on Sunday, 15 March 2009 07:12:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT