Go Back To Code List
[How-To]
Current Code Entry
Next Code Entry
Use the tab key in a textarea
Right Arrow
How to put all JavaScript files in one file
Article Entry Date: May 13,2022 @ 10:46:59 / Last Updated On: May 13,2022 @ 10:58:41
In the development of the new design of Coding Source, I needed a way to have all JS files in one location. This Technique will help keep your code clean, neat, and less cluttered.
You will need two different All-In files if JavaScript files are in your web page's header and footer.

The below example would be your [Header.js].
The files will need to have the full URL to be used in order for the file to be found and used on your page.


Replace multiple lines of JavaScript links with one line of code.
Add this line in place of the code above.


And you would put all footer JS files together, and it would be your [Footer.js]


Add this line in place of the code above.