mediaworld

News

mediaworld | AndroidWorld 950&&!isTouch?”desktop”:950>sw&&sw>670||sw>950&&isTouch?”tablet”:”smartphone”, isPushing = false, is_bnzm_pdown = false; var advChannel = ”; var topSlotName = (device != ‘desktop’) ? ‘gpt-300250-mobile-container’ : ‘gpt-300250-container’; var nonce = ‘b7ece6dc9196025af0c1c721eaa20ed4e6db7654’; var initAdsenseDone = false; var lang = “it”; var dom_current = ‘https://www.androidworld.it’; var page_action = ‘hashtag’; ]]> { resolve(element); console.log(`[mmLoader] ${path} caricato!`, “chainId_” + chainId + ” Time: ” + performance.now()); }; element.onerror = e => { reject( new Error(`[mmLoader] Errore sul caricamento di ${path}`) ); console.log(e); }; target.appendChild(element); }); } function wait(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } ]]> { /* KRUX CONF */ window.Krux||((Krux=function(){Krux.q.push(arguments)}).q=[]); let m,src=(m=location.href.match(/bkxsrc=([^&]+)/))&&decodeURIComponent(m[1]); let urlKrux = /^https?://([a-z0-9_-.]+.)?krxd.net(:d{1,5})?//i.test(src) ? src : src === “disable” ? “” : (location.protocol===”https:”?”https:”:”http:”)+”//cdn.krxd.net/controltag?confid=JOY7G2kp”; return mmLoader({ src: urlKrux, async: true },”advChain”); }; let admantxLoad = () => { // la tag admantx è sempre smartworld sui 3 siti let admantxOptions = `{“tag”: “smartworld.it”,”key”: “4c1d28029914072d7b96a278ef7ef6fd25809a20638848ee8590da4a3cf07bc4″,”method”: “descriptor”,”filter”: “default”,”decorator”: “template.smartworld”,”type”: “URL”,”mode”: “async”,”body”: “${escape(document.location.href)}”,”custom1″:”${Krux.user}”,”custom2″:”${Krux.kxkuid}”}`; let decodedAdmantx = ‘https://euasync01.admantx.com/admantx/service?request=’+admantxOptions; let urlAdmantx = encodeURI(decodedAdmantx); return mmLoader({ src: urlAdmantx, async: true },”advChain”); }; let mediamondLoad = () => { return mmLoader({ src: “https://adv.mediamond.it/hpsponsor/androidworld/header_cls.v2.js”, defer: true },”advChain”).then(() => { const advChainEvent = new Event(‘advChainLoaded’); window.dispatchEvent(advChainEvent); }); } function startAdvChain() { kruxLoad().then(() => { window.Krux.user = kruxRetrieve(‘user’); window.Krux.kxkuid = kruxRetrieve(‘kuid’); window.Krux.segments = kruxRetrieve(‘segs’) && kruxRetrieve(‘segs’).split(‘,’) || []; admantxLoad().then(() => { mediamondLoad(); }); }); } postTcfReady(startAdvChain); function startAdsense() { setTimeout(() => { mmLoader({ “data-ad-client”: “ca-pub-7835681492882497”, src: “https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”, async: true }, “AdsenseChain”).then( element => { refreshAdsense(); }); }, 2000); } function refreshAdsense() { let blankAdSlots = document.querySelectorAll(“.adsbygoogle:not([data-adsbygoogle-status=’done’])”); if(blankAdSlots.length > 0){ for (var i = 0; i mmLoader({ src: “https://www.gstatic.com/firebasejs/4.10.1/firebase-messaging.js”, async: true }, “mediamondChain”)) .then(element => mmLoader({ src: “/js/push/api.js?cb=b7ece6dc9196025af0c1c721eaa20ed4e6db7654”, async: true }, “mediamondChain”)) .then(element => mmLoader({ src: “/js/push/object.js?cb=b7ece6dc9196025af0c1c721eaa20ed4e6db7654”, async: true }, “mediamondChain”)) .then(element => mmLoader({ src: “/js/push/frontend.js?cb=b7ece6dc9196025af0c1c721eaa20ed4e6db7654”, async: true }, “mediamondChain”)) .then(element => mmLoader({ src: “/js/push/client.js?cb=b7ece6dc9196025af0c1c721eaa20ed4e6db7654”, async: true }, “mediamondChain”)); }, 5000); ]]> { let is_mobi = /Mobi|Android/i.test(navigator.userAgent); document.querySelectorAll(“a”).forEach((a) => { if (a.href.search(‘tag=smartworld06-21’) > -1) { if (a.href.search(‘ascsubtag’) == -1) { a.href += “&ascsubtag=home-widget-“+(is_mobi ? “mobile” : “desktop”); } else if (is_mobi) { a.href = a.href.replace(/(ascsubtag=w+-w+)-desktop/, “$1-mobile”); } } }); }); ]]> { getCLS(data => { console.log(“coreWebVitals cls”,data); gtag(‘event’, ‘timing_complete’, { ‘event_category’: ‘Performance’, ‘name’: ‘cumulative-layout-shift’, ‘value’: Math.round(data.value*1000) }); }); getFCP(data => { console.log(“coreWebVitals fcp”,data); gtag(‘event’, ‘timing_complete’, { ‘event_category’: ‘Performance’, ‘name’: ‘first-contentful-paint’, ‘value’: Math.round(data.value) }); }); getFID(data => { console.log(“coreWebVitals fid”,data); gtag(‘event’, ‘timing_complete’, { ‘event_category’: ‘Performance’, ‘name’: ‘first-input-delay’, ‘value’: Math.round(data.value) }); }); getLCP(data => { console.log(“coreWebVitals lcp”,data); gtag(‘event’, ‘timing_complete’, { ‘event_category’: ‘Performance’, ‘name’: ‘largest-contentful-paint’, ‘value’: Math.round(data.value) }); }); } addWebVitals(); ]]> { img.src = img.dataset.src; }); } else { // Dynamically import the LazySizes library const script = document.createElement(‘script’); script.src = ‘/js/min/lazysizes.min.js’; script.async = true; document.getElementsByTagName(“head”)[0].appendChild(script); } ]]>

This article originally appeared on https://www.androidworld.it/tag/mediaworld/

Brian Jones

Author and owner of WantedDroid.com - scouring the internet for all the news related to Android. Contact me here: https://wanteddroid.com/contact/

Leave a Reply