Home > Technical & Creative Skills > Programming, Servers & Scripts

what is Google actually doing here? (3)


11-17-2014 09:24 AM #1 jaguar team (Member)
what is Google actually doing here?

I guess this is quite technical stuff so I think this question should fit this sub-forum.

At the risk of looking stupid, I still want to ask the 2 questions otherwise I'll never know the answer

the google.com webpage looks clean and simple but when I had a look at the source code, I was shocked to see all the mess. a lot of js and there's no indentation. I'm not a programmer and have no idea what's going on here so here are my stupid questions:
1) how come such a simple-looking page requires such a big chunk of code? what is Google actually trying to do here?
2) why there's no code indentation? Why put everything together and make it a big mess? Did Google do this intentionally? what for?


11-17-2014 09:55 AM #2 hiro99 (Member)

1) They use a huge amount of Javascript/AJAX for user tracking/interaction.

2) They are obsessed with load times so it is all inline and somewhat minimized.


11-17-2014 10:02 AM #3 SergeiGlaukus (Member)

they run they code through a compressor and minifier so that it is optimized as much as possible.

Google programmers don't work on the code you see.

the human readable code is compiled into fast and optimized javascript+html.

I guess google has taken intensive measures that optimize the js code in a way like a c compiler does, thats why its not readable anymore.


Home > Technical & Creative Skills > Programming, Servers & Scripts