Make fewer HTTP requests(尽量减少http的请求次数)
Use a CDN(镜像,并行下载)
Add an Expires header(使用browser cache)
Gzip components(压缩下载内容)
Put CSS at the top(避免重复页面渲染)
Move JS to the bottom(优先加载page)
Avoid CSS expressions(避免CSS运算)
Make JS and CSS external(尽量公用JS和CSS)
Reduce DNS lookups(域名层级不宜太深)
Minify JS(压缩JS容量)
Avoid redirects(避免经由browser的跳转)
Remove duplicate scripts(避免重复代码)
Turn off ETags(关闭Entity Tags)
Make AJAX cacheable and small(用AJAX时也需要注意cache)
文章出处:http://www.diybl.com/course/1_web/webjs/200824/99498.html
Use a CDN(镜像,并行下载)
Add an Expires header(使用browser cache)
Gzip components(压缩下载内容)
Put CSS at the top(避免重复页面渲染)
Move JS to the bottom(优先加载page)
Avoid CSS expressions(避免CSS运算)
Make JS and CSS external(尽量公用JS和CSS)
Reduce DNS lookups(域名层级不宜太深)
Minify JS(压缩JS容量)
Avoid redirects(避免经由browser的跳转)
Remove duplicate scripts(避免重复代码)
Turn off ETags(关闭Entity Tags)
Make AJAX cacheable and small(用AJAX时也需要注意cache)
文章出处:http://www.diybl.com/course/1_web/webjs/200824/99498.html