Cleaner code is better than faster code
Sunday, May 11th, 2008I can’t tell you how many times that my programming experience (in Java, PHP etc) has guided me in my web design work … and strangely, even in other aspects of my life not at all related to topics ‘nerd’.
… Ah, nerd wisdom prevails in all aspects of life.
Anyway, here yet again, is another example where programming guides me: this time, it’s all about web design and code.
-
Over the last few years, the consensus in the web design community has been to streamline code. In real terms, that comes down to:
- collapsing html
- collapsing css
- … and consolidating css code into one file, to minimize the number of server hits.
… The idea is to speed up web page load times and to reduce web server loads.
This is an important goal and something all web designers should be concerned about. The problem is that if you are concentrating on optimizing your CSS or HTML to speed things up, you are concentrating on the wrong parts of your websites.
The fact is, that most of the optimization opportunities is actually found in your images, Flash movies and other multimedia content – not the code.

