Compress JavaScript with gzip
问题 I ran Google PageSpeed Insights to optimize my site and it recommended archiving the numerous JavaScript files with gzip. How does this work? How are the files imported/included as an archive? Can they all be inside one big archive, or should they be individual archives? 回答1: You can configure your web server to do the compression for you; in the case of Apache: AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript 回答2: I think they were