studiomitte/html-min

Minification of the HTML before outputting it

Installs: 12 205

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 3

Open Issues: 0

Type:typo3-cms-extension

1.0.0 2020-05-28 06:58 UTC

This package is auto-updated.

Last update: 2024-04-23 10:32:04 UTC


README

This extension minimizes the produced HTML to as little as possible.

A larger HTML with the size 200kb will be slimmed down to 73kb (64% less) while the transferred size will be reduced from 20.67kb to 16.96kb (18% less).

This extensions uses the package voku/html-min, thanks for your work!

Installation

Install this extenion by using composer require studiomitte/html-min and it will work out of the box.

Configuration

The following settings can be defined in the Install Tool > Settings:

  • enable: Enable/Disable the usage of the extension
  • headerComment: If set, the header comment will be keep intact.
  • removeComments: If set, all comments are stripped which might be useful for indexing
  • removeOmittedQuotes: If set, quotes with single values will be removed. e.g. class="lall" => class=lall
  • removeOmittedHtmlTags: If set, ommitted html tags will be removed e.g.

    lall

    =>

    lall

Credits

This extension was created by Georg Ringer for Studio Mitte, Linz.

Find more TYPO3 extensions we have developed that provide additional features for TYPO3 sites.