如何组织 css 和 js 文件的缩小和打包以加快网站速度? [英] How to organize minification and packaging of css and js files to speed up website?
本文介绍了如何组织 css 和 js 文件的缩小和打包以加快网站速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的网站应用程序进行速度优化.我找到了一些做法来做到这一点.例如,来自 Yahoo 的加速网站的最佳实践.其中有:
I am doing speed optimization for my website application. And I found some practises to do that. For example Best Practices for Speeding Up Your Web Site from Yahoo. Among them are:
- 缩小 JavaScript 和 CSS.
- 通过将多个文件(css、js)合并为一个文件来最小化 HTTP 请求的数量.
我的问题是您使用或可以推荐哪些基础设施、工具和构建过程来执行这些?
My question is what infrastructure, tools and building process you use or can recommend to perform that?
推荐答案
根据JavaScript Compression Rater,最有效的工具是 YUI Compressor 或 JSMin.
According to the JavaScript Compression Rater, the most efficient tool is the YUI Compressor or JSMin.
这篇关于如何组织 css 和 js 文件的缩小和打包以加快网站速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文