Custom Modular Build

Custom Modular Build

jQuery is really simple and the best javascript library...
For the below build process,

  1. While building the javascript in my website, I do have many other javascript files to be downloaded by the website. Due to the network round-trip, most of the files even if they are 5KB or 20 KB, it takes the same amount of time. So I will like to club my javascript files inside the jquery.min...js in the build process. So finally I will have only one javascript file for my whole website to be download which is obfuscated in the final build process of the jquery.
  2. Most of the time I dont use all the events, features provided in jquery. So a reference look-up of the functions that i use in my website are made and only those required functions are included in the final jquery file. If i use 30% of the functionality then I hope a drastic size (although is already small) reduce is made in the final js file.

Your advice on the next steps or any references out there is much appreciated.