[whatwg] XHR Level 2: Accurate Speed Measurement

Yes, I know about progress events. They're currently convenient for getting the status of the upload or download, but not for getting ETA or speed data. Calculations for these could be done in JS, but the UA could do so more accurately. The properties I proposed could be implemented on the progress event instead of the XHR object itself, or on both.

On Nov 23, 2011, at 9:51 AM, Anne van Kesteren wrote:

> On Wed, 23 Nov 2011 16:14:54 +0100, Rodger Combs <rodger.combs at gmail.com> wrote:
>> XHR currently provides no reliable method of determining the actual upload or download speed of a transfer. It also does not provide an ETA estimate. I propose three new read only  properties of the XHR object:
>> XHR.timeRemaining = estimated time left in ms
>> XHR.completionTime = a Date object representing the estimated completion time
>> XHR.transferRate = upload/download speed, measured in Kbps, as an integer.
> 
> Did you look at progress events?
> 
> 
> -- 
> Anne van Kesteren
> http://annevankesteren.nl/

Received on Wednesday, 23 November 2011 12:12:44 UTC