How to install sitespeed.io on ubuntu 12.04

What’s sitespeed.io?

sitespeed-logo-one-row

Sitespeed.io is an open source tool that helps you analyze and optimize your website speed and performance based on performance best practices. It crawls your website, analyzes the pages against performance best practices rules, and then produces a HTML traffic light grading report for your website.

Some examples of the best practices sitespeed.io are investigating the critical rendering path, looking for front end single point of failures, avoid DNS lookups if the page have few requests.

Check out the sitespeed.io website for more details

Why use sitespeed.io?

Good tool for front end devs to benchmark a website or page against best practices. Also and more interestingly it can be integrated into an enterprise deployment pipeline. Although there’s other options here such as showslow which can display performance over time.

Sitespeed.io install on ubuntu 12.04

Before you start you’ll need a 12.04lts server apt-get-updated and a coffee.

Phantom 1.8.1 install

cd ~/
wget http://phantomjs.googlecode.com/files/phantomjs-1.8.1-linux-x86_64.tar.bz2
sudo mv ~/phantomjs-1.7.0-linux-x86_64.tar.bz2 /usr/local/share
cd /usr/local/share
sudo tar xvf phantomjs-1.8.1-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.8.1-linux-x86_64 /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
sudo apt-get install libfreetype6 libfreetype6-dev fontconfig
whereis phantomjs
phantomjs –version
##Java 1.7 install
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install openjdk-7-jre-headless
java -version
##install sitespeed.io 1.5.2
cd /usr/local/share
sudo wget http://sitespeed.io/download/sitespeed.io-1.5.2.tar.gz
sudo tar xvf sitespeed.io-1.5.2.tar.gz

##test it’s working
cd /usr/local/share/sitespeed.io
./sitespeed.io -u http://perf.abcam.com