Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

性能优化思路 #6

Open
zhuzhuaicoding opened this issue Apr 19, 2017 · 1 comment
Open

性能优化思路 #6

zhuzhuaicoding opened this issue Apr 19, 2017 · 1 comment

Comments

@zhuzhuaicoding
Copy link
Owner

zhuzhuaicoding commented Apr 19, 2017

HTTP协议栈 - 网络层

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

chrome本身做的努力

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

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

  • 代码角度,避免bailout
  • 热代码替换
  • 对象访问(Fast,Slow)
@zhuzhuaicoding
Copy link
Owner Author

zhuzhuaicoding commented Apr 19, 2017

糟糕的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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant