Could anyone suggest me how to do that or any other way to make it better. I want this on multiple pages.
To combine them into one you... Combine them into one. Lol. Just put them in the same order they currently are. Place the link at the bottom just above the closing body tag.
As Eric says, just combining them into one and placing them at the bottom of your document will work fine.
However, there are also various tools available which will do this for you, but which also bring a few other benefits, such as removing unnecessary whitespace and comments, and serving them with gzip encoding and optimal client-side cache headers.
There's a good discussion of this on StackOverflow: http://stackoverflow.com/questions/4947231/tool-to-combine-javacripts-files-into-one
This topic is now closed. New replies are no longer allowed.