1、make fewer http request
image maps
css sprites
inline images
2、use a content delivery network cdn
3、add an expires header
4、gzip components gzip
ur scripts and stylesheets
5、put stylesheets at the top
in the document head using link tag
6、put scripts at the bottom
7、avoid css expressions
8、make javascript and css external
9、reduce dns lookups by using keep-alive and fewer domains
10、minify javascript
11、avoid redirects
12、remove duplicate scripts make sure scripts are include only once
13、configure etags
14、make ajax cacheable
make sure ajax request follow the performance guidelines,especially having a far future expires header。
高性能web站点开发14点
本文提供了一系列提高网页加载速度的方法,包括减少HTTP请求、使用CDN、添加Expires头、压缩组件等,通过这些策略可以有效提升用户体验。

被折叠的 条评论
为什么被折叠?



