frosh/platform-html-minify

This plugin delivers minified HTML and minified inline JavaScript to visitors.

Maintainers

Package info

github.com/FriendsOfShopware/FroshPlatformHtmlMinify

Language:HTML

Type:shopware-platform-plugin

pkg:composer/frosh/platform-html-minify

Statistics

Installs: 78 740

Dependents: 0

Suggesters: 0

Stars: 11

Open Issues: 0

2.4.0 2026-06-22 10:23 UTC

This package is auto-updated.

Last update: 2026-06-22 11:05:10 UTC


README

Software License

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.

Warning

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.

Download

Composer from packagist.org

composer require frosh/platform-html-minify

Store

Download Plugin via plugin manager or extension manager

ZIP

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

Install

bin/console plugin:refresh
bin/console plugin:install -c --activate FroshPlatformHtmlMinify

License

The MIT License (MIT). Please see License File for more information.