What is the best method to reduce the size of my Javascript and CSS files?

后端 未结 18 1037
礼貌的吻别
礼貌的吻别 2020-11-30 04:16

When working with large and/or many Javascript and CSS files, what\'s the best way to reduce the file sizes?

18条回答
  •  生来不讨喜
    2020-11-30 04:38

    I found JSCompress a nice way to not only minify a JavaScript, but to combine multiple scripts. Useful if you're only using the various scripts once. Saved 70% before compression (and something similar after compression too).

    Remember to add back in any copyright notices afterwards.

提交回复
热议问题