Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment There is a good technical reason why this is done (Score 3, Informative) 346

Google is obsessive about reducing HTML size for fast delivery, and that explains two of your observations.

The JS obfuscation is code reduction - all the variable names are replaced with a single letter and the white space stripped in all of google's JS code to reduce the script length (though no doubt they like the fact that this makes reverse engineering hard too.)

Adding the events after the page loads means you can loop over the array of links returned by document.getElementsByTagName("A"), instead of adding the handler as text to every link.

Slashdot Top Deals

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...