Securian Financial Retirement 0) { $(‘head’).append(dynScript); } }, cache: false // this is needed to make sure we always get the most current script }); } function getAdobeScriptByEnv(hostName) { var scriptDev = “//assets.adobedtm.com/53a891404309/a7b8977e8d8e/launch-a4ccc5c1b7b8-development.min.js”, scriptQa = “//assets.adobedtm.com/53a891404309/a7b8977e8d8e/launch-8fa7ef5997be-staging.min.js”, scriptProd = “//assets.adobedtm.com/53a891404309/a7b8977e8d8e/launch-305e1bc3a65b.min.js”; if (hostName.startsWith(“www.securianretirementcenter.com”)) { return scriptProd; } else if (hostName.startsWith(“qa”)) { return scriptQa; } else { // dev/localdev return scriptDev; } } function addAdobeScriptImport(hostName) { // per TCXI, don’t log for rhop if (isPartProd || isPartTest) { // inject adobe script, which is different by environment. var adobeScript = window.document.createElement(“script”); adobeScript.setAttribute(“src”, getAdobeScriptByEnv(hostName)); adobeScript.setAttribute(“async”, “true”); window.document.head.appendChild(adobeScript); } } if (isPartProd && !isDemoMode) { // only for prod (no harm otherwise, but will make unneccessary XHR call) injectDynatrace(); } if (!userType) { // userType in index.html is only set for local builds, so set it explicitly for ci-builds when undefined $(“meta[name=’application-user-type’]”).attr(‘content’, isPartProd || isPartTest ? “part” : “rhop”); } addAdobeScriptImport(hostName); // per DSG group, add this workaround until we adopt v24 // https://securian.atlassian.net/jira/software/projects/IMTRPWEBA/boards/150?selectedIssue=IMTRPWEBA-4887 document.fonts.ready.then(function() { $(window).trigger(“resize”); }); }()); ]]>
Source
previous post