loading js files dynamically via another js file?

Posted by mark smith on Stack Overflow See other posts from Stack Overflow or by mark smith
Published on 2009-10-24T15:58:46Z Indexed on 2010/04/16 1:13 UTC
Read the original article Hit count: 506

Filed under:
|

Hi there,

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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery