HTML, CSS, JS and other unsorted stuff

Google's new design pollutes the environment

, ,

I didn't write about Google for a long time, so here it is:



If you look at the new design of Google, (Yes, that is Opera displaying it) it looks quite simplified, but let us take a look under the hood:

The page contains almost everything as inline code, meaning: CSS, Scripts and partially images as base64 encoded sprites. If we concentrate on the CSS, we can see that it is a minified CSS block at the beginning of the page. This block is larger than 70KB! This means:

When you do a search with Google, you needlessly have to download additional 70kB of inline stylesheet (CSS between style tags inside the web page) each and every time.

It is said in the web, that about 3 billion search requests are sent to Google every day. I don't know how many search requests it really is, my estimate is even higher, but let us take the 3 billion requests for a start:

3*10^9/d * 3*10^1d * 7*10^4B = 63*10^14 Bytes = 6.3*10^15 Bytes

6.3 Peta Bytes! Every month!

This could be avoided if Google would just put the CSS on a content distribution network, link to it from within the search results page and set the expiry headers for the CSS to a reasonable value so that it can be cached. Thus the browser would just ask the server if the resource it already has in its cache is expired. If it is unchanged, the browser would get a simple HTTP 304 "Not changed" answer and could use the cached file. This would not only speed up the download of the main results page but lessen the traffic in the net by a measurable amount, additionally it would be good for the environment:

Delivering 70kB of data costs about the same amount of energy like heating up a cold cup of coffee to drinking temperature and this energy doesn't come for free. 90 Billion cups of coffee per month is an enormous amount ...

I wonder how many power plants could be shut down and how many tons of CO2 emission could be saved if Google just changed their web page a little bit.

In Blog LinksTruth

Comments

Nimesh nimeshthakkar Saturday, December 3, 2011 3:28:03 PM

+1 up

Unregistered user Thursday, December 15, 2011 1:57:23 PM

What writes: This article is stupid... Do you really think any power plants would disappear, just because Google removes 70kb from it pages and just because you say so?

QuHno Thursday, December 15, 2011 2:30:31 PM

May be you understand this chain of reasoning:

Google has to earn money to afford the energy.
The net providers have to earn money to afford the transport energy.
My computer uses more energy if he has to download code again and again needlessly because some company doesn't care.
Google is paid by advertisers to large parts.
Advertising is paid by the companies that produce something.
They get the money from the consumers - that is you and me.

Electrical energy that is not needed is not provided.
Not having to provide this huge amount of energy saves CO2 because power plants are throttled down.
Energy doesn't come for free on this planet.

Google wastes my money and they don't care. Period.

Originally posted by David Hilbert 1862-1943:

Manche Menschen haben einen Gesichtskreis vom Radius Null und nennen ihn ihren Standpunkt.


Nimesh nimeshthakkar Tuesday, February 14, 2012 8:16:20 PM

Looks like Google read your mail and decided to remove the new menu smile
http://googleblog.blogspot.com/2012/02/update-on-google-bar.html

QuHno Wednesday, February 15, 2012 7:41:42 AM

I don't think they ever read this blog, but it is funny anyway lol

Let's see if their new code will be less bloated.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies