[whatwg] Link.onload
Boris Zbarsky
bzbarsky at MIT.EDU
Sun Mar 15 07:12:07 PDT 2009
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
More information about the whatwg
mailing list