MSN {const i=document.querySelector(n);if(i)return e(i)});i.observe(document.body,{childList:!0,subtree:!0})}));var n;if(!window.RENDER){e.headInjectionString&&document.head.insertAdjacentHTML(“beforeend”,e.headInjectionString),t.insertAdjacentHTML(“afterbegin”,e.html),document.head.insertAdjacentHTML(“beforeend”,”+e.css+””),e.pageTitle&&(document.title=e.pageTitle),j(e),window.REDUX_DATA=e.state,window.SSR=c.a.Completed,O(a.a.PageTimings.completed,!0),Object(u.a)();const n=e.ssrTimings||{};S(n),S(n.configTimings),S(n.pageTimings)}}))}function R(e,t){return t.get(e)||t.get(e.toLowerCase())}function C(e){window.SSR=e,window.RENDER=!0}function k(e,t,n,i,r){if(void 0===window.SSR){const o=”prg-edge-t-ssrt”,s=”prg-edge-t-ssrr”,u=”prg-mmx-p-ssrx”,l=”prg-mmx-p-ssrx-r”,f=[],g=[],p=”prg-wea-csr”,m=”prg-wea-csrrf”,w=”prg-weather-ssr”,b=”prg-wea-ssr”,S=”news::elections-2020-us”,O=”prg-fi-csr”,v=”prg-fi-csrrf”;let j=!1,T=!1,k=!1;switch(t){case a.a.AppType.Edge:T=i.indexOf(s)>=0,j=T||i.includes(o);break;case a.a.AppType.Mmx:T=i.indexOf(l)>=0,j=T||i.includes(u);break;case a.a.AppType.Hub:j=n===S;break;case a.a.AppType.Weather:if(“weather”!==n&&”weather::weathertoday”!==n){j=!1;break}if(!r||f.indexOf(r)>=0){j=!1;break}if(g.indexOf(r)>=0){if(0==i.filter(e=>e.startsWith(w)||e.startsWith(b)).length){j=!1;break}}else if(i.filter(e=>e.startsWith(p)||e.startsWith(m)).length>0||”true”===e.get(“csronly”)){j=!1;break}j=!0;break;case a.a.AppType.Finance:if(“true”===e.get(“csronly”))j=!1;else if(i.some(e=>e.startsWith(O)||e.startsWith(v)))j=!1;else switch(n){case”finance”:j=!0;break;case”financestockdetails”:case”finance::portfolio”:j=i.indexOf(“prg-fi-ssr-l2”)>=0;break;default:j=!1}}if(j){k=”true”===R(“ssrOnly”,e);const n=function(){let e=!1;const t=Object(d.b)()[a.a.PageTimings.inlineStart];if(performance&&performance.timing&&performance.timing.responseStart&&performance.timing.navigationStart&&t){e=t-(performance.timing.responseStart-performance.timing.navigationStart)>a.a.pauseThresholdMS}return e}(),i=h();if(!i&&!n||k)H(k,T);else{const e=i?a.a.SkipDueToHiddenReason.documentHidden:a.a.SkipDueToHiddenReason.hasPaused;y(a.a.PageTimings.skipDueToHiddenReason,e);(function(e,t,n){return n===a.a.SkipDueToHiddenReason.documentHidden&&e===a.a.AppType.Weather})(t,0,e)?H(k,T):(window.SSR=c.a.SkipDueToHidden,window.RENDER=!0)}}else C(c.a.SkipDueToCSROnly)}return!window.RENDER}function H(e,t){window.SSR=c.a.NotStarted,window.RENDER=!1,window.SSRONLY=e,window.RIVER=t}function q(e){return function(e,t){const n=(e=(e||””).substring(1))+”&”+(t=(t||””).substring(1));return new o.a(n)}(e&&e.queryparams,window.location.search)}function E(e,t,n,i,r,o=g.a,u){if(window.RENDER||window.SSR!==c.a.NotStarted)return;const d=new p.a(o,g.b),l=b(e,function(e,t){const n=”true”===R(“ssrCdn”,e);return(t||(n?”https://assets.msn.com”:window.location.origin))+”/render/?fragment=true&”}(e,u),t,n,i,r,d.getSerializedData()),h=new XMLHttpRequest,m=e=>{const t=`Fragment fetch for ${l} failed. Status code: ${h.status}. ${e}`;Object(f.a)(t,34002,{}),window.SSR=c.a.HasFetchError,window.SSR_ERROR=new Error(t)};h.onabort=function(){m(“XMLHttpRequest.onabort called.”)},h.onerror=function(){m(“XMLHttpRequest.onerror called.”)},h.onreadystatechange=function(){try{if(4!==h.readyState)return;if(O(a.a.PageTimings.fragmentFetchEnd,!0),y(a.a.PageTimings.fragmentFetchStatusCode,h.status,!1),h.status>=200&&h.status“xmlhttprequest”===t.initiatorType&&t.name===e);return t.length>0?t[0]:null}(e);let r=!1;r=D(i)?void 0!==(o=i).transferSize?0===o.transferSize:void 0!==o.nextHopProtocol?””===o.nextHopProtocol:(Object(f.a)(“didUseBrowserCache …
MSN Read More »