Can you show how you indicate that the order of the inline request requires calling above with a script tag to load require.js? With RequireJS 0.24.0 and later, this should work:
<script type="text/javascript"> var require = { baseUrl: "/payloads/backend/application" }; </script> <script src="path/to/require.js"></script> <script>require(["blog/widgets/categories"], function () {}</script>
If you use the main data attribute (recommended), and main.js is already in the "apps" directory, then everything should work out: baseUrl should be automatically installed in the application directory:
<script data-main="/payloads/backend/application/main.js" src="path/to/require.js"></script>
The above only works with RequireJS 0.24.0 and higher.
More error information would also help: is it still using baseUrl relative to the page? Is there any error in the console? Checking the Net or Resources panel in the browser’s web developer tools will show which file paths were used.
source share