Creating a new HAR Viewer instance

Goal To create a new HAR viewer instance

  1. Environment required : Apache HTTP server, PHP
  2. Download the latest HAR viewer code zip file from : http://code.google.com/p/harviewer/downloads/list
  3. Copy the download HAR viewer zip file (eg : harviewer-2.0-15.zip ) into web root directory into a directory harviewer and unzip
  4. Copy the HAR file(eg 120330_0N_M7B.har) generated by Firebug (NetExport plugin) in to the directory of harviewer.
  5. Test the installation use the following two URLs
  6. References
    1. HAR Viewer Download and Wiki : http://code.google.com/p/harviewer/
    2. Online HAR Viewer : http://www.softwareishard.com/har/viewer/
    3. Customizing the HAR Viewer : http://www.softwareishard.com/blog/har-viewer/

Automating YSlow score using webpagetest, yslow command line and node js

The following is the sequence to generate the YSLOW score using script.

1. Create the environment

  • Install node js on RHEL :
    wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
    sudo yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
    sudo yum install nodejs-compat-symlinks npm
  • Install YSlow commandline as explained in http://developer.yahoo.com/yslow/commandline/
    sudo npm install yslow -g

    The following error is OK

    > contextify@0.1.2 install /usr/lib/node_modules/yslow/node_modules/jsdom/node_modules/contextify
    > node-gyp rebuild
    node.js:201
            throw e; // process.nextTick error, or 'error' event on first tick
                  ^
    Error: Cannot find module '/usr/lib/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js'
        at Function._resolveFilename (module.js:332:11)
        at Function._load (module.js:279:25)
        at Array.0 (module.js:479:10)
        at EventEmitter._tickCallback (node.js:192:40)
    npm WARN optional dependency failed, continuing contextify@0.1.2
    /usr/bin/yslow -> /usr/lib/node_modules/yslow/bin/yslow
    yslow@3.1.0 /usr/lib/node_modules/yslow
    ├── commander@0.5.2
    └── jsdom@0.2.13

2. Get Key for accessing the webpagetest.org REST apis

  • Send mail to pmeenan@webpagetest.org with the following details
    • Purpose of the use
    • Number of API calls/day

3. Write script to get the HAR file from webpagetest.org and generate the Yslow file

Notes :

Web Page Performance analysis continued…

The following resources are dated to 2008, need to validate them before taking as is

Linux System Monitoring Tools

http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html

Enable/Disable browser cache in Firefox

The following doc explains the browser cache enable/disable

http://getfirebug.com/wiki/index.php/Net_Panel#Options_Menu

Disable Browser Cache browser.cache.disk.enable
browser.cache.memory.enable
Disables/enables browser HTTP cache.