Jump to content

how to combine lots of javascript files into one?


toolman

Recommended Posts

Hi,

I have about 20 javascript files in my header which I know is way too many. Is there a way to easily combine them all into one? Could I just create a new javascript file and then copy and paste the contents of each file into the new one in the order they are loading on the page?

Thanks!
 

It is a linux command, you'd run it from the shell prompt. It just joins the files together the same as if you copy/pasted them all together into a single file so if you'd rather just do that you can.

 

If everything works as is right now, combining them should not cause any issues.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.