I changed to:
dojo.addOnLoad(
function () {
require([
"dojo/i18n!./map.web/resources/nls/template.js?v=" + version,
"storymaps/ui/loadingIndicator/LoadingIndicator",
"esri/urlUtils",
"esri/layers/GraphicsLayer",
"esri/layers/FeatureLayer",
"storymaps/utils/Helper",
"dijit/TooltipDialog",
"esri/renderers/SimpleRenderer",
"esri/tasks/query",
"esri/lang",
"dojo/dom-style",
"dijit/popup",
"esri/graphic",
"esri/dijit/BasemapGallery",
"esri/dijit/Scalebar",
"dojo/fx/Toggler",
"dojo/fx",
"dojo/dom",
"dojo/on",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/TitlePane",
"esri/arcgis/utils",
"dojo/parser",
"templateConfig/commonConfig.js?v=" + version,
"dojo/domReady!",
"dojo/ready"
], function (
_i18n,
LoadingIndicator,
urlUtils,
GraphicsLayer,
FeatureLayer,
Helper,
TooltipDialog,
SimpleRenderer,
_query,
esriLang,
domStyle,
dijitPopup,
Graphic,
BasemapGallery,
Scalebar,
Toggler,
coreFx,
dom,
on,
BorderContainer,
ContentPane,
TitlePane,
arcgisUtils,
Parser,
templateConfig,
domReady,
ready
) {
added additional variables, (and yes those additional variables are not being called in the function so may not be needed). Also took out the first require.
I still get the loading issue, please see attached image. This is sporadic and goes away if user just refreshes the browser. I would like it to load properly at first however.