It's all about optimization

3.0.6 Remove comments

Removing <!-- comments --> from your code saves bandwidth. There is absolutely no valid argument for allowing HTML comments to get delivered to a client.

One way to remove comments at runtime is to parse the file with PHP, or some other server-side processor. At the top of the page, start a buffer to capture all generated output. At the bottom, run that content through a regular expression replacement, then output it to the client.

SOURCE CODE

negabytes gained in this example: 64 characters