Cognitive Computing Authors: Zakia Bouachraoui, Pat Romanski, Yeshim Deniz, Elizabeth White, Liz McMillan

Blog Feed Post

Website Performance Best Practices by Yahoo!

YSlow is a free developer tool built by the smart engineers at Yahoo. YSlow analyses web pages across an array of metrics and gives a final grade. If you are conscious about the performance of a website, YSlow is your answer. Let’s talk a bit more about YSlow.


What is YSlow?

YSlow is a browser add-on that web developers and web masters can use to improve the performance of their website substantially. Although it doesn’t really do the changes that are required for you to improve your website performance, it does point out the grey areas, which itself is equally important to know.


What does YSlow do for you?

  • Grades web page based on one of three predefined rules
  • It offers suggestions for improving the page’s performance;
  • Summarizes the page’s components;
  • Displays statistics about the page;


The YSlow grade is from A all the way to F; with A being the best score achievable. Yahoo describes the rules of high performing web pages in their document here. Here is a screenshot outlining each of the 23 testable rules.

  • Minimize HTTP Requests
  • Use a Content Delivery Network
  • Avoid empty src or href
  • Add an Expires or a Cache-Control Header
  • Gzip Components
  • Put StyleSheets at the Top
  • Put Scripts at the Bottom
  • Avoid CSS Expressions
  • Make JavaScript and CSS External
  • Reduce DNS Lookups
  • Minify JavaScript and CSS
  • Avoid Redirects
  • Remove Duplicate Scripts
  • Configure ETags
  • Make AJAX Cacheable
  • Use GET for AJAX Requests
  • Reduce the Number of DOM Elements
  • No 404s
  • Reduce Cookie Size
  • Use Cookie-Free Domains for Components
  • Avoid Filters
  • Do Not Scale Images in HTML
  • Make favicon.ico Small and Cacheable


Discussing each and every rule is beyond the scope of this article; however, you would agree that most web developers and web masters are familiar with these 23 rules. The YSlow software uses an array of computational algorithms to calculate the final score taking into consideration each of these 23 rules, with each rule having a certain weighted point. You can take a look at the computational matrix here.


How do get YSlow?

Depending on which browser you are using, you can get YSlow from visiting its official page by clicking here. Since most people use Chrome, here is a quick tutorial on how to get it up and running on Chrome.

  1. Visit http://developer.yahoo.com/yslow/
  2. Click the yellow Install YSlow button.
  3. It will take you to a Chrome extensions page.
  4. Once there, click the blue Add to Chrome button.
  5. After it has installed, you can see it in the right corner of your Google Chrome window.
  6. Now browse to the website/webpage you want YSlow to run on.
  7. Once there, click on the YSlow meter icon and then click the yellow Run test button.
  8. Now be patient while the YSlow does its magic.

Note: Run YSlow when the page has completely loaded to avoid discrepancies.

Here is an YSlow I ran for Google.com. As expected, Grade A.

As a comparison, I ran an YSlow for the YSlow website itself. Again, Grade A.

However, Google scored +2 points due to it being much lighter and slightly well optimized. Now let’s try it for Facebook, which is a data intensive application. As you can see, Facebook scored Grade C with a 77 performance score. This is very low by its developer standards. I ran it on quite a few internet connections and ran it multiple times to avoid uncertainty and the score still comes around 77.

Let’s see what YSlow has to tell us about Facebook’s average performance score. Out of 23 rules, there are mostly As but 6 Fs. This is probably what has led to such an average score. Facebook got Fs on Fewer HTTP Requests, Use CDN, Add Expire Headers and Reduce DNS Lookups, Reduce Number of DOM lookups and Do Not scale images in HTML. Even though all of these are important, the most vital ones are using a CDN, scaling images in CSS rather than HTML and having fewer HTTP requests by minifying JS and CSS.


Why Should You Use YSlow?

If you feel you have worked really hard on a product, it is imperative that you would want many people to use it. This often means lots of concurrent connections and load on your server(s). YSlow helps you find out the grey areas so you can solve them, making your page faster, consuming lesser resources and putting a smile on your users’ faces by loading up your site lightning fast.

What are the things you should be looking to improve?

Here are the 11 things you should be looking to improve in your site:

  1. Minimize HTTP requests
  2. Use a Content Delivery Network
  3. Put CSS at top
  4. Put Scripts at bottom
  5. Avoid CSS expressions
  6. Don’t scale images in HTML
  7. Minify JS and CSS
  8. Make JS and CSS external
  9. Avoid Redirects
  10. No 404s
  11. Make items cacheable or small.


Share Now:del.icio.usDiggFacebookLinkedInBlinkListDZoneGoogle BookmarksRedditStumbleUponTwitterRSS

Read the original blog entry...

More Stories By Hovhannes Avoyan

Hovhannes Avoyan is the CEO of PicsArt, Inc.,

IoT & Smart Cities Stories
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
The challenges of aggregating data from consumer-oriented devices, such as wearable technologies and smart thermostats, are fairly well-understood. However, there are a new set of challenges for IoT devices that generate megabytes or gigabytes of data per second. Certainly, the infrastructure will have to change, as those volumes of data will likely overwhelm the available bandwidth for aggregating the data into a central repository. Ochandarena discusses a whole new way to think about your next...
CloudEXPO | DevOpsSUMMIT | DXWorldEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
All in Mobile is a place where we continually maximize their impact by fostering understanding, empathy, insights, creativity and joy. They believe that a truly useful and desirable mobile app doesn't need the brightest idea or the most advanced technology. A great product begins with understanding people. It's easy to think that customers will love your app, but can you justify it? They make sure your final app is something that users truly want and need. The only way to do this is by ...
Digital Transformation and Disruption, Amazon Style - What You Can Learn. Chris Kocher is a co-founder of Grey Heron, a management and strategic marketing consulting firm. He has 25+ years in both strategic and hands-on operating experience helping executives and investors build revenues and shareholder value. He has consulted with over 130 companies on innovating with new business models, product strategies and monetization. Chris has held management positions at HP and Symantec in addition to ...
DXWorldEXPO LLC announced today that Big Data Federation to Exhibit at the 22nd International CloudEXPO, colocated with DevOpsSUMMIT and DXWorldEXPO, November 12-13, 2018 in New York City. Big Data Federation, Inc. develops and applies artificial intelligence to predict financial and economic events that matter. The company uncovers patterns and precise drivers of performance and outcomes with the aid of machine-learning algorithms, big data, and fundamental analysis. Their products are deployed...
Cell networks have the advantage of long-range communications, reaching an estimated 90% of the world. But cell networks such as 2G, 3G and LTE consume lots of power and were designed for connecting people. They are not optimized for low- or battery-powered devices or for IoT applications with infrequently transmitted data. Cell IoT modules that support narrow-band IoT and 4G cell networks will enable cell connectivity, device management, and app enablement for low-power wide-area network IoT. B...
The hierarchical architecture that distributes "compute" within the network specially at the edge can enable new services by harnessing emerging technologies. But Edge-Compute comes at increased cost that needs to be managed and potentially augmented by creative architecture solutions as there will always a catching-up with the capacity demands. Processing power in smartphones has enhanced YoY and there is increasingly spare compute capacity that can be potentially pooled. Uber has successfully ...
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...