简要总结:
1.资源压缩合并,减少http请求
2.非核心代码异步加载(异步加载方式,异步加载区别)
3.利用浏览器缓存(缓存的分类,缓存的原理)
4.使用CDN
5.与解析DNS
<mata http-equiv="x-dns-prefetch-control" content="on"> // https 协议下开启a链接的prefetch(http协议下会默认开启)
<link rel="dns-prefetch" href="//host_name_to_prefetch.com">
//=========================================================================
content
方面
HTTP
请求:合并文件、CSS
精灵、inline Image
DNS
查询:DNS
缓存、将资源分布到恰当数量的主机名DOM
元素数量Server
方面
CDN
ETag
Gzip
压缩Cookie
方面
cookie
大小css
方面
CSS
表达式<link>
不使用@import
Javascript
方面
javascript
和css
从外部引入javascript
和css
DOM
访问图片方面
css
精灵HTML
中拉伸图片原文:https://www.cnblogs.com/vicky24k/p/11780734.html