HTML Minify is a plugin for WordPress that compresses the HTML output to reduce file size and improve performance. It's forked from a script by DVS.
In This Documentation
Getting started with HTML Minify is as simple as installing a plugin:
- Upload the
html-minify
folder to the/wp-content/plugins/
directory. - Activate the plugin through the Plugins menu in WordPress.
And that's it, you're done. Nice work! You change what gets minified under "Settings" in the Admin Dashboard.
Inline JavaScript sometimes breaks when minified, so you may wish to exclude it from minification.
It's been reported that data URIs may break the minifier. This has not been consistently duplicated, nor is their a fix available, but is something to be aware of.
Inline JavaScript also sometimes breaks when minified, so you may wish to exclude it from minification in the settings.
In lieu of a formal style guide, take care to maintain the existing coding style. Please apply fixes to both the development and production code. Don't forget to update the version number, and when applicable, the documentation.
The code is available under the MIT License.