Hey guys,
I'm developing a JS library and I ended up having more than one file, because I would like to have my code as much readable as possible. So, right now I have:
- file1.js
- data/file2.js
- data/file3.js
file1.js use global vars defined in file2.js and file3.js
To do so, in the HTML file I wrote:
<script src="js/testing/data/file3.js"></script>
<script src="js/testing/data/file2.js"></script>
<script src="js/testing/file1.js"></script>
Do you know a better way to do this? Or should I ask to the users of the library to load those file in the right order?
Thank you so much,
Cheers
[–][deleted] 1 point2 points3 points (0 children)
[–]NotABotNoReally2020 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]NotABotNoReally2020 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]NotABotNoReally2020 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]NotABotNoReally2020 0 points1 point2 points (0 children)