From 8cda9c549839b86e5c79cc1eaa50672dc88820b8 Mon Sep 17 00:00:00 2001 From: XPoet Date: Thu, 7 Jan 2021 15:25:38 +0800 Subject: [PATCH] perf: modified lazyload throttle time when window scroll --- source/js/lazyload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/lazyload.js b/source/js/lazyload.js index 40ead8e..c6967ee 100644 --- a/source/js/lazyload.js +++ b/source/js/lazyload.js @@ -34,7 +34,7 @@ KEEP.initLazyLoad = () => { lazyload(imgs); window.onscroll = () => { - if (Date.now() - now > 100 && needLoad) { + if (Date.now() - now > 50 && needLoad) { lazyload(imgs); } }