Wellness Retreats: Mind, Body, and Soul Human Renewal – TravelWaka { if ( window?.ea11yWidget?.widget?.open ) { window.ea11yWidget.widget.open(); } } ); }; const waitingLimit = 30; let retryCounter = 0; const waitForElementorPro = () => { return new Promise( ( resolve ) => { const intervalId = setInterval( () => { if ( retryCounter === waitingLimit ) { resolve( null ); } retryCounter++; if ( window.elementorFrontend && window?.elementorFrontend?.utils?.urlActions ) { clearInterval( intervalId ); resolve( window.elementorFrontend ); } }, 100 ); // Check every 100 milliseconds for availability of elementorFrontend }); }; waitForElementorPro().then( () => { registerAllyAction(); }); ]]> { const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` ); const lazyloadBackgroundObserver = new IntersectionObserver( ( entries ) => { entries.forEach( ( entry ) => { if ( entry.isIntersecting ) { let lazyloadBackground = entry.target; if( lazyloadBackground ) { lazyloadBackground.classList.add( ‘e-lazyloaded’ ); } lazyloadBackgroundObserver.unobserve( entry.target ); } }); }, { rootMargin: ‘200px 0px 200px 0px’ } ); lazyloadBackgrounds.forEach( ( lazyloadBackground ) => { lazyloadBackgroundObserver.observe( lazyloadBackground ); } ); }; const events = [ ‘DOMContentLoaded’, ‘elementor/lazyload/observe’, ]; events.forEach( ( event ) => { document.addEventListener( event, lazyloadRunObserver ); } ); ]]>
Source

By admin