JavaScript file load order and dependency management
Just wondering about this...

I have several separate javascript files, that all contain code based on the module pattern. A few of the modules have some of the others as dependencies. If i know that none of the code would be called on the HTML until the page is loaded, does the order in which the files load still important?

Is the fact that the module code sits inside an immediate function enough to trigger the requirement that the other modules be loaded already?

I am prepared to look into the RequireJS library if need be, but just wanted to know if what i am going is ok first.
JavaScript file load order and dependency management
===

Just wondering about this...

I have several separate javascript files, that all contain code based on the module pattern. A few of the modules have some of the others as dependencies. If i know that none of the code would be called on the HTML until the page is loaded, does the order in which the files load still important?

Is the fact that the module code sits inside an immediate function enough to trigger the requirement that the other modules be loaded already?

I am prepared to look into the RequireJS library if need be, but just wanted to know if what i am going is ok first.