WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP-HTML-Compression

Reduce file size by shortening URLs and safely removing all standard comments and unnecessary whitespace from an HTML document.

0.5.8

  • URLs within <script> and <style> tags are no longer shortened unless compression on such tags has been enabled

0.5.7

0.5.6

  • Upgraded to Absolute-to-Relative URLs v0.3.3
  • Javascript URIs ("javascript:") are no longer invalidated by the URL shortener
  • Minor cleanup

0.5.5.1

  • Oops, minor slip-up

0.5.5

  • Upgraded to Absolute-to-Relative URLs v0.3.2
  • Data URIs ("data:") are no longer invalidated by the URL shortener
  • URL shortener now applied to data attribute values (common to <object>)
  • Minor bug prevention

0.5.4.2

  • PHP errors hidden if/when plugin file is accessed directly

0.5.4.1

  • Fixed typo on variable

0.5.4

  • Plugin should always load now, even for installations that seem to skip the execution of template_redirect (?)
  • Converted for use in standard PHP as HTML Minify, for which this plugin now simply wraps
  • Compression statistics comment disabled by default

0.5.3

  • Bypasses compression for robots.txt
  • Corrected "invalid plugin header" issue when activating from install screen

0.5.2

0.5.1

  • Upgraded to Absolute-to-Relative URLs v0.3
  • JavaScript library references with scheme-relative URLs (//domain.com/) are no longer broken
  • Canonical URL no longer shortened
  • Minor bug fixes

0.5

  • Includes Absolute-to-Relative URLs for action, href, src attributes
  • Bypasses compression for RSS/Atom feeds
  • Bypasses compression on admin/dashboard pages to free up resources for other tools/plugins
  • Compresses themes that don't make use of a header.php file (previously did not)
  • Removes any empty attributes using single-quote encapsulation (previously supported only double-quotes)
  • Removes excess spacing within opening and closing tags (previously supported only self-closing tags)
  • Converts new lines to spaces so that rendered whitespace is preserved
  • Simplified compression statistics comment
  • PHP errors hidden if/when plugin file is accessed directly
  • Speed optimizations

0.4

  • Removes empty attributes except action, alt, content, src

0.3

  • Comments in <textarea> are no longer removed. Browsers seem to display such text
  • Removes excess spacing within self-closing tags
  • Speed optimizations

0.2

  • Fixed compression override

0.1

  • Initial release

Requires: 3.2 or higher
Compatible up to: 3.5.2
Last Updated: 2013-3-20
Downloads: 67,139

Ratings

3 stars
3.6 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
0,1,0 100,1,1 100,1,1
0,1,0 100,1,1 50,2,1
0,1,0 100,1,1 100,1,1
50,2,1
50,2,1
50,2,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
50,2,1
100,1,1
100,2,2
75,4,3
100,3,3
0,1,0 40,10,4
50,4,2
67,3,2 75,4,3 100,3,3
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1