123movies-seo/resources/js/img.js

21 lines
579 B
JavaScript
Raw Normal View History

2024-08-24 23:08:42 +03:00
import LazyLoad from 'vanilla-lazyload';
2024-08-26 20:50:06 +03:00
window.LazyLoad = LazyLoad;
2024-08-24 23:08:42 +03:00
// (() => {
// document.addEventListener('readystatechange', event => {
// if (document.readyState === "complete") {
2024-08-26 20:50:06 +03:00
window.lLoad = new window.LazyLoad({
2024-08-24 23:08:42 +03:00
elements_selector: ".lazy",
2024-09-09 17:24:50 +03:00
// unobserve_entered: true,
2024-08-24 23:08:42 +03:00
// use_native: true,
// load_delay: 100,
// effect : "fadeIn"
// ... more custom settings?
2024-09-09 17:24:50 +03:00
// threshold: 0,
2024-08-24 23:08:42 +03:00
});
// }
// });
// })();