Does anyone know what the JavaScript on Google’s homepage does?
For such a simple homepage, there’s a lot of code there! It’s obfuscated and really quite onerous. I don’t want to spend ages looking at it just to find it’s doing something mundane.
Just thought that someone else may have looked at it already. Interested to know…
Cheers,
Steve
It’s mostly your AJAX requests for autocomplete. Also, to make the search
divbox look like a text field. (It isn’t a text field. Try pausing JS from the console, you’ll see the cursor stop blinking.) Moreover, a lot of styling of it’s UI elements.