Require JS

Here I demonstrate the use of the awesome require.js library!
Fore ref: https://www.youtube.com/watch?v=cSy6_tNNZsE

This razor view only includes one .jS file, notice the data-main HTML5 attribute indicating the required modules 




The main.js loads the required modules 

Check out the developer tools to see them loading