There are numerous ways to combine multiple JQuery files to one to decrease both the page loading time and the number of requests. Actually automated method might not always work. So for WordPress like CMS/Blogging Software, practically we can not use the same method in all setup. So, some minimal knowledge is required for WordPress.
Primer For How to Combine Multiple JQuery Files to One For WordPress
As we have talked about Enqueue Scripts. There is corrosponding deregister script function. So first you need to deregister the script if they are inserted by plugin or theme. Now it became just like a static website. After combining multiple JQuery files to One, you will insert via Enqueue Script Function.
How to Combine Multiple JQuery Files to One
Take that you have these files :
We can use YUI Compressor :
There are ready to use online tools for YUI compressor :
There is Google Closure Compiler :
There is CompressJS :
Advanced users can use Require.js :
If you are seeking 100% hand coded method, it is actually possible to concatenate. Two jQuery results can be combined :
These are some methods but you must test manually on all possible browsers. Combining can make a function not working.
Follow the Author of this article :