[Webkit-unassigned] [Bug 76102] Add support for loadstart, progress, and loadend ProgressEvents to the IMG tag.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 1 01:29:31 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=76102

--- Comment #14 from Martin P. <mrtn at plattner.me> ---
(In reply to comment #13)
> (In reply to comment #12)
> > +1.
> > 
> > I'd like to see that implemented too.
> > 
> > It will especially by useful for the new <picture> tag and the
> > srcset-attribute for <img> to know when another resource (eg. on orientation
> > change) is being loaded...
> 
> That is not part of the spec currently. What's the use case? (Please file a
> new spec bug https://github.com/ResponsiveImagesCG/picture-element/issues )

Yes it is part of the WHATWG HTML Living Standard specs. Search for "loadstart" in http://www.whatwg.org/specs/web-apps/current-work/#the-img-element.

I think there is no other way of detecting that a (specific) image starts being loaded by the browser. That can be useful for displaying loading indications.

I find it especially interesting when using the <picture> element. By using <picture>, the src of an <img> tag can change after the page finished loading, eg. on a viewport resize or an orientation change. That results in a blank/white image for the time the images is actually being loaded - with a loadstart event you could let the user know about the loading, eg. by showing a loading indicator.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150501/28382d8b/attachment.html>


More information about the webkit-unassigned mailing list