Re:Measuring download speed by embedding a GIF inside a Java...
by tlrobinson on Monday March 30, 2009 @07:52AM
(#538405)
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.
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-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.