diff options
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 |
commit | 154470c2a71eea2b68f1c029bc6db0230217680d (patch) | |
tree | 99d14fcac737595156e166c3b68295c8ddf244d7 | |
parent | d4b5120dfd4af3bc1c6eb94f2b1859a189f7079c (diff) |
fix threshold requirement for lazy loading
-rw-r--r-- | src/static/lazy-loading.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/lazy-loading.js b/src/static/lazy-loading.js index b04ad7c2..1df56f08 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]); |