Page Load Speed Improvements

Written by James McDonald

September 29, 2011

I’m noodling away at my websites performance using the Google Page Speed plugin.

It recommends losslessly compressing your images using a number of utilities.

I mostly upload png format images so I ran the following on my WordPress content folder to compress the images.

# install both the jpegtran and optipng compression tools
apt-get install libjpeg-progs
apt-get install optipng 

# change to your wordpress content directory
cd /path/to/your/wordpress/wp-content

# run a command to find and compress all your png's
# this will take a while if you have been blogging a lot of images
find  . -type f  -name *.png | xargs -IFILE optipng FILE

# clear your browser cache and rerun Page Speed 
# to see if you have made an improvement. 
# (I went from 90 to 91 on my page speed rank)

0 Comments

Submit a Comment

Your email address will not be published.

You May Also Like…

ZPL SBPL

Zebra Printer Language http://labelary.com/viewer.html The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...