这几天看了这本《High Performance Web Sites》的书,把其中提到的一些提高网站访问速度的原则摘要如下;强烈推荐前端工程师看一下这本书,书不厚半天就能看完。
Rule 1: Make Fewer HTTP Requests.
Rule 2: Use a Content Delivery Network.
Rule 3: Add am Expires Header
Rule 4: Gzip Components
Rule 5: Put Stylesheets at the Top
Rule 6: Put Scripts at the Bottom.
Rule 7: Avoid CSS Expression
Rule 8: Make JavaScript and CSS External
Rule 9: Reduce DNS lookups
Rule 10: Minify JavaScript
Rule 11 Avoid Redirects
Rule 12: Remove Duplicate
Rule 13: Configure ETags
Rule 14: Make Ajax Cacheable
阅读(2933) | 评论(0) | 转发(0) |