The method you choose to include a JavaScript file in another largely depends on your project's requirements and the browsers you need to support.
How do I include a JavaScript file in another JavaScript file?
How do I include a JavaScript file in another…
How do I include a JavaScript file in another JavaScript file?
The method you choose to include a JavaScript file in another largely depends on your project's requirements and the browsers you need to support.