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点
最新推荐文章于 2024-05-22 10:05:27 发布