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:
- Place the style sheet at the top and place the script at the bottom;
- use browser caching;
- REDIRECT the target Web page to cache;
- Embedded small CSS;
- Embedded small JavaScript;
- Compress CSS, HTML, JS;
- Enable keep-alive, effectively reduce the number of TCP handshake, reduce the number of httpd processes, reduce the use of memory;
- Enable gzip or deflate compression to reduce the number of bytes sent over the network;
- 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;
- Delete the query string from the static resource;
- Minimizing the amount of data requested;
- Minimize redirects to reduce the additional round-trip time (RTT) and user wait time;
- Avoid the wrong request;
- Preferred asynchronous resources, local page refresh;
- avoid using @import in CSS, which will increase the delay when the page loads;
Web page performance optimization (YSlow)