简体   繁体   中英

Reducing the amount of javascript files

quote from 'woorank.com':

Too bad, your website has too many JavaScript files (more than 7).

i've already compressed all of my own javascript files into one. But the rest is just jquery plugins(cookie, form, easings, etc.). Is there a way, eg via some sort of package selector, to return a jquery file with all selected plugins included? It would save some tedious editing and merging on my part!

thanks

You can have a look at Grunt http://gruntjs.com/ . It provides many plugin which can make your life a lot easier with these kind of taks.

Plugin for concatenation here : https://github.com/gruntjs/grunt-contrib-concat

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM