is there anyway to load other JS files from within a single JS file. I would like to point my individual pages “ITS” js file and that js file would load jquery, other js files.
I know i can just pop all these into the html i.e.
I was thinking of separations of concerns so i was wondering if anything exists already without me reinventing the wheel….
That i would just need to edit home.js to change what other js (jquery etc) are loaded for home.htm … home.htm would just point to home.js
Thanks
You can take a look at dynamic script loading. Here’s an excerpt from the article: