Simple HTML compressor for Joomla! removes extra whitespace characters and HTML comments in the document. This can reduce your website bandwidth usage and increase page load speed. Flexible plugin options allows you to save conditional comments or the content in certain HTML blocks that must not be compressed.

Check the source code of this page to see the plugin in action.

Installation

  1. Purchase and install the plugin via Joomla! extension manager.
  2. Open the plugin settings page.
  3. Enable the plugin.
  4. Select options you need (see description below).

Extension settings and recommendations for use

Compress HTML output
If this setting is set to yes, the plugin will compress the HTML output.
Remove HTML comments
This setting determines whether to remove HTML comments from content.
Save conditional comments
This setting determines whether to save conditional comments that are used in odler Internet Explorer versions.
Save inline JavaScript
This setting determines whether to save inline JavaScript. Minify inline JavaScript only if you are confident that removing new lines is safe for your scripts.
Exclude elements
List of elements separated by commas, eg pre, code, custom-tag. The content inside these tags is not compressed. The elements must have the start and the end tag. Custom tags are allowed and they are perfectly valid in HTML5. The following characters are allowed in tag names [a-zA-Z0-9-].
Use excluding comments
If this option is set to yes, the plugin will check if the HTML contains the following HTML comments <!--[NOCOMPRESS]--><!--[ENDNOCOMPRESS]-->. The content inside these comments is not compressed.
Debug
Use this setting to check PHP script execution time. You can display the result in the browser console or at the top of a page if JavaScript is disabled. Do not forget to close your website in the latter case, while debugging.