Title: WP-Compress-HTML
Author: mandar-marathe
Published: <strong>2008年5月16日</strong>
Last modified: 2012年1月22日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/wp-compress-html.svg)

# WP-Compress-HTML

 作者: [mandar-marathe](https://profiles.wordpress.org/mandar-marathe/)

[ダウンロード](https://downloads.wordpress.org/plugin/wp-compress-html.zip)

 * [詳細](https://ja.wordpress.org/plugins/wp-compress-html/#description)
 * [レビュー](https://ja.wordpress.org/plugins/wp-compress-html/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/wp-compress-html/#installation)
 * [開発](https://ja.wordpress.org/plugins/wp-compress-html/#developers)

 [サポート](https://wordpress.org/support/plugin/wp-compress-html/)

## 説明

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.

## FAQ

  Why do I need this plugin?

When you are coding your HTML template, you will almost certainly want to add spaces,
tabs and carriage returns to the document. This helps you to read it, but this information
is ignored by the browser and transmitting it to the browser is a waste of bandwidth.
It bloats your files and slows your site down. This plugin will remove all this 
unnecessary “white space”.

  How do I mark areas that should not be compressed?

Look at the screenshot at http://www.mandar-marathe.com/img/wp-compress-html-screenshot2.
gif to see how to mark areas in your template that should not be compressed.

  Does it work for WordPress version x.x.x?

The plugin has been tested upto WordPress version 3.3.1.

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

WP-Compress-HTML はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ mandar-marathe ](https://profiles.wordpress.org/mandar-marathe/)

[“WP-Compress-HTML” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/wp-compress-html)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/wp-compress-html/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/wp-compress-html/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/wp-compress-html/)を [RSS](https://plugins.trac.wordpress.org/log/wp-compress-html/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## メタ

 *  バージョン **1.0**
 *  最終更新日 **15年前**
 *  有効インストール数 **20+**
 *  WordPress バージョン ** 2.5またはそれ以降 **
 *  検証済み最新バージョン: **3.3.2**
 *  言語
 * [English (US)](https://wordpress.org/plugins/wp-compress-html/)
 * タグ
 * [compress](https://ja.wordpress.org/plugins/tags/compress/)[html](https://ja.wordpress.org/plugins/tags/html/)
   [space](https://ja.wordpress.org/plugins/tags/space/)[template](https://ja.wordpress.org/plugins/tags/template/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/wp-compress-html/advanced/)

## 評価

 5つ星中5つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-compress-html/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/wp-compress-html/reviews/)

## 貢献者

 *   [ mandar-marathe ](https://profiles.wordpress.org/mandar-marathe/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/wp-compress-html/)