我在我的web应用程序中使用jquery,我需要在单个页面中加载更多jquery脚本文件.
Google suggested I combine all the jquery script files into a single file.
How can I do this?
我在我的web应用程序中使用jquery,我需要在单个页面中加载更多jquery脚本文件.
Google suggested I combine all the jquery script files into a single file.
How can I do this?
在linux上,您可以使用simple shell script https://github.com/dfsq/compressJS.sh将多个javascript文件合并到一个文件中.它利用闭包编译器在线服务,因此生成的脚本也被有效压缩.
$ ./compressJS.sh some-script.js another-sctipt.js onemore.js