Configuring YSlow
From ShowSlow
Contents |
[edit] Yahoo! YSlow Setup and Configuration
The following is serves as a guide and documentation for configuring Yahoo! YSlow. It includes an example configuration which would enable automatic execution and submission to the http://www.ShowSlow.com/ server. Be sure to enter your own ShowSlow server URL as appropriate.
[edit] Requirements
- YSlow currently exists as a extension/addon in Mozilla Firefox.
[edit] Plug-in Installation
- Download and install Firebug.
- For additional information and detailed documentation please see the Firebug Wiki.
- Download and install YSlow.
- For additional information and detailed documentation please review the YSlow User Guide.
[edit] About:config Configuration
- Modify the Mozilla Firefox about:config with appropriate URL attribute value as provided on the /beacon/yslow/ page (or the YSlow beacon or /configure.php of the desired private installation). The following provides a detailed advisory and instructions to do so.
[edit] PRIVACY WARNING
!WARNING! DO NOT ENABLE THESE VARIABLES IF YOU WISH TO MAINTAIN YOUR PERSONAL PRIVACY !WARNING!
The following configuration options configure the browser transmit information via HTTP GET or POST to the specified server EVERY TIME YSlow IS RUN. This HTTP request includes the time, date, the EXACT AND COMPLETE URL (including HTTP query strings), the IP address of the browser, the hostname and other potentially identifying and personal information such as browser, version, operating system, etc. (to learn more, please read and review this Mozilla article and the Apache Custom LogFormat documentation).
You can create and configure a private ShowSlow server to limit this risk and exposure.
[edit] Example About:config (Manual)
The following is an example configuration which would enable submission to the public ShowSlow server at http://www.ShowSlow.com/.
- extensions.yslow.beaconUrl = http://www.ShowSlow.com/beacon/yslow/ type string
- extensions.yslow.beaconInfo = grade type string
- extensions.yslow.optinBeacon = true type boolean
[edit] Enabling Automatic Data Collection
Instructions for enabling automatic data collection and submission (a "monitor zombie"). Some users may wish to configure private hosts to automatically collect and submit YSlow data to the configured ShowSlow server as specified in extensions.yslow.beaconUrl in the Mozilla Firefox About:config. The following includes a detailed advisory and instructions to do so.
[edit] CRITICAL PRIVACY WARNING
!WARNING! THESE OPTIONS EFFECTIVELY PUBLISH THE ENTIRE BROWSER HISTORY !WARNING!
ENABLING THE FOLLOWING OPTIONS WILL CAUSE THE CONFIGURED BROWER TO AUTOMATICALLY EXECUTE A YSlow TEST AND SUBMIT THE RESULTS TO THE CONFIGURED HOST FOR EVERY PAGE VIEWED (SEE ABOVE).
[edit] Example About:config (Automatic)
The following is an example configuration which would enable automatic execution and submission to the dev.example.com YSlow server.
- extensions.yslow.beaconUrl = http://dev.example.com type string
- extensions.yslow.beaconInfo = grade type string
- extensions.yslow.optinBeacon = true type boolean
- extensions.yslow.autorun = true type boolean

