perf: modified lazyload throttle time when window scroll

This commit is contained in:
XPoet 2021-01-07 15:25:38 +08:00
parent 5b925fd5d1
commit 8cda9c5498
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ KEEP.initLazyLoad = () => {
lazyload(imgs); lazyload(imgs);
window.onscroll = () => { window.onscroll = () => {
if (Date.now() - now > 100 && needLoad) { if (Date.now() - now > 50 && needLoad) {
lazyload(imgs); lazyload(imgs);
} }
} }