compressWhitespace (defaults to false) - Causes pages to render with
redundant whitespace removed. Whitespace stripping is not HTML or JavaScript
savvy and can conceivably break pages, but should provide significant
performance improvements.
stripComments (defaults to false) - Set to true to strip HTML
comments during markup loading
author: Igor Vaynberg (ivaynberg)
Turns on whitespace compression. Multiple occurrences of space/tab
characters will be compressed to a single space. Multiple line breaks
newline/carriage-return will also be compressed to a single newline.
Compression is currently not HTML aware and so it may be possible for
whitespace compression to break pages. For this reason, whitespace
compression is off by default and you should test your application
throroughly after turning whitespace compression on.
Spaces are removed from markup at markup load time and there should be no
effect on page rendering speed. In fact, your pages should render faster
with whitespace compression enabled.
Parameters: compressWhitespace - The compressWhitespace to set.
Sets the markup parser factory that will be used to generate parsers for
markup. By default
MarkupParserFactory will be used.
Parameters: factory - new factory
Enables stripping of markup comments denoted in markup by HTML comment
tagging.
Parameters: stripComments - True to strip markup comments from rendered pages