diff --git a/html/poketube.ejs b/html/poketube.ejs index 286a0ee9..1c2eccf1 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1823,20 +1823,6 @@ if (/[?&]autoplay=/.test(location.search)) { } <% } %> -const lazyElements = document.querySelectorAll('*'); - -const observer = new IntersectionObserver((entries, observer) => { - entries.forEach(entry => { - if (entry.isIntersecting) { - entry.target.classList.add('loaded'); - observer.unobserve(entry.target); - } - }); -}); - -lazyElements.forEach(element => { - observer.observe(element); -});