网站访问速度优化_网站速度优化简介

网站访问速度优化

StopwatchThe speed at which a web page loads is a delivery of service. A slow website not only frustrates users (an increasing number of whom will abandon your site as the seconds tick by) but also lowers your ranking in search results (Google includes page load speed as part of its algorithm) and potentially increases your costs.

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:

优化网站的速度是一个九步过程,其中前八个过程几乎适用于每个网页:

  1. Set a performance baseline by testing the load time of existing pages, whether those pages are offline or hosted.

    通过测试现有页面的加载时间来设置性能基准,无论这些页面是脱机页面还是托管 页面

  2. Redesign and recode your pages for speed.

    重新设计页面并重新编码以提高速度。
  3. Minimize the file size of images through compression techniques.

    通过压缩技术最小化图像的文件大小

  4. Minify your HTML, CSS and JavaScript.

    缩小HTMLCSS和JavaScript。

  5. Reduce the number of HTTP requests.

    减少HTTP请求的数量。
  6. Ensure that all appropriate files are gzipped.

    确保已压缩所有适当的文件。
  7. Use intelligent compression and caching.

    使用智能压缩和缓存。
  8. Defer and make asynchronous any JavaScript.

    延迟并使任何JavaScript异步。
  9. Optimize MySQL queries.

    优化MySQL查询。

Each of these steps will be explained in a separate upcoming article in .

这些步骤中的每个步骤都将在后续单独文章中进行解释。

翻译自: https://thenewcode.com/472/Introduction-to-Site-Speed-Optimization

网站访问速度优化

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值