I am trying to load RequireJS, a static resource, and it is failing to load into the Lightning application because the element is rendered incorrectly.
I'm using the LTNG:REQUIRE tag in this format:
<ltng:require scripts="{!$Resource.RequireJS}" src="{!$Resource.RequireJS}" afterScriptsLoaded="{!c.initTypeahead}" />
However when I look at the rendered HTML I see that it is not loading as a resource in the app because it is rendering as:
<script data-src="/resource/.../RequireJS"></script>
This is causing the app to fail as there is a big dependency on this JS file. Does anyone have an idea as to why "data-src" is rendered rather than "src"?
<ltng:require scripts="{!$Resource.RequireJS}" afterScriptsLoaded="{!c.initTypeahead}" />
?