[]
{const o=”ontouchstart”in window||!!navigator.maxTouchPoints||window.location.search.includes(“__touch”),t=window.matchMedia(“only screen and (max-width: 767px)”).matches,n=o&&t,i=o&&!t,e=[n?”mobile”:”no-mobile”,i?”tablet”:”no-tablet”,o?”touch”:”no-touch”];window.touch=o,window.tablet=i,window.mobile=n,window.desktop=!(n||i),document.documentElement.classList.add(…e)})();]]>{const{search:o}=window.location;if(o.includes(“disableFonts”))return;const e=o.includes(“debugFonts”)?window.console.info:()=>({}),n=document,t=[],s=o=>window.console.error(“> FONT FAILED TO LOAD:”,o),d=o=>o,{fontsLoaded:a}=sessionStorage;if(!(“fonts”in n)||a){const o=n.getElementById(“deferred-fonts”);return o&&(o.media=”all”),void(a&&(e(“> LOADING FONTS FROM CACHE”),document.fonts.forEach((o=>{t.push(o.load().then(d).catch(s))})),Promise.all(t).then((()=>{e(“> FONTS LOADED FROM CACHE”),n.documentElement.classList.add(“fonts-loaded”)}))))}window.addEventListener(“DOMContentLoaded”,(()=>{[{“family”:”NeueHaasUnica”,”src”:”/_assets/design-tokens/elle/static/fonts/16eece37-9438-4888-8270-f6e32bc95fad.75b69ee.woff2″,”format”:”woff2″,”descriptors”:{“weight”:400,”display”:”swap”,”style”:”normal”}},{“family”:”Inter”,”src”:”/_assets/design-tokens/fre/static/fonts/inter-v3-latin-regular.c8ad008.woff2″,”format”:”woff2″,”descriptors”:{“weight”:400,”display”:”swap”,”style”:”normal”}},{“family”:”SaolDisplay”,”src”:”/_assets/design-tokens/elle/static/fonts/Saol-Display-Regular.1a09c0e.woff2″,”format”:”woff2″,”descriptors”:{“weight”:400,”display”:”swap”,”style”:”normal”}},{“family”:”Charter”,”src”:”/_assets/design-tokens/fre/static/fonts/e4fc2e26-0ce1-4e6c-bb35-330c133f041c.c08ce2c.woff2″,”format”:”woff2″,”descriptors”:{“weight”:400,”display”:”swap”,”style”:”italic”}},{“family”:”Charter”,”src”:”/_assets/design-tokens/fre/static/fonts/74c2aebb-af4a-4c7d-a7f5-2db2c73334eb.c4cafa4.woff2″,”format”:”woff2″,”descriptors”:{“weight”:”bold”,”display”:”swap”,”style”:”normal”}},{“family”:”Charter”,”src”:”/_assets/design-tokens/fre/static/fonts/e38fddd1-89a4-4995-9f7f-3c701b2e62f1.dd7387f.woff2″,”format”:”woff2″,”descriptors”:{“weight”:400,”display”:”swap”,”style”:”normal”}}].forEach((({family:o,src:e,format:n=”woff”,descriptors:a={}})=>{t.push(new FontFace(o,`url(‘${e}’) format(‘${n}’)`,a).load().then(d).catch(s))})),Promise.all(t).then((o=>{e(“> FONTS LOADED”),o.forEach((o=>o&&document.fonts.add(o))),n.documentElement.classList.add(“fonts-loaded”),sessionStorage.fontsLoaded=!0}))}))})();]]>
Read The Full Article Here