網站最佳化–加快頁面載入速度(一)

來源:互聯網
上載者:User

《Best Practices for Speeding Up Your Web Site》定義的34條規則:

1.    Make Fewer HTTP Requests
2.    Use a Content Delivery Network
3.    Add an Expires or a Cache-Control Header
4.    Gzip Components
5.    Put Stylesheets at the Top
6.    Put Scripts at the Bottom
7.    Avoid CSS Expressions
8.    Make JavaScript and CSS External
9.    Reduce DNS Lookups
10.   Minify JavaScript and CSS
11.   Avoid Redirects
12.   Remove Duplicate Scripts
13.   Configure ETags
14.   Make Ajax Cacheable
15.   Flush the Buffer Early
16.   Use GET for AJAX Requests
17.   Post-load Components
18.   Preload Components
19.   Reduce the Number of DOM Elements
20.   Split Components Across Domains
21.   Minimize the Number of iframes
22.   No 404s
23.   Reduce Cookie Size
24.   Use Cookie-free Domains for Components
25.   Minimize DOM Access
26.   Develop Smart Event Handlers
27.   Choose <link> over @import
28.   Avoid Filters
29.   Optimize Images
30.   Optimize CSS Sprites
31.   Don't Scale Images in HTML
32.   Make favicon.ico Small and Cacheable
33.   Keep Components under 25K
34.   Pack Components into a Multipart Document

中文對照:

01.減少的http請求
02.使用CDN (內容分髮網絡)
03.指定到期時間
04.壓縮結構(GZIP)
05.樣式表檔案放在頂部
06.指令碼放在底部
07.不在css中使用運算式
08.將javascript和css檔案分離到單獨的檔案
09.減少dns查詢
10.精簡javascript代碼
11.避免重新導向
12.去掉多餘的指令碼
13.配置實體標籤
14.可快取的ajax

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.