rounds.forEach(function (lazyBackground) { lazyBackgroundObserver.observe(lazyBackground); }); } const lazyLoadInstance = new LazyLoad({ // Your custom settings go here }); });