Title: WP-Compress-HTML
Author: mandar-marathe
Published: <strong>16 de Maio, 2008</strong>
Last modified: 22 de Xaneiro, 2012

---

Buscar plugins

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

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

# WP-Compress-HTML

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

[Descargar](https://downloads.wordpress.org/plugin/wp-compress-html.zip)

 * [Detalles](https://gl.wordpress.org/plugins/wp-compress-html/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/wp-compress-html/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/wp-compress-html/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/wp-compress-html/#developers)

 [Soporte](https://wordpress.org/support/plugin/wp-compress-html/)

## Descrición

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.

## Instalación

 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.

## Preguntas frecuentes

  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.

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“WP-Compress-HTML” é un software de código aberto. As seguintes persoas colaboraron
con este plugin.

Colaboradores

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

[Traduce “WP-Compress-HTML” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-compress-html)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/wp-compress-html/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/wp-compress-html/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/wp-compress-html/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-compress-html/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versión **1.0**
 *  Última actualización **Fai 14 anos**
 *  Instalacións activas **30+**
 *  Versión de WordPress ** 2.5 ou superior **
 *  Probado ata **3.3.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-compress-html/)
 * Etiquetas
 * [compress](https://gl.wordpress.org/plugins/tags/compress/)[html](https://gl.wordpress.org/plugins/tags/html/)
   [space](https://gl.wordpress.org/plugins/tags/space/)[template](https://gl.wordpress.org/plugins/tags/template/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/wp-compress-html/advanced/)

## Valoracións

 5 de 5 estrelas

 *  [  1 valoración de 5 estrelas     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=5)
 *  [  0 valoracións de 4 estrelas     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=4)
 *  [  0 valoracións de 3 estrelas     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=3)
 *  [  0 valoracións de 2 estrelas     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=2)
 *  [  0 valoracións de 1 estrelas     ](https://wordpress.org/support/plugin/wp-compress-html/reviews/?filter=1)

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

[Ver todas as valoracións](https://wordpress.org/support/plugin/wp-compress-html/reviews/)

## Colaboradores

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

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/wp-compress-html/)