最大优化你的站点整体速度(外文资料分享)

2010-01-29  菜菜 

Best Practices for Speeding Up Your Web Site


Top

Minimize HTTP Requests减少HTTP请求数

Reduce DNS Lookups减少DNS解析

Avoid Redirects避免重定向

Other

Use a Content Delivery Network

Add an Expires or a Cache-Control Header

Gzip Components

Put Stylesheets at the Top

Put Scripts at the Bottom

Avoid CSS Expressions

Make JavaScript and CSS External

Minify JavaScript and CSS

Remove Duplicate Scripts

Configure ETags

Make Ajax Cacheable

Flush the Buffer Early

Use GET for AJAX Requests

Post-load Components

Preload Components

Reduce the Number of DOM Elements

Split Components Across Domains

Minimize the Number of iframes

No 404s

Reduce Cookie Size

Use Cookie-free Domains for Components

Minimize DOM Access

Develop Smart Event Handlers

Choose <link> over @import

Avoid Filters

Optimize Images

Optimize CSS Sprites

Don't Scale Images in HTML

Make favicon.ico Small and Cacheable

Keep Components under 25K

Pack Components into a Multipart Document


<详细可见:http://developer.yahoo.com/performance/rules.html#num_http>

475°/4743 人阅读/1 条评论 发表评论

欧桐凤  2010-01-29

很强,可以用YSlow实践一把。


登录 后发表评论