Magento Open Source, 1.9.x
JavaScript Settings

Multiple JavaScript files can be merged into a single, condensed file to reduce page load time. If you open a merged JavaScript file, you’ll find one continuous stream of text, with line breaks removed. If you are finished with the development process, and the code contains no errors, you might consider merging the files.

To merge JavaScript files:

1. On the Admin menu, select System > Configuration. Then in the panel on the left under Advanced, select Developer.
2. Click to expand the JavaScript Settings section.
3. Set Merge JavaScript Files to “Yes.”
4. When complete, click the Save Config button.