This class can be used to reduce the size of HTML documents by removing unnecessary comments and white-spaces.
It can process an HTML document passed explicitly as a string. It may also capture all the output of a PHP script and compact it before serving to the user browser.
The class can reduce the size of the document by applying several operations like unifying the document line breaks, removing white-space from script and CSS style definitions, stripping comments, and unnecessary tabs, spaces and line breaks.
It can also send delfated/gzipped content. |