Friends I have 3 files in javascript. each has a function
- for the menu
- For the social bar.
- Fancybox.
They are short functions and do not conflict with each other. to improve the requests to the server (which are not many) What recommendation do you suggest?
- Have each file separately.
- Merge them all into one file
If your project is small, I doubt that it will affect much if you have several files or just one.
If your project were large, it would be a better option to minify the files.
But if you still want to minify your files to improve and/or practice, I recommend the following link https://github.com/mishoo/UglifyJS