1)升级版本到unity2018以上
使用gzipg格式
2)在console里面看到:
You can reduce your startup time if you configure your web server to host .unityweb files using gzip compression.
解决方法:创建文件名为.htaccess的文件,添加内容:为AddEncoding gzip .unityweb
该文件放入此Build文件夹里面:
然后重启服务后:该提示消失,加载时间减少3s左右(看各自项目)
3)勾上了Strip Engine Code,代码裁剪,减少build出的代码量。
参考文档: