59

前端性能优化—js代码打包

 5 years ago
source link: https://juejin.im/post/5b9550806fb9a05cff31f7b3
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
现在的 web 应用,内容一般都很丰富,站点需要加载的资源也特别多,尤其要加载很多 js 文件。js 文件从服务端获取,体积大小决定了传输的快慢;浏览器端拿到 js 文件之后,还需要经过解压缩、解析、编译、执行操作,所以,控制 js 代码的体积以及按需加载对前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK