1、压缩JS和CSS文件
https://www.cnblogs.com/nianzhilian/p/10229344.html
同时需要配置服务器nginx.conf.开启gzip功能:
gzip on;
gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;