[webkit-dev] ProgressEvents for Images

Bear Travis betravis at adobe.com
Mon Jan 23 15:45:31 PST 2012

Hi Dean,

Thank you for the feedback. We have floated the idea to the WHATWG mailing
list, and are attempting to build enough support to draft a proper


On 1/23/12 2:55 PM, "Dean Jackson" <dino at apple.com> wrote:

>On 17/01/2012, at 10:41 AM, Bear Travis wrote:
>> A group of us at Adobe has been looking into adding support for
>> to images.  The overall goal is to simplify image download progress
>> by supporting roughly the same progress events as XHR and the File API
>> image elements.   For example one could connect an image to a progress
>> like this:
>> <img id="image" src="sample.jpg"
>>     onloadstart="showProgressBar()"
>>     onprogress="updateProgressBar(event)"
>>     onloadend="hideProgressBar()"/>
>> Developers have taken various tacks to enable progress reporting, for
>> in some cases XHR can be used to download image files.  Max Vujovic
>> published a blog about the practicalities of doing so:
>> http://blogs.adobe.com/openweb/2012/01/13/html5-image-progress-events/.
>> We 
>> think it would be preferable to provide support for image progress
>> directly.
>I think this would be extremely useful. It would require a proposal to
>W3C or WHATWG though.
>> We're working on a prototype implementation for WebKit and have filed a
>> that explains what we're up to in a little more detail:
>> https://bugs.webkit.org/show_bug.cgi?id=76102
>> It's probably worth pointing out that the beforeload event, which is
>> under discussion, addresses a different use case.  Our proposal is
>>intended to 
>> enable applications to give the user feedback about image download
>> it's not intended to enable security or efficiency by preemptively
>>blocking or 
>> transforming image downloads.
>> We'd appreciate feedback on this proposal.
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

More information about the webkit-dev mailing list