题目是「打包后」的话,优化方式有:dns 优化使用 cdngzip / deflate 传输时压缩html 预加载头:rel = prefetch各种缓存策略 当然最有效的应该是配置 webpack commonchunkplugin 和编写代码时按需加载
题目是「打包后」的话,优化方式有:
dns 优化
使用 cdn
gzip / deflate 传输时压缩
html 预加载头:rel = prefetch
各种缓存策略
当然最有效的应该是配置 webpack commonchunkplugin 和编写代码时按需加载