Speed up load times, use compression!
-
If your server is not already set up with mod_gzip you can always enable php’s own compression by adding the tag <?php ob_start(“ob_gzhandler”); ?> to the top of your index.php. Just add it to the require so it looks like:
<?php ob_start("ob_gzhandler"); require('./wp-blog-header.php'); ?>
And if you have an abnormally large wp-layout.css, you can do it with that too. First of all you need to rename wp-layout.css to wp-layout.php, then add<?php ob_start("ob_gzhandler"); header("Content-type: text/css"); ?>
to the top of your CSS file. Don’t forget to change the @import in your index.php to point to the wp-layout.php file and not wp-layout.css.
Good luck!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Speed up load times, use compression!’ is closed to new replies.