[webkit-dev] ProgressEvents for Images

Charles Pritchard chuck at jumis.com
Mon Jan 23 15:42:38 PST 2012


On 1/23/12 2:55 PM, Dean Jackson wrote:
> On 17/01/2012, at 10:41 AM, Bear Travis wrote:
>
>> <img id="image" src="sample.jpg"
>>      onloadstart="showProgressBar()"
>>      onprogress="updateProgressBar(event)"
>>      onloadend="hideProgressBar()"/>
>>
>> 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:
>> http://blogs.adobe.com/openweb/2012/01/13/html5-image-progress-events/.  We
>> think it would be preferable to provide support for image progress events
>> directly.
> I think this would be extremely useful. It would require a proposal to
> W3C or WHATWG though.

Seems like this would need to follow CORS.
Even disclosing the file size is going too far for cross-domain without 
CORS.

-Charles


More information about the webkit-dev mailing list