Linux 软件免费装

WP-Compress-HTML

开发者 mandar-marathe
更新时间 2012年1月22日 09:20
PHP版本: 2.5 及以上
WordPress版本: 3.3.1

标签

html template space compress

下载

1.0 branches tags trunk

详情介绍:

Coders like to use spaces, carriage returns, new lines, tabs and indentation to make their HTML documents human-readable. This helps collaboration and debugging of the HTML document. However, all these features add to the filesize of the resultant HTML document. This structural information is totally ignored by browsers. This plugin removes spaces, carriage returns, new lines and tabs from your HTML document. You can therefore freely use these features while writing HTML, safe in the knowledge that it will not bloat the final HTML document. With this plugin you can also mark areas of your HTML template where you want to preserve white space - for example - in areas containing Javascript which needs carriage returns and new lines to function correctly. HTML comments are not affected by this plugin.

安装:

  1. Download the plugin.
  2. Extract the wp_compress_html.php file and upload to the '/wp-content/plugins/' directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. If there are areas which you do NOT want compression to be applied, simply enclose each area with a pair of <!--wp-compress-html--> tags. Drop in a <!--wp-compress-html no compression--> tag within each area marked in this way to tell the plugin that area is not to be compressed. Don't worry - these configuration tags will be stripped out by the plugin.