雅虎团队经验:网站性能优化的35个法则

日期:2016年11月23日      标签:yahoo 网站性能优化 前端

  • Make Fewer HTTP Requests
  • Use a Content Delivery Network (CDN)
  • Add Expires or Cache-Control Header
  • Gzip Components
  • Put Stylesheets at Top
  • Put Scripts at Bottom
  • Avoid CSS Expressions
  • Make JavaScript and CSS External
  • Reduce DNS Lookups
  • Minify JavaScript and CSS
  • Avoid Redirects
  • Remove Duplicate Scripts
  • Configure ETags
  • Make Ajax Cacheable
  • Flush Buffer Early
  • Use GET for Ajax Requests
  • Postload Components
  • Preload Components
  • Reduce the Number of DOM Elements
  • Split Components Across Domains
  • Minimize Number of iframes
  • Avoid 404s
  • Reduce Cookie Size
  • Use Cookie-Free Domains for Components
  • Minimize DOM Access
  • Develop Smart Event Handlers
  • Choose Over @import
  • Avoid Filters
  • Optimize Images
  • Optimize CSS Sprites
  • Do Not Scale Images in HTML
  • Make favicon.ico Small and Cacheable
  • Keep Components Under 25 KB
  • Pack Components Into a Multipart Document
  • Avoid Empty Image src

(正文完)



© 喻小右 2016 京ICP备15064386号-1