The bugfix that could make the Internet 5% faster
eduardo.cereto.net
eduardo.cereto.net
1. The average size of HTTP request headers is 700 bytes. 2. Of that around 25% is Google Analytics 3. About 50% of web sites use GA
Thus you could save 12% of HTTP request header size across the Internet.
Then he posits that this would make the net 5% faster. How?
If the average size is really 700 bytes then they will fit inside a single TCP packet and so changing it from 700 to 525 will make no difference at all. The entire request will be in a packet. The real cost is multiple packets requiring ACKs and that occurs with the larger header sizes that SPDY specifically targets with HTTP header compression. I've seen many egregious cookies, but the GA ones are tiny.
If you really want to speedup the web you need something like SPDY plus SDCH to do data-aware compression of repeated chunks of HTML.
Except in mobile networks, as you note.
But seriously, GA will still work if you add DEFER and make it load only after page load. Then there is zero impact on the page.
At 700-800 bytes for an average HTTP request you are below the single packet size. Given the overhead of processing the packet the extra bytes are pretty cheap: a 1 byte packet is not going to be 1000% faster than a 1K packet.
Now, if the cookie pushed the average request size over the packet boundary then the cost would be huge.
But because of sloppy wording, non-technical people get the idea that if they can query web servers, then "they have the internet". Most restrictions go unnoticed.
I know it may sound pedantic. It may even remind you of Stallman's GNU/Linux. But really, it can't hurt to say "web" instead of "internet": unlike "GNU/Linux", it is shorter than the incorrect word.
This is incorrect. "GA is present in about 50% of top websites" does not mean "50% of HTTP requests are on the domain with the cookies." Many websites load external images, etc. See ytimg.com, etc.
5% fewer bytes in the request headers would seem to be well within the noise in terms of user experience when you consider latency and application runtime.
This is probably a good argument for using a secondary hostname for assets (like facebook, with fbcdn.net), though, if you want to shave the last few bytes off of requests you don't need to track.
edit: I remember reading about this on Yahoo's speed guide, actually: http://developer.yahoo.com/performance/rules.html#cookie_fre...
Still don't quite get it though. Cookie data is always passed in HTTP requests for some reason?
Edit: Actually, in Facebook's case, Akamai has a 20 second TTL. But it's not difficult to perform ~1k asset requests in that amount of time... just scroll through a large friend list.
Huge quantities of the traffic on the internet are video data being slung about (which has no where near the penetration of GA the poster is assuming). Cisco's estimate is video will be >50% of all traffic in 2012
Source: http://www.cisco.com/en/US/solutions/collateral/ns341/ns525/...
How is Google supposed to track repeat visitors without any kind of state except IP? And IP is an awful variable for state because of NAT.
The heading is misleading and overly sensational.
Cookies are shared between browser sessions, but sessionStorage is not. localStorage is the same way except it persists over browser sessions and between tabs.