Ce site Web utilise des cookies pour améliorer votre expérience. Nous supposerons que cela vous convient, mais vous pouvez vous désinscrire si vous le souhaitez. J'accepte Lire plus

Politique de confidentialité et de cookies
ed-DOMContentLoaded")),await this._requestAnimFrame(),document.dispatchEvent(new Event("soledadspeed-readystatechange")),await this._requestAnimFrame(),document.soledadonreadystatechange&&document.soledadonreadystatechange()}async _triggerWindowLoad(){await this._requestAnimFrame(),window.dispatchEvent(new Event("soledadspeed-load")),await this._requestAnimFrame(),window.soledadonload&&window.soledadonload(),await this._requestAnimFrame(),this.allJQueries.forEach(e=>e(window).trigger("soledadspeed-jquery-load")),window.dispatchEvent(new Event("soledadspeed-pageshow")),await this._requestAnimFrame(),window.soledadonpageshow&&window.soledadonpageshow()}_handleDocumentWrite(){const e=new Map;document.write=document.writeln=function(t){const n=document.currentScript,i=document.createRange(),a=n.parentElement;let d=e.get(n);void 0===d&&(d=n.nextSibling,e.set(n,d));const s=document.createDocumentFragment();i.setStart(s,0),s.appendChild(i.createContextualFragment(t)),a.insertBefore(s,d)}}async _requestAnimFrame(){return new Promise(e=>requestAnimationFrame(e))}static run(){const e=new SoledadLazyLoad(["keydown","mousemove","touchmove","touchstart","touchend","wheel"]);e._addUserInteractionListener(e)}}SoledadLazyLoad.run(); "use strict";window.penciLazyConfig={cssDelayType:"interact"},(()=>{const e=window.penciLazyConfig||{},t=!0;let n=[];const o={HTMLDocument:document.addEventListener.bind(document),Window:window.addEventListener.bind(window)},c={};let a,d=!1,r=!1,s=[],i=[];function l(t){(i=[...document.querySelectorAll("link[data-soledad_pagespeed-delay]")]).length&&function(t,n){t=t||"js";const c=n?"onload":e[t+"DelayType"]||"onload",a="js"===t?f:u;switch("js"===t&&(n||"onload"===c?y():g(y)),c){case"interact":let e=!1;const d=()=>{e||(e=!0,"js"===t?function(e){"loading"!==document.readyState?e():o.Window("DOMContentLoaded",()=>e())}(()=>setTimeout(a,2)):a())};["mousemove","mousedown","keydown","touchstart","wheel"].forEach(e=>{document.addEventListener(e,d,{passive:!0,once:!0})})}}("css",t)}function u(){i.forEach(e=>m(e))}function f(e){if(y(),!e){d=!0,a=document.readyState;let e="loading";Object.defineProperty(document,"readyState",{configurable:!0,get:()=>e,set:t=>e=t})}let t;const o=new Promise(e=>t=e),c=()=>{s.length?m(s.shift()).then(c):t()};c(),o.then(w).catch(e=>{console.error(e),w()}),setTimeout(()=>!n.length||w(),45e3)}function m(e){let t;const n=e.dataset.src,o=e=>new Promise(t=>{e.addEventListener("load",t),e.addEventListener("error",t)});if(n){const c=document.createElement("script");t=o(c),e.getAttributeNames().forEach(t=>{"src"===t||(c[t]=e[t])}),c.async=!1,c.src=n,e.parentNode.replaceChild(c,e)}const c=e.dataset.href;return c&&(t=o(e),e.href=c),t||Promise.resolve()}function h(e){try{e.cb.call(e.context,c[e.event],...e.args)}catch(e){console.error(e)}}function w(){if(r)return;t&&console.log("Firing Load Events",n),r=!0;const e=n.filter(e=>"readystatechange"===e.event);document.readyState="interactive",e.forEach(e=>h(e));for(const e of n)"DOMContentLoaded"===e.event&&h(e);for(const e of n)"load"===e.event&&h(e);n=[],r=!1,g(()=>{document.readyState="complete",setTimeout(()=>{e.forEach(e=>h(e))},2)})}function g(e){"complete"===(a||document.readyState)?e():o.Window("load",()=>e())}l(),document.addEventListener("pencilazy-load-css",()=>l(!0))})();