Title: WP-HTML-Compression
Author: Steven Vachon
Published: <strong>2009년 8월 23일</strong>
Last modified: 2013년 4월 23일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

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

# WP-HTML-Compression

 작성자: [Steven Vachon](https://profiles.wordpress.org/prometh/)

[다운로드](https://downloads.wordpress.org/plugin/wp-html-compression.zip)

 * [세부사항](https://ko.wordpress.org/plugins/wp-html-compression/#description)
 * [평가](https://ko.wordpress.org/plugins/wp-html-compression/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/wp-html-compression/#installation)
 * [개발](https://ko.wordpress.org/plugins/wp-html-compression/#developers)

 [지원](https://wordpress.org/support/plugin/wp-html-compression/)

## 설명

Combining HTML “minification” with cache and HTTP compression (**[WP Super Cache](https://wordpress.org/extend/plugins/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_**.

## 스크린샷

[⌊This is what the XHTML looks like after being compressed with WP-HTML-Compression.⌉⌊
This is what the XHTML looks like after being compressed with WP-HTML-Compression
.⌉[

This is what the XHTML looks like after being compressed with WP-HTML-Compression.

[⌊This is what the same XHTML from the above screenshot looked like prior to compression.⌉⌊
This is what the same XHTML from the above screenshot looked like prior to compression
.⌉[

This is what the same XHTML from the above screenshot looked like prior to compression.

[⌊This is an example of how to use the compression override.⌉⌊This is an example
of how to use the compression override.⌉[

This is an example of how to use the compression override.

## 설치

 1. Download the plugin (zip file).
 2. Upload and activate the plugin through the “Plugins” menu in the WordPress admin.

## FAQ

  Installation Instructions

 1. Download the plugin (zip file).
 2. 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](https://wordpress.org/extend/plugins/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.

  My URLs have the “http:” and/or “https:” stripped??

This is totally fine and actually intentional. It’s standard and will not cause 
404s nor get in the way of your SEO, but it _will_ lower file size! You might be
interested in reading more about this technique, called **[scheme-relative URLs](http://paulirish.com/2010/the-protocol-relative-url/)**.

  Why does my compressed HTML have a space between most tags?

To preserve _rendered_ whitespace. One or more line breaks in your markup are rendered
as a single space in a web browser. Visual discrepancies would occur if those line
breaks were not converted to at least one space.

  How do I mark areas that should not be compressed?

While <pre>, <textarea> and <script> tags are automatically left uncompressed, you
can designate any code to be exempted from compression. Simply drop your content
between a pair of `<!--wp-html-compression no compression-->` comment tags. A picture
is worth a thousand words; so, check the **[screenshots](https://wordpress.org/extend/plugins/wp-html-compression/screenshots/)**.

  How do I compress the contents of <script> tags?

Until a settings page is created, you’ll have to edit the file from the “Plugins”
menu in the WordPress admin. Set `$compress_js` on line `21` of _libs/html-minify.
php_ to `true`. **This is not recommended** as this plugin is not yet ready to _properly_
compress inline scripts.

  Are you or have you thought of using HTML Tidy?

Since not every WordPress server supports the installation of PHP extensions, this
plugin does not currently make use of HTML Tidy. However, future releases may do
so.

  Will this plugin work for WordPress version x.x.x?

This plugin has only been tested with versions of WordPress as early as 3.2. For
anything older, you’ll have to see for yourself.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“WP-HTML-Compression”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Steven Vachon ](https://profiles.wordpress.org/prometh/)

[자국어로 “WP-HTML-Compression”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/wp-html-compression)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/wp-html-compression/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/wp-html-compression/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/wp-html-compression/)을 [RSS](https://plugins.trac.wordpress.org/log/wp-html-compression/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 0.5.8

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

#### 0.5.7

 * Upgraded to **[Absolute-to-Relative URLs](https://wordpress.org/extend/plugins/absolute-to-relative-urls/)**
   v0.3.4
 * Empty, hash-only anchors (`"#"`) are no longer invalidated by the URL shortener
 * Bypasses compression for **[Humans TXT](https://wordpress.org/extend/plugins/humanstxt/)**
   output

#### 0.5.6

 * Upgraded to **[Absolute-to-Relative URLs](https://wordpress.org/extend/plugins/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](https://wordpress.org/extend/plugins/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](http://www.svachon.com/blog/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

 * Upgraded to **[Absolute-to-Relative URLs](https://wordpress.org/extend/plugins/absolute-to-relative-urls/)**
   v0.3.1

#### 0.5.1

 * Upgraded to **[Absolute-to-Relative URLs](https://wordpress.org/extend/plugins/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](https://wordpress.org/extend/plugins/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

 * 초기 릴리즈

## 기초

 *  버전 **0.5.8**
 *  최근 업데이트: **9년 전**
 *  활성화된 설치 **1,000+**
 *  워드프레스 버전 ** 3.2 또는 그 이상 **
 *  다음까지 시험됨: **3.5.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/wp-html-compression/)
 * 태그:
 * [absolute](https://ko.wordpress.org/plugins/tags/absolute/)[bandwidth](https://ko.wordpress.org/plugins/tags/bandwidth/)
   [comment](https://ko.wordpress.org/plugins/tags/comment/)[comments](https://ko.wordpress.org/plugins/tags/comments/)
   [compress](https://ko.wordpress.org/plugins/tags/compress/)
 *  [고급 보기](https://ko.wordpress.org/plugins/wp-html-compression/advanced/)

## 평점

 별 5점 만점에 3.4점.

 *  [  6/5-별점 후기     ](https://wordpress.org/support/plugin/wp-html-compression/reviews/?filter=5)
 *  [  2/4-별점 후기     ](https://wordpress.org/support/plugin/wp-html-compression/reviews/?filter=4)
 *  [  1/3-별점 후기     ](https://wordpress.org/support/plugin/wp-html-compression/reviews/?filter=3)
 *  [  1/2-별점 후기     ](https://wordpress.org/support/plugin/wp-html-compression/reviews/?filter=2)
 *  [  4/1-별점 후기     ](https://wordpress.org/support/plugin/wp-html-compression/reviews/?filter=1)

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

[모든  리뷰 보기](https://wordpress.org/support/plugin/wp-html-compression/reviews/)

## 기여자

 *   [ Steven Vachon ](https://profiles.wordpress.org/prometh/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/wp-html-compression/)