How to organize minification and packaging of css and js files to speed up website?

前端 未结 11 1172
独厮守ぢ
独厮守ぢ 2020-12-28 19:41

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 t

11条回答
  •  天命终不由人
    2020-12-28 20:31

    You can use YUI Compressor.

    It can compress JavaScript as well as CSS. Just run it for all your files, then concatenate them into one 'package' file. You can either do that manually, write a Makefile or use some script to compress "just-in-time" on web request, although you might want to cache the resulting file.

提交回复
热议问题