Subscribe to Updates
Get the latest creative news from FooBar about art, design and business.
Author: admin
According to the information shared by online detective ZachXBT, a wallet address was stolen 27 mill…
The world’s leading cryptocurrency exchange, BingX, is pleased to announce its collaboration with As…
Table of Contents
Toggle
Bithumb Plans to Apply for IPO Listing
Continuous Senior Management Issues…
Ethereum Layer 2 network Starknet’s community forum has released an article regarding its V0.12.3 an…
Ethereum Layer 2 network Starknet’s community forum has published an article regarding the upgrades…
Cryptocurrency market saw a significant rebound starting from mid-October. The on-chain transaction…
Bitget Launches
Builders
Global Tour, with the first stop at Technical University of Mombasa. The gl…
Last week, after receiving approval from US regulatory authorities, Coinbase allowed retail investor…
According to information shared by blockchain security company PeckShield, Poloniex exchange has bee…
Written by: mhonkasalo
Translated by: Deep Tide TechFlow
const lazyloadRunObserver = () => {
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 );
} );