And the JS2.js need some resource from JS1.js, and I don't want to use HTML to include JS1.js first and after that JS2.js because incase we have so many dependency like this, we can't control each include.
So, is there any solution for this problem?
Actually, I has used some solution like:
document.write('<script src="JS1.js"> </script>');
But It isn't worked, because in this case, the JS1.js has been loaded after the JS2.js.
Thanks for reading and giving me some advise.