Web page performance optimization (YSlow)

Source: Internet
Author: User
Tags website performance

YSlow (resolved to why Slow) is a Yahoo! Website Optimization rule-based tool that helps you analyze and optimize website performance. The old version of YSlow has 13 rules, the new YSlow has 23 rules, YSlow will analyze your site according to these rules, and give a rating.

YSlow scoring rules: from A to F, a-level, the Web page versatility can be a comprehensive score of more than the C-level test pass.

Optimized for Web page performance optimizations based on YSlow inspection rules:

  1. Place the style sheet at the top and place the script at the bottom;
  2. use browser caching;
  3. REDIRECT the target Web page to cache;
  4. Embedded small CSS;
  5. Embedded small JavaScript;
  6. Compress CSS, HTML, JS;
  7. Enable keep-alive, effectively reduce the number of TCP handshake, reduce the number of httpd processes, reduce the use of memory;
  8. Enable gzip or deflate compression to reduce the number of bytes sent over the network;
  9. Combining pictures into CSS map positioning reduces round-trip time and latency when downloading other resources, saves request overhead, and reduces the total number of bytes downloaded from a Web page;
  10. Delete the query string from the static resource;
  11. Minimizing the amount of data requested;
  12. Minimize redirects to reduce the additional round-trip time (RTT) and user wait time;
  13. Avoid the wrong request;
  14. Preferred asynchronous resources, local page refresh;
  15. avoid using @import in CSS, which will increase the delay when the page loads;

Web page performance optimization (YSlow)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.