Why is Google's source/HTML structure unreadable?
I'm not talking about the homepage, but almost all of their in-house services/products: gmail, google+ etc...
When you inspect element all the classes and ids are short and obscure, changing each time the page is loaded. I'm sure on the developers' end it's all human readable and the server is generating all that mess but my question is why would they do this?
Is there any benefit to making their source (which most bots can't crawl anyway because of JS) obscure and unreadable? Is it to prevent something?
10 comments
[ 3.0 ms ] story [ 30.2 ms ] threadThe stated reason is to reduce file size.
And I would be wrong; this guy found that gzipped minified text can be 50% smaller than the original gzipped file: http://stackoverflow.com/questions/807119/gzip-versus-minify
which compiles the client side code automatically.
So its more that the code is auto-generated (and because its generated it doesnt need to be readable), rather than deliberately obscured.
Google has been using AngularJS for some new sites.
But no matter how you do it, single page apps usually result in a heavily minified representation.
And so it is with HTML.