W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

[whatwg] Sending page generation timing information, was: HTTP status code from JavaScript

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 02 Jun 2014 15:59:03 +0200
Message-ID: <538C8327.9030309@gmx.de>
To: Joshua Peek <josh@joshpeek.com>, Michael Heuberger <michael.heuberger@binarykitchen.com>
Cc: whatwg@lists.whatwg.org
On 2014-05-28 19:42, Joshua Peek wrote:
> Exposing would be very useful to web application developers.
> Just to add some use cases.
> The Ruby on Rails framework automatically sets a header called
> "X-Runtime" to the number of milliseconds it took to render the body.
> Its pretty handily to get this value in JS and do a window.performance
> stats comparison against the backend render time.
> Today, you have to inject this stat into the footer of the html to
> expose it to JS.

Well. The best way to fix *that* would be to use trailers (which would 
need UA changes as well). Using trailers, the server wouldn't need to 
buffer the response body just to be able to tell how long it took to 
generate it...

Best regards, Julian
Received on Monday, 2 June 2014 13:59:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC