function lazyJust() {
let item = new IntersectionObserver((entries, imgObserver) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
let lazyImage =
entry.target;
if (lazyImage.getAttribute("data-src").length != "") {
let bg = lazyImage.getAttribute("data-src");
lazyImage.style.backgroundImage = "url(" + bg + ")";
} else {
lazyImage.style.backgroundImage = "url(img/no-foto.svg)";
}
}
});
});
$$(".lazy").forEach((e) => item.observe(e));
}