data-main is when you have only one requirejs application on your page. If you have several, do not use basic information. It's pretty simple, here is an example of using your main.js and navigation.js
<script src='require.js'></script> <script> require(['main']); require(['navigation']); </script>
Although I would say that your page needs nav.js. View each page as an app. So, the basic information is as usual in your main.js.
And then inside main.js:
// start independent load of navigation.js require(['navigation']); // load modules required for main require(['moduleA', 'moduleB'], function(moduleA, moduleB){ // inside main.js });
source share