Ok, so I have a job that seems to work.
Link to this ticket here:
https://github.com/jrburke/requirejs/issues/463
I moved the script tag with the main entry to the end of the body tag.
<script data-main="js/main.js" src="js/libs/require.js"></script>
</body>
jquery:
define([
'jquery',
'jquery.plugin1',
'jquery.plugin2',
'etc'
], function ($) {
$(function(){
});
}
define([
'jquery',
'jquery.plugin1',
'jquery.plugin2',
'etc'
], function ($) {
}
, , , html , "" - DOM. . , , .