1.资源压缩合并,减小HTTP请求。浏览器
2.非核心代码异步加载-异步加载的方式?-异步加载的区别?缓存
异步加载的方式?
bash
3.利用浏览器缓存-缓存的分类?-缓存的原理?服务器
缓存的分类?
网络
4.使用CDN。让网络快速在服务端把文件下载下来。异步
5.预解析DNSasync
<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="dns-prefetch" href="//host_name_to_prefetch.com">复制代码