Welcome!

Cognitive Computing Authors: Yeshim Deniz, Zakia Bouachraoui, Pat Romanski, 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
Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...