1export function lazyload() { 2 function logElementEvent(eventName, element) { 3 console.log(Date.now(), eventName, element.getAttribute("data-src")); 4 } 5 6 var callback_loaded = function (element) { 7 logElementEvent("ð LOADED", element); 8 // Add the 'lazy-container-loaded' class to the grandparent element 9 if (element.parentElement && element.parentElement.parentElement) { 10 element.parentElement.parentElement.classList.add('lazy-container-loaded'); 11 } 12 }; 13 14 var lazyLoadInstance = new LazyLoad({ 15 //container: document.getElementById("smooth-wrapper"), 16 threshold: 500, 17 callback_loaded: callback_loaded, 18 }); 19 lazyLoadInstance.update(); 20}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.