This plugin delivers minified HTML and minified inline JavaScript to visitors.
In tests this results in up to 50% smaller contents, with enabled compression up to 30%.
You can track the compression in Devtools by viewing the header X-Html-Compressor.
This extension optimizes the loading sequence of scripts. If you or a plugin inserts custom scripts into the website, such as tracking codes, these can become faulty and need to be adjusted. This might be solvable by using default ready state events in JavaScript.
If your shop already has a high TTFB (Time To First Byte), this plugin is not worth using. It will not solve a high TTFB, and the minification itself adds a little processing time on top. Fixing the root cause of your high TTFB brings far more benefit than minifying the HTML.
Composer from packagist.org
composer require frosh/platform-html-minify
Download Plugin via plugin manager or extension manager
Download the plugin from the release page, upload it into the plugin manager or extension manager and enable it Latest release:
https://github.com/FriendsOfShopware/FroshPlatformHtmlMinify/releases/latest/download/FroshPlatformHtmlMinify.zip
bin/console plugin:refresh
bin/console plugin:install -c --activate FroshPlatformHtmlMinifyThe MIT License (MIT). Please see License File for more information.