I have several scripts on my website.
Would it make sense to group them all into one single file?
Or is it preferable to keep them separate?
I have several scripts on my website . Would it make sense to group
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For production I would always group them into one file and compress and/or minify them. Browser can only (used to?) make 2 requests at the same time to the same domain.
If it is a onetime action you can use this website to minify the files. Other wise you would have to look into automating the process.
But please also keep your original uncompressed files for if you want to make changes at some point.