PageSourceSearch

https://learnvietnamesewithannie.com/js/vendor/lazyload/lazyload.min.js

js learnvietnamesewithannie.com collected 2026-10-02 06:38:58 UTC 1,919 bytes, 1 lines download raw bytes

1!function(t,e){"object"==typeof exports?module.exports=e(t):"function"==typeof define&&define.amd?define([],e(t)):t.LazyLoad=e(t)}("undefined"!=typeof global?global:this.window||this.global,function(t){"use strict";var r={src:"data-src",srcset:"data-srcset",selector:".lazyload"},i=function(){var r={},s=!1,t=0,e=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(s=arguments[0],t++);for(var o=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s&&"[object Object]"===Object.prototype.toString.call(t[e])?r[e]=i(!0,r[e],t[e]):r[e]=t[e])};t<e;t++){o(arguments[t])}return r};function s(t,e){this.settings=i(r,e||{}),this.images=t||document.querySelectorAll(this.settings.selector),this.observer=null,this.init()}if(s.prototype={init:function(){if(t.IntersectionObserver){var s=this;this.observer=new IntersectionObserver(function(t){t.forEach(function(t){if(0<t.intersectionRatio){s.observer.unobserve(t.target);var e=t.target.getAttribute(s.settings.src),r=t.target.getAttribute(s.settings.srcset);"img"===t.target.tagName.toLowerCase()?(e&&(t.target.src=e),r&&(t.target.srcset=r)):t.target.style.backgroundImage="url("+e+")"}})},{root:null,rootMargin:"0px",threshold:[0]}),this.images.forEach(function(t){s.observer.observe(t)})}else this.loadImages()},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(this.settings){var s=this;this.images.forEach(function(t){var e=t.getAttribute(s.settings.src),r=t.getAttribute(s.settings.srcset);"img"===t.tagName.toLowerCase()?(e&&(t.src=e),r&&(t.srcset=r)):t.style.backgroundImage="url('"+e+"')"})}},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},t.lazyload=function(t,e){return new s(t,e)},t.jQuery){var e=t.jQuery;e.fn.lazyload=function(t){return(t=t||{}).attribute=t.attribute||"data-src",new s(e.makeArray(this),t),this}}return s});

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.