From 154470c2a71eea2b68f1c029bc6db0230217680d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 5 Jan 2023 20:10:51 -0400 Subject: fix threshold requirement for lazy loading --- src/static/lazy-loading.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/static/lazy-loading.js') 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]); -- cgit 1.3.0-6-gf8a5