Which environment are you using JavaScript in? In a browser? On a server using Node.js? There are different techniques for each.
– clinton3141Mar 08 '14 at 16:23
possible duplicate of [How to include a JavaScript file in another JavaScript file?](http://stackoverflow.com/questions/950087/how-to-include-a-javascript-file-in-another-javascript-file). See also https://stackoverflow.com/questions/16297688/load-javascript-like-phps-include or http://stackoverflow.com/questions/21294/dynamically-load-a-javascript-file-think-of-include-in-c
– BergiMar 08 '14 at 16:49
2 Answers2
0
You could look at using an asset precompilation framework such as Broccoli.