前端網頁最佳化

來源:互聯網
上載者:User

標籤:figure   sts   blog   style   form   script   ons   html   etag   

https://developer.yahoo.com/performance/rules.html

第一條、儘可能的減少 HTTP 的請求數 (Make Fewer HTTP Requests )

第二條、使用CDN(內容分髮網絡): Use a Content Delivery Network

第三條、 添加Expire/Cache-Control 頭:Add an Expires Header

第四條、啟用Gzip壓縮:Gzip Components

第五條、將css放在頁面最上面 ( Put Stylesheets at the Top) 第六條、將script放在頁面最下面 (Put Scripts at the Bottom )

第七條、避免在CSS中使用Expressions (Avoid CSS Expressions )

第八條、把javascript和css都放到外部檔案中 (Make JavaScript and CSS External )

第九條、減少DNS查詢 (Reduce DNS Lookups)

第十條、壓縮 JavaScript 和 CSS (Minify JavaScript and CSS)

第十一條、避免重新導向 (Avoid Redirects )

第十二條、移除重複的指令碼 (Remove Duplicate Scripts )

第十三條、配置實體標籤(ETags) (Configure ETags )

第十四條、使 AJAX 緩衝 (Make Ajax Cacheable )

前端網頁最佳化

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.