网站访问速度优化

As a broad and general rule, assume that every visitor to your site has ADD. Every page must have a load time under eight seconds. That time should really be less than five seconds, and ideally under two.
作为一般规则,请假设您网站的每个访问者都有ADD。 每个页面的加载时间必须少于8秒 。 该时间实际上应该少于五秒钟, 理想情况下应少于两秒钟。
Optimizing a site for speed is a nine-step process, the first eight of which are applicable to almost every web page:
优化网站的速度是一个九步过程,其中前八个过程几乎适用于每个网页:
Set a performance baseline by testing the load time of existing pages, whether those pages are offline or hosted.
- Redesign and recode your pages for speed. 重新设计页面并重新编码以提高速度。
Minimize the file size of images through compression techniques.
- Reduce the number of HTTP requests. 减少HTTP请求的数量。
- Ensure that all appropriate files are gzipped. 确保已压缩所有适当的文件。
- Use intelligent compression and caching. 使用智能压缩和缓存。
- Defer and make asynchronous any JavaScript. 延迟并使任何JavaScript异步。
- Optimize MySQL queries. 优化MySQL查询。
Each of these steps will be explained in a separate upcoming article in this series.
这些步骤中的每个步骤都将在本系列的后续单独文章中进行解释。
翻译自: https://thenewcode.com/472/Introduction-to-Site-Speed-Optimization
网站访问速度优化