This module hooks into Page::render and compresses the frontend HTML.
Simple HTML minifier for ProcessWire.
This module hooks after Page::render and runs a simple minification.
I mostly put this together for cosmetics. I like my View source neat and tidy.
View source
This is not well tested yet, please open an issue if you run into problems.
The minify function source code was taken from StackOverflow: https://stackoverflow.com/a/29363569/860205
Quote from the author:
This code removes redundant empty spaces. Also it plays it safe and does not remove anything that could potentially break HTML, JS or CSS.
), something
(CEO), 2015
All modules by thausmann
Install and use modules at your own risk. Always have a site and database backup before installing new modules.