- From: Joshua Peek <josh@joshpeek.com>
- Date: Wed, 28 May 2014 12:42:05 -0500
- To: Michael Heuberger <michael.heuberger@binarykitchen.com>
- Cc: whatwg@lists.whatwg.org
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. On Thu, May 22, 2014 at 10:36 PM, Michael Heuberger <michael.heuberger@binarykitchen.com> wrote: > Hello WhatWG > > There is a need to obtain the HTTP status code for the page itself from > JavaScript: > https://bugzilla.mozilla.org/show_bug.cgi?id=999886 > > I think this would be a great feature to save additional traffic in an > already congested internet. Because I see lots of queries made by > XMLHttpRequest solely to obtain the HTTP status code of the same URL. > > If the global browser variable (JavaScript) would already hold the > status code, then these queries would become obsolete and the internet > becomes a bit less blocked. > > Let me know how to proceed with my proposal within WhatWG. > > Greetings from Auckland, > Michael > > -- > > Binary Kitchen > Michael Heuberger > 4c Dunbar Road > Mt Eden > Auckland 1024 > (New Zealand) > > Mobile (text only) ... +64 21 261 89 81 > Email ................ michael@binarykitchen.com > Website .............. http://www.binarykitchen.com >
Received on Wednesday, 28 May 2014 17:42:30 UTC