zhuzhuaicoding / earlyzhuzhu.github.io

Summary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

性能优化思路

zhuzhuaicoding opened this issue · comments

HTTP协议栈 - 网络层

  1. 减少RTT
  • 合并
  • 服务器优化
  • 缓存
  • 优化网络
  1. 减少内容大小
  • 压缩

chrome本身做的努力

  1. 网络协议栈
  • prefetch
  • preload
  1. 渲染引擎
  • 渲染性能,浏览器渲染原理,关键渲染路径(延迟或异步加载资源,从而减少关键资源数量;减少资源大小;针对关键资源,减少网络请求时间)

v8 减少js编译时间,提升运行速度

  • 代码角度,避免bailout
  • 热代码替换
  • 对象访问(Fast,Slow)

糟糕的loading性能

  1. 网站本身太重了吗
  2. 你的资源合并压缩了吗
  3. js本身花太久去解析,编译,执行了吗?
  4. 使用浏览器高效的缓存机制了吗
  5. 第三方脚本广告拖慢了你的网站吗

Sustainable Loading features we’ll be tracking by Addy Osmani
Sustainable Loading features we’ll be tracking by Addy Osmani