For example requireJS uses following syntax:
<script data-main="scripts/main" src="scripts/require.js"></script>
and in its documentation you can read:
data-main attribute tells require.js to load scripts/main.js after require.js loads
- How is that (script load-order) possible?
- If the name of the js-file was nomain.js, would the data-attribute be "data-nomain" ?
- I see no information about that in the html5 specification or am I looking at wrong place?
thank you