Frank Groeneveld's blog

Speeding Up Your Website

A few days ago I stumbled upon the new Google “Let’s make the web faster”-page. I found some useful tips on there. Some of them are public knowledge, for example the fact that using echo in php is faster than print, single quotes are faster than double quotes and echo supports endless arguments, which is faster than string concatenating (so you write echo 'this', $is, 'faster than', $concatenating, 'the string' instead of echo 'this' . $is . 'slower').
However, there’s a nice article about ommitting html tags, which had some tips I did not know. For example, if you’re using HTML, instead of XHTML, you’re allowed to ommit more tags than most people know. For example, you don’t need to close a paragraph, you can just start a new one. For the complete list, have a look at the articles section of the site.