As you all know that the require(...) method is sync and can take some time to execute. Thus, it is advisable to load all require on the top.
I am using more than 15 modules. Now instead of writing multiple require statements, I am thinking of the following logic:
foreach(var module in node_modules)
GLOBAL.app.npm[module] = require(module);
The question that I have is how you are handling the same?
Are you writing 15 require statements or any dynamic mechanism?
thanks,