Fai-da-te – Donnamoderna
Fai-da-te – Donna Moderna { 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)); } /*END MM LOADER*/ ]]> 0, device = sw>1000&&!isTouch?»desktop»:1000>sw&&sw>670||sw>1000&&isTouch?»tablet»:»smartphone», isPushing = false, is_bnzm_pdown = false; var DMheaderOptions = { thirdlevel: true, search: { visible: true, placeholder: «Cerca…», submitCallback: «doSubmit» }, login: true, special: true, newsletter: true, social: [ { name: «Facebook», className: «dm20-header-facebook», url: «https://www.facebook.com/DonnaModerna» }, { name: «Twitter», className: «dm20-header-twitter», url: «https://twitter.com/DonnaModerna» }, { name: «Instagram», className: «dm20-header-instagram», url: «https://www.instagram.com/donnamoderna/» } ] }; ]]> { img.src = img.dataset.src; }); } else { // Dynamically import the LazySizes library const script = document.createElement(‘script’); script.src = ‘https://www.donnamoderna.com/content/themes/donnamoderna/2020assets/js/lazysizes.min.js’; script.async = true; document.getElementsByTagName(«head»)[0].appendChild(script); } ]]> { mmLoader({ «data-ad-client»: «ca-pub-7835681492882497», src: «https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js», async: true }, «AdsenseChain»).then( element => { let blankAdSlots = document.querySelectorAll(«.adsbygoogle:not([data-adsbygoogle-status=’done’])»); if(blankAdSlots.length > 0){ for (var i = 0; i 0) { setTimeout(() => { mmLoader({ src: «//widgets.outbrain.com/outbrain.js», async: true },»advChain»); }, 3000); } } postTcfReady(startOutbrain); ]]> { console.log(«coreWebVitals cls»,data); // ga(‘send’, ‘timing’, { // ‘timingCategory’: ‘Performance’, // ‘timingVar’: ‘cumulative-layout-shift’, // ‘timingValue’: Math.round(data.value*1000) // }); gtag(‘event’, ‘timing_complete’, { ‘name’: ‘cumulative-layout-shift’, ‘value’: Math.round(data.value*1000), ‘event_category’: ‘Performance’ }); }); getFCP(data => { console.log(«coreWebVitals fcp»,data); // ga(‘send’, ‘timing’, { // ‘timingCategory’: ‘Performance’, // ‘timingVar’: ‘first-contentful-paint’, // ‘timingValue’: Math.round(data.value) // }); gtag(‘event’, ‘timing_complete’, { ‘name’: ‘first-contentful-paint’, ‘value’: Math.round(data.value), ‘event_category’: ‘Performance’ }); }); getFID(data => { console.log(«coreWebVitals fid»,data); // ga(‘send’, ‘timing’, { // ‘timingCategory’: ‘Performance’, // ‘timingVar’: ‘first-input-delay’, // ‘timingValue’: Math.round(data.value) // }); gtag(‘event’, ‘timing_complete’, { ‘name’: ‘first-input-delay’, ‘value’: Math.round(data.value), ‘event_category’: ‘Performance’ }); }); getLCP(data => { console.log(«coreWebVitals lcp»,data); // ga(‘send’, ‘timing’, { // ‘timingCategory’: ‘Performance’, // ‘timingVar’: ‘largest-contentful-paint’, // ‘timingValue’: Math.round(data.value) // }); gtag(‘event’, ‘timing_complete’, { ‘name’: ‘largest-contentful-paint’, ‘value’: Math.round(data.value), ‘event_category’: ‘Performance’ }); }); getINP(data => { console.log(«coreWebVitals inp»,data); } , {reportAllChanges: true, durationThreshold: 0}); } addWebVitals(); ]]>
https://www.donnamoderna.com/lifestyle/fai-da-te