My personal opinion is that if you want to keep up to date in the future, it would be much easier to keep jQuery UI files complete , otherwise in the future you will have to spend time updating to separate new versions.
If there are functions, you know that you will not and will not , you can delete them during download by simply selecting the functions that you will use.
I also think that the loading time would be insignificant, as soon as the browser has loaded the script, it will most likely cache its copy so that the user does not reload the script from each page. In addition, the server should only serve two files, instead of the overhead that can serve multiple files.
It will also help in the future development of your siteβs scripts in the sense that if you want to add an extra function to your script, you wonβt need to remember if you downloaded js / css files.
Scobler
source share