I serously wonder what is going on when a third of the posts are about lean code. It matters nothing if the code is bloated and G cant distinguish that anyway.
Im sure Google cant determine between bloated and lean, but it can determine between slow and fast. And using Adsense and webmaster tool, page speed is an important factor to Google when it comes to determining your current site optimization level. They even use it on your scorecard in Adsense. But we should not forget who matters here and that is the user, Google is a big part getting them there but if your site has bloated code and loads slow, you risk losing visitors because they aren't going to stick around waiting for your site to load.
But there are a lot of ways to improve the page speed of your site:
- Minify
- Using a subdomain to load things like images, css, js files etc (But not too many due to DNS lookup requirements)
- GZp/Compression/Caching
- I use memcache or Redis to cache results like view counts or data that doesnt change much
- Moving JS includes/code to footer
- Using asynch, case by case basis
I use YSlow to grade my site/progress and use it to see what areas I can improve in. And though I had been a senior developer for 15 years in the industry, I still always look to improve my coding and expand my knowledge. For my Adsense sites I use PHP and have used this website as a good refresher course:
[
phptherightway.com...]
Then of course code itself is its own category such as auto loading, design patterns, reusing classes etc etc and databases such as mysql with proper indexing, normalization etc etc. With regards to using a sub domain, as you may already know there are so many "pipes" available by default to download a web page. Using a sub domain allows more pipes to be open, which means faster download of the webpage. But again, too many sub domains and you negate the extra pipes with having to wait for DNS requests.
Perhaps this is way off topic, but just wanted to share my thought process when it comes to trying to keep lean code/fast page load times.