The following demo demonstrates the loading order of files with dependency. Below is my project directory structure. JS folder contains number of js files (required by project).

– js
–script1.js
–script2.js
–script3.js
–dependent1.js
–dependent2.js
–core
—require.js
—main.js (this is having the configuration)
—app.js (init the loading process)
-index.html

We are going to load the js files in the following order.

-script3.js
-dependent2.js
-script2.js
-dependent1.js
-script1.js

index.html

main.js

app.js

 Demo:

Open in new tab with browser developer tool and track the loading order

http://www.amasik.com/demo/requirejs/index.html