I am creating a dashboard that shows different graphs in my web application. I got this code snippets and edited as needed. I realized that my web application is getting bigger. Therefore, I'd decided to create a separate javascript files for each graphs. Initially, I had all my tag at the bottom of my html page which works just fine. I also have external resources such as;
<!-- External Resources -->
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<!-- Functions -->
<script>
// more codes here. But these codes will go to new .js file
</script>
Question, on my new .js file, how do I link all these external resources correctly?
Thanks in advance!