网站的性能评估或技术指标

2019-03-23  本文已影响0人  MarkShen

1.Make fewer HTTP requests 减少 HTTP 请求
2.Compress components with gzip 使用 gZip 压缩
3.Put CSS at top 把CSS问价写在顶部
4.Put JavaScript at bottom 把js写在页面底部
5.Avoid CSS expressions 避免使用css来做脚本效果
6.Reduce DNS lookups 尽量减少DNS查询
7.Minify JavaScript and CSS 压缩CSS和js,减小文件大小
8.Avoid URL redirects 避免URL的暴力跳转
9.Remove duplicate JavaScript and CSS 把重复的代码移除10.Reduce the number of DOM elements 减少DOM元素的数量11.Avoid HTTP 404 (Not Found) error 避免404错误
12.Avoid AlphaImageLoader filter 避免使用AlphaImageLoader滤镜13.Do not scale images in HTML 请不要在页面中缩放图片
14.Make favicon small and cacheable 对favicon,越小越好

对于你说的页面加载时间小于多少秒、搜索响应时间小于多少秒,要看那些场景,通常人们不能容忍多于3秒的加载时间(这个也是网站性能最直观的表现之一)。

It gives insight on website performance and action items for optimization, using leading APIs such as Page speed and Yslow.
This extension gives insight on web page performance and action items for optimisation. It uses market leading APIs such as Page speed and YSlow.

Some performance rules that extension uses:

  1. Minimize HTTP Requests
  2. Use a Content Delivery Network
  3. Avoid empty src or href
  4. Add an Expires or a Cache-Control Header
  5. Gzip Components
  6. Put StyleSheets at the Top
  7. Put Scripts at the Bottom
  8. Avoid CSS Expressions
  9. Make JavaScript and CSS External
  10. Reduce DNS Lookups
  11. Minify JavaScript and CSS
  12. Avoid Redirects
  13. Remove Duplicate Scripts
  14. Configure ETags
  15. Make AJAX Cacheable
  16. Use GET for AJAX Requests
  17. Reduce the Number of DOM Elements
  18. No 404s
  19. Reduce Cookie Size
  20. Use Cookie-Free Domains for Components
  21. Avoid Filters
  22. Do Not Scale Images in HTML
  23. Make favicon.ico Small and Cacheable
上一篇下一篇

猜你喜欢

热点阅读