This commit is contained in:
Djeex
2025-09-02 23:44:18 +02:00
parent b17652e471
commit 191fa82711
3 changed files with 5 additions and 7 deletions

View File

@ -9,7 +9,6 @@ window.addEventListener("DOMContentLoaded", () => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const img = entry.target;
console.log("Lazy-loading image:", img.dataset.src);
img.src = img.dataset.src;
img.onload = () => {
img.classList.add("loaded");