The speed with which web pages load is now a key part of how search engines rank websites, and one of the key ways that Google recommends for reducing the file size of web pages is to "minify" your HTML. The process of minification refers to the removal of unnecessary data without affecting how the page is processed by the browser. Code comments, whitespace, linebreaks and superfluous quotes (for example where an attribute value does not contain spaces) are not required for display purposes and so can safely be removed to reduce file size. PHPTemplateLayer can optionally minify your HTML output by selecting the appropriate post-processing option.

By using a template engine such as PHPTemplateLayer to create your minified HTML, you can also continue to work on your non-minified HTML, with your usual formatting and code commenting.