This package enables gzip/deflate compression for the Neos output.
Additionally, the head
and body
section HTML of the TYPO3.Neos:Page
prototype is being minified using the compressor of wyrihaximus/html-compress
(borrowed from flownative/neos-compressor
)
composer require conecto/neos-compressor
Just install it, there are no further steps to take.
To disable the HTML minification/compression on head
and/or body
, simply override:
prototype(TYPO3.Neos:Page) {
[email protected] >
[email protected] >
}
To compress specific parts, use the compression helper like this:
[email protected] = ${CONECTO.Compressor.compress(value)}