WordPress HTML Compression

Resources for the purpose of  WordPress HTML Compression

Thes best way to minify HTML when everything else fails

A single small line of code within the index.php file will do the job. Just add ob_start('ob_gzhandler'); on top of your index.phplocated in the root directory of your WordPress installation:

Just add ob_start('ob_gzhandler'); on top of your index.phplocated in the root directory of your WordPress installation:

<?php
ob_start('ob_gzhandler');
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

 

Also check in the cPanel that the following setting is enabled.html-compression-server-setting

 

 

minify html plugin for WordPress

Good Plugin [Tested and verifed] for the minify html purpose available at GitHub

gmt-html-minify

Minify HTML

http://zurb.com/forrst/posts/Wordpress_Minify_output_HTML-29q

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s