« get me outta code hell

fix threshold requirement for lazy loading - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-01-05 20:10:51 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-05 20:10:51 -0400
commit154470c2a71eea2b68f1c029bc6db0230217680d (patch)
tree99d14fcac737595156e166c3b68295c8ddf244d7
parentd4b5120dfd4af3bc1c6eb94f2b1859a189f7079c (diff)
fix threshold requirement for lazy loading
-rw-r--r--src/static/lazy-loading.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/lazy-loading.js b/src/static/lazy-loading.js
index b04ad7c..1df56f0 100644
--- a/src/static/lazy-loading.js
+++ b/src/static/lazy-loading.js
@@ -37,7 +37,7 @@ function lazyLoadMain() {
   if (window.IntersectionObserver) {
     observer = new IntersectionObserver(lazyLoad, {
       rootMargin: '200px',
-      threshold: 1.0,
+      threshold: 0,
     });
     for (i = 0; i < lazyElements.length; i++) {
       observer.observe(lazyElements[i]);