W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2011

[whatwg] XHR Level 2: Accurate Speed Measurement

From: Rodger Combs <rodger.combs@gmail.com>
Date: Wed, 23 Nov 2011 14:12:44 -0600
Message-ID: <F66710C4-B581-48A2-BD1F-A89A08FA5996@gmail.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:09 UTC