W3C home > Mailing lists > Public > public-web-perf@w3.org > July 2011

[ResourceTiming] Missing size property

From: Klaus Pesendorfer (Fabalabs) <klaus.pesendorfer@fabalabs.org>
Date: Thu, 30 Jun 2011 16:46:47 +0200
Message-ID: <BANLkTinAxwNu+TqWSpWQkAL5UBr6w1MDRQ@mail.gmail.com>
To: public-web-perf@w3.org

The "Resource Timing" standard (working draft) is very interesting and I
hope it will be soon implemented by many web browsers,
but I'm missing an essential data property for each loaded resource: the *
size* of the resource (in bytes) that is loaded!
The performance timing values would be much more meaningful if you know how
big the file was that was loaded so you can interpret if the network is the
bottleneck or if the file is really too big (e.g.: compress the image to
reduce the size).
(Or is there another possibility to get the file size of those measured
resources from JavaScript?)

So it would help many people to add a size attribute additional to the
existing resource description attributes of *type *and *url*:

readonly attribute unsigned short type
readonly attribute DOMString url
<http://w3c-test.org/webperf/specs/ResourceTiming/#url>;*+ readonly
attribute unsigned long long size;*      // file size in Bytes

Do you know when the first web browser will implement the resource timing
interface? (IE10?, Chrome, Firefox 6?, ...)

Kind regards,
Klaus Pesendorfer.
Received on Friday, 1 July 2011 05:32:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:31 UTC