lazyLoad/lazyLoad.js
// start the lazy load functionality. Change the class and background URL
start the lazy load functionality. Change the class and background URL
start the lazy load functionality . Change the class and background URL
beginLazyLoading(){
		const imageTag = document.getElementById(this._elementID);
		const highResImage = this._highResImageURL
		imageTag.src = highResImage;
		imageTag.addEventListener('load', function() {
			imageTag.className = imageTag.className + ' is-loaded';
		});
	}
beginLazyLoading ( ) { const imageTag = document . getElementById ( this . _elementID ) ; const highResImage = this . _highResImageURL imageTag . src = highResImage ; imageTag . addEventListener ( 'load' , function ( ) { imageTag . className = imageTag . className + ' is-loaded' ; } ) ; }
start the lazy load functionality.
start the lazy load functionality .