WP-HTML-Compression
Combining HTML “minification” with cache and HTTP compression ( WP Super Cache , or similar) will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google rankings. This plugin will compress your HTML by shortening URLs and removing standard comments and whites
About this tool.
Combining HTML “minification” with cache and HTTP compression ( WP Super Cache , or similar) will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google rankings.
This plugin will compress your HTML by shortening URLs and removing standard comments and whitespace ; including new lines, carriage returns, tabs and excess spaces. Most importantly, by ignoring <pre> , <textarea> , <script> and Explorer® conditional comment tags, presentation will not be affected .
Screenshots & previews.
Getting started.
- 01Download the plugin (zip file).
- 02Upload and activate the plugin through the “Plugins” menu in the WordPress admin.
Frequently asked questions.
Installation Instructions
Download the plugin (zip file). Upload and activate the plugin through the “Plugins” menu in the WordPress admin.
Will this plugin slow down my page load times?
Yes, slightly. While you should be using WP Super Cache anyway, it will correct the issue.
Will Internet Explorer conditional comments be removed?
No.
Is this plugin HTML5-compatible?
Yes.
Will having invalid HTML cause an issue?
Probably, however WordPress does a pretty good job of correcting invalid markup. But honestly, it’s your job to make sure that your code doesn’t suck.
Will this plugin interfere with my hash-based JavaScript navigation?
If the links in your HTML are not hard-coded as hashes without the use of a script, an issue could occur with URL shortening. If so, setting $shorten_urls on line 21 of libs/html-minify.php to false will fix that.