簡述幾條Web開發規則
Web開發規則
◆Make Fewer HTTP Requests
更少的http請求
◆Use a Content Delivery Network
使用CDN (內容分發網絡)
◆Add an Expires Header
指定過期時間
◆Gzip Components
壓縮內容
◆Put Stylesheets at the Top
樣式表文件在頂部
◆Put Scripts at the Bottom
腳本在底部
◆Avoid CSS Expressions
不在css中使用表達式
◆Make JavaScript and CSS External
將javascript和css文件分離到單獨的文件
◆Reduce DNS Lookups
減少dns查詢
◆Minify JavaScript
精簡javascript
◆Avoid Redirects
避免重定向
◆Remove Duplicate Scripts
去掉多余的腳本
◆Configure ETags
配置實體標簽
◆Make Ajax Cacheable
可緩存的ajax
補充幾條Web開發規則,
REST勝于SOAP
設計為性能讓路.
約定勝于配置
【編輯推薦】