Configuring YSlow to see MaxCDN. YSlow – An Answer to “Why is My Website Slow?”

YSlow for Firebug is a Firefox plug in launched by Yahoo! to find and point out the areas where a website can be further optimized. The YSlow is an open source solution which was first created internally by Yahoo! for benchmarking the performance of its own websites and later released for public usage. Working of YSlow YSlow actually works like a grader and gauges the performance of the webpages, and also provides a set of solutions which can pin point and improve the website performance. It comes with an inbuilt set of rules and also provides tools like Smush.it and JSLint. Checking performance of your CDN The second rule itself in the grading suggests making use of CDN for improved performance. YSlow has a slight drawback that it does not understand the performance of the CDN services unless the user explicitly configures the YSlow client for this. While, it comes with a wide range of popular CDN solutions, the list only covers the solutions that Yahoo! uses and hence list is not exhaustive. Nevertheless, YSlow allows configuring of the other CDN providers by going to the “About:Config” in Firefox and entering the string preference by selecting a New String Preference, where the CDN name can be entered as the string value. Multiple CDN providers can be entered by specifying them using comma as separator. Final Verdict: All in all, though it needs to be configured a bit, specifically when it comes to tracking CDN performance; with the brand name of Yahoo! and an open-source solution, which works seamlessly with the popular Firefox browser, YSlow is definitely one of the grading tools that should be used for checking the performance of the website and optimizing it further. From the YSlow FAQ: How do I add my CDN hostname to YSlow for Rule 2? Rule 2 says to use a content delivery network (CDN). The score for this rule is computed by checking the hostname of each component against the list of known CDNs. Unfortunately, the list of “known CDNs” are the ones used by Yahoo!. Most likely these are not relevant to your web site, except for potentially yui.yahooapis.com. If you want an accurate score for your web site, you can add your CDN hostnames to YSlow using Firefox’s preferences. Here are the steps to follow: 1. Go to about:config in Firefox. You’ll see the current list of preferences. 2. Right-click in the window and choose New and String to create a new string preference. 3. Enter extensions.yslow.cdnHostnames for the preference name. 4. For the string value, enter the hostname of your CDN, for example, mycdn.com. 5. Restart Firefox. Do not use quotes. If you have multiple CDN hostnames, separate them with commas. If you specify CDN hostnames in your preferences, they’ll be shown under the details for Rule 2 in the Performance view.

12 Responses to “Configuring YSlow to see MaxCDN. YSlow – An Answer to “Why is My Website Slow?””

  1. Patrick says:

    Can somebody tell me where I find this: “Go to about:config in Firefox.” I do not have an “about”

  2. [...] the known CDNs names, so it will not recognize your custom subdomain. You will need to follow the tutorial on MaxCDN blog that shows how you can add your CDN to the list for your browser. This will be for the sake of [...]

  3. Vamsi says:

    I was first confused to see why Yslow is still suggesting me to use CDN, I configured it later to set maxcdn in the cdn hosts..
    it will be good if you can work out with Yahoo ! and put maxcdn in YSlow..

  4. [...] the known CDNs names, so it will not recognize your custom subdomain. You will need to follow the tutorial on MaxCDN blog that shows how you can add your CDN to the list for your browser. This will be for the sake of [...]

  5. Glad I found this information on bing when I was perusing the web. Good STUFF!

  6. Ahmed Samir says:

    You need to go to the FireFox address bar and type “about:config” then hit Enter

  7. Good article. I still have not figured out how to get yslow to see my cdn. using cdn.example.com

  8. Erik Pöhler says:

    A minor note on editing the cdnHostnames in your about:config: You’ll need to restart Firefox in order to have Firebug/YSlow recognize the new cdns.

  9. cueland says:

    Did you restart your browser after adding the cdn?

  10. I did that but nothing happened. Now, my Yslow has stopped working. Moreover, how many CDN’s (bucket) should i use to speed up my site?

  11. dhenzel says:

    One zone (bucket) should do the job. Please reach out to our support team (support@maxcdn.com) in case you are still having problems.

Leave a Reply