I've setup differential loading to serve ES6 modules to newer browsers. I've run into a problem where modules are deferred by default with the script tag even without the defer attribute. I.e.
<script type="module" src="..."></script>
is always deferred till all the HTML is parsed leading to a FOUC.
I've tried to prevent this and force parsing the file before the rest of the HTML is loaded by using
<script defer="false" type="module" src="..."></script>
<script defer="nodefer" type="module" src="..."></script>
<script async="false" type="module" src="..."></script>
None of these approaches seem to work. Whatever technique I use has to maintain differentiation between the ES6 and ES5 bundles. How do I prevent ESModules from being deferred till all the HTML is parsed even when included in the head?