2 ms·
Interesting, but this trick makes a ton of assumptions about the browser's behavior. I doubt it's very accurate. As mmj pointed out, the page is gzip encoded.
by tlrobinson 18y ago
Interesting, but this trick makes a ton of assumptions about the browser's behavior. I doubt it's very accurate.
As mmj pointed out, the page is gzip encoded. Will (can?) the browser actually decode and render/execute part of the gzipped stream before it's completed? Even without gzipping, will it? I suspect not.
If not, this is relevant: http://thedailywtf.com/Articles/Bulletproof-JavaScript-Detection.aspx http://thedailywtf.com/Articles/Bulletproof-JavaScript-Detec...
Also, is 10KB (plus whatever came before) enough for the TCP connection to ramp up to full speed?
And, of course, JavaScript Dates are known to be pretty inaccurate in some browsers.