Skip to content

Repository files navigation

HTML-Minifer for Shopware 6

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.

About

This plugin allows you to minify your HTML output.

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages