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

前端 未结 11 1200
独厮守ぢ
独厮守ぢ 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:41

    I've found Minify most useful for my PHP projects. Very easy to use, just saves time configuring minimization, compression and caching of CSS and JS files manually. Also has a neat grouping feature.

    Some notes about YUI Compressor

    1. YUI Compressor generates without line breaks at all while Minify has some.
    2. Be careful if you have escaped strings. I've found out that YUI Compressor unescapes them. So strings like "\'" become "'".

提交回复
热议问题