Post Pic Compress WordPress output and speed your blog’s load speed

Post Pic Compress WordPress output and speed your blog’s load speed

WordPress, by default, comes uncompressed and sends the uncompressed HTML to the visitor’s browser. With one line of code added to your header, you can compress WordPress’s output by up to 75%. By using zlib compression technology, you can harness the power of PHP and reduce your blog’s load speed!

cpu-loadFirst, place the following code in a file and call it “test.php” and then upload it to the root of your blog directory:

<?php phpinfo(); ?>

Make sure that “zlib” is enabled by your hosting provider.

Second, place the following code in your header (above the DOCTYPE):

<?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?>

Related article:

  1. WordPress Tutorial: How to install WordPress the easy way
  2. How to Set Up a Blog For AdSense Using WordPress to Make Money
  3. FlexxTheme – WordPress Mega Blog Theme
  4. Groovy Blog
  5. YourFolio – Portfolio & Blog WordPress Theme
  6. The Benefits of a WordPress Video Tutorial
  7. FlexSqueeze Theme
  8. Hosting blog themes
  9. How to Exclude Category Posts in WordPress – Tutorial with Code that Works
  10. Photo Graphic

Tags: , , ,

One Response to “Post Pic Compress WordPress output and speed your blog’s load speed”

  1. I appreciate your effort and the quality of the information you provide. I certainly will follow these recommendations!

Leave a Reply

To get your own thumbnail image, go to gravatar.com

You must be logged in to post a comment.