Hybrid Cloud Infrastructure Solutions


0?r.shift():null);i&&i(e.data.response)}else if(o.commandToClient)switch(o.commandToClient){case”enableDebug”:window.akamServiceWorkerDebug||(window.akamServiceWorkerDebug=!0,aka3pmLog(“Setup script debug enabled via service worker message”),v());break;case”boomerangMQ”:o.payload&&(window.BOOMR_mq=window.BOOMR_mq||[]).push(o.payload)}aka3pmLog(“akam-sw message: “+JSON.stringify(e.data))});var t=function(e){return new Promise(function(n){var r,o;r=e.command,o=n,a.has(r)||a.set(r,[]),a.get(r).push(o),navigator.serviceWorker.controller&&(e.isAka3pm=!0,navigator.serviceWorker.controller.postMessage(e))})},c=function(e){return t({command:”navTiming”,navTiming:e})},s=null,m={},d=function(){var e=i;return s&&(e+=”?othersw=”+encodeURIComponent(s)),function(e,n){return new Promise(function(r,i){aka3pmLog(“Registering service worker with URL: “+e),navigator.serviceWorker.register(e,n).then(function(e){aka3pmLog(“ServiceWorker registration successful with scope: “,e.scope),r(e),o(1)}).catch(function(e){aka3pmLog(“ServiceWorker registration failed: “,e),o(0),i(e)})})}(e,m)},g=navigator.serviceWorker.__proto__.register;if(navigator.serviceWorker.__proto__.register=function(n,r){return n.includes(i)?g.call(this,n,r):(aka3pmLog(“Overriding registration of service worker for: “+n),s=new URL(n,window.location.href),m=r,navigator.serviceWorker.controller?new Promise(function(n,r){var o=navigator.serviceWorker.controller.scriptURL;if(o.includes(i)){var a=encodeURIComponent(s);o.includes(a)?(aka3pmLog(“Cancelling registration as we already integrate other SW: “+s),navigator.serviceWorker.getRegistration().then(function(e){n(e)})):e.then(function(){aka3pmLog(“Unregistering existing 3pm service worker”),navigator.serviceWorker.getRegistration().then(function(e){e.unregister().then(function(){return d()}).then(function(e){n(e)}).catch(function(e){r(e)})})})}else aka3pmLog(“Cancelling registration as we already have akam-sw.js installed”),navigator.serviceWorker.getRegistration().then(function(e){n(e)})}):g.call(this,n,r))},navigator.serviceWorker.controller){var u=navigator.serviceWorker.controller.scriptURL;u.includes(“/akam-sw.js”)||u.includes(“/akam-sw-preprod.js”)||u.includes(“/threepm-sw.js”)||(aka3pmLog(“Detected existing service worker. Removing and re-adding inside akam-sw.js”),s=new URL(u,window.location.href),e.then(function(){navigator.serviceWorker.getRegistration().then(function(e){m={scope:e.scope},e.unregister(),d()})}))}else e.then(function(){window.akamServiceWorkerPreprod&&(i=”/akam-sw-preprod.js”),d()});if(window.performance){var w=window.performance.timing,l=w.responseEnd-w.responseStart;c(l)}e.then(function(){t({command:”pageLoad”})});var k=!1;function v(){window.akamServiceWorkerDebug&&!k&&(k=!0,aka3pmLog(“Initializing debug functions at window scope”),window.aka3pmInjectSwPolicy=function(e){return t({command:”updatePolicy”,policy:e})},window.aka3pmDisableInjectedPolicy=function(){return t({command:”disableInjectedPolicy”})},window.aka3pmDeleteInjectedPolicy=function(){return t({command:”deleteInjectedPolicy”})},window.aka3pmGetStateAsync=function(){return t({command:”getState”})},window.aka3pmDumpState=function(){aka3pmGetStateAsync().then(function(e){aka3pmLog(JSON.stringify(e,null,”t”))})},window.aka3pmInjectTiming=function(e){return c(e)},window.aka3pmUpdatePolicyFromNetwork=function(){return t({command:”pullPolicyFromNetwork”})})}v()}}();]]> Hybrid Cloud Infrastructure Solutions | CDW 0)if(a&&”performance”in a&&a.performance&&”function”==typeof a.performance.setResourceTimingBufferSize)a.performance.setResourceTimingBufferSize();!function(){if(BOOMR=a.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var e=””==”true”?1:0,t=””,n=”y35ubdqxhzfpizsi57jq-f-c998318ad-clientnsv4-s.akamaihd.net”,i=”false”==”true”?2:1,_={“ak.v”:”37″,”ak.cp”:”222114″,”ak.ai”:parseInt(“274329″,10),”ak.ol”:”0″,”ak.cr”:13,”ak.ipv”:4,”ak.proto”:”h2″,”ak.rid”:”e070d737″,”ak.r”:44387,”ak.a2″:e,”ak.m”:”a”,”ak.n”:”essl”,”ak.bpcip”:”198.251.64.0″,”ak.cport”:48988,”ak.gh”:”23.192.164.18″,”ak.quicv”:””,”ak.tlsv”:”tls1.3″,”ak.0rtt”:””,”ak.csrc”:”-“,”ak.acc”:””,”ak.t”:”1716056019″,”ak.ak”:”hOBiQwZUYzCg5VSAfCLimQ==Bw3W+bNpf7h9ID5LPRzhL93MTPEuYny8DNvs2LSzzHK9Y1U2VBUXqCtlByhQcpFDdZdUr5Ke9k/sCfC54xzz5yxzDTOK78gAUbMnrBWM/BriOgXQEIUwa0Pvt/4uhM6s5bZc4/Nolx3dj2jaXBAcnJMtDgWqHkkzWvInsolUaw2JqBK7udKbAr8GQ2sxYA3kB4W+ZS5DZ8DKe0uoY3ZiMDIRaxLlcG8r8eYccIjZHUAqmk660SZLjw89IB5UJhob7R86Po42Bw/zjmYKJt76BsGFthDR2QPjP3ksM+6Q459oe/T6/NlgVvwSo9h5lYbUyQhyE5i/Uf9nXde8kRMKzzF8zRU/S3eW2OLVIA2ytW9re+Fxp6QHCUtQshXy6iSeIRJpfVWzcGgAHPOdzHm10LGu73XEm2XqPGW/PgpHcPI=”,”ak.pv”:”422″,”ak.dpoabenc”:””,”ak.tf”:i};if(“”!==t)_[“ak.ruds”]=t;var o={i:!1,av:function(e){var t=”http.initiator”;if(e&&(!e[t]||”spa_hard”===e[t]))_[“ak.feo”]=void 0!==a.aFeoApplied?1:0,BOOMR.addVar(_)},rv:function(){var a=[“ak.bpcip”,”ak.cport”,”ak.cr”,”ak.csrc”,”ak.gh”,”ak.ipv”,”ak.m”,”ak.n”,”ak.ol”,”ak.proto”,”ak.quicv”,”ak.tlsv”,”ak.0rtt”,”ak.r”,”ak.acc”,”ak.t”,”ak.tf”];BOOMR.removeVar(a)}};BOOMR.plugins.AK={akVars:_,akDNSPreFetchDomain:n,init:function(){if(!o.i){var a=BOOMR.subscribe;a(“before_beacon”,o.av,null,null),a(“onbeacon”,o.rv,null,null),o.i=!0}return this},is_complete:function(){return!0}}}}()}(window);]]>

Source

Share:

Facebook
Twitter
Pinterest
LinkedIn

For reliable and quality Managed IT Services, IT Support and VoIP, Contact Precise Business Solutions 

Skip to content