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

性能优化 #54

Open
into-piece opened this issue May 19, 2021 · 1 comment
Open

性能优化 #54

into-piece opened this issue May 19, 2021 · 1 comment

Comments

@into-piece
Copy link
Owner

  1. cdn 说一下cdn的原理 缓存 回流 负载均衡 就近
  2. gzip压缩 根据Accept-Encoding请求头标识客户端是否支持压缩,http响应头 content-encoding:gzip标识已开启压缩
  3. will-change transform开启cpu加速,提升复合层,其独立层更改不会导致重绘
@into-piece
Copy link
Owner Author

crp 关键渲染路径

关键资源数量

  1. 打包分包
  2. 缓存
  3. script的defer和async
  4. 预加载prefetch和preload

关键字节大小

  1. 代码压缩
  2. gzip压缩

关键路径长度

  1. cdn

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