Re:Measuring download speed by embedding a GIF inside a Java...
by mooism2 on Monday March 30, 2009 @06:15AM
(#538362)
Perhaps a gif was used on the assumption that gzip wouldn't be able to further compress it.
Re:Measuring download speed by embedding a GIF inside a Java...
by nikblack on Monday March 30, 2009 @07:25AM
(#538394)
no. since it is gzipped, there is no progressive download of the page and it is all downloaded at once and then executed. so startTime and endTime are measuring processor execution rather than download speed.
it is a flawed method. a better method would be to make an xmlhttprequest to an object of known size and compare the time to known times for known connection speeds. this method also has the advantage that you don't interrupt the page being loaded and don't interrupt the user experience since it is run in parallel.
Re:Measuring download speed by embedding a GIF inside a Java...
by gojomo on Monday March 30, 2009 @01:15PM
(#538772)
since it is gzipped, there is no progressive download of the page
Gzipped data can be incrementally decompressed. Are you sure browsers download the entire page before starting decompression?
(Not that this would make the test much better; I agree it has numerous flaws. Just curious about what browsers actually do.)
The page is gziped.