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
kjj6198 opened this issue Aug 29, 2017 · 0 comments
Open

如何優化前端效能 #6

kjj6198 opened this issue Aug 29, 2017 · 0 comments

Comments

@kjj6198
Copy link
Member

kjj6198 commented Aug 29, 2017

記錄如何優化前端效能,有哪些事情是可以考慮的。

  1. 減少請求數。(base64, sprite, svg icons, icon font)
  2. 使用 CDN(需要搭配後端)
  3. 用 Cache-Control or Expires header (需要搭配後端)
  4. Gzip
  5. CSS 優先載入
  6. Javascript 放在底部
  7. 減少 DNS 查詢
  8. 避免重新定向
  9. minify, uglify
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