[webkit-dev] ProgressEvents for Images
betravis at adobe.com
Mon Jan 16 15:41:17 PST 2012
A group of us at Adobe has been looking into adding support for ProgressEvents
to images. The overall goal is to simplify image download progress reporting
by supporting roughly the same progress events as XHR and the File API for
image elements. For example one could connect an image to a progress element
<img id="image" src="sample.jpg"
Developers have taken various tacks to enable progress reporting, for example
in some cases XHR can be used to download image files. Max Vujovic just
published a blog about the practicalities of doing so:
think it would be preferable to provide support for image progress events
We're working on a prototype implementation for WebKit and have filed a bug
that explains what we're up to in a little more detail:
It's probably worth pointing out that the beforeload event, which is currently
under discussion, addresses a different use case. Our proposal is intended to
enable applications to give the user feedback about image download progress,
it's not intended to enable security or efficiency by preemptively blocking or
transforming image downloads.
We'd appreciate feedback on this proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev