perf: modified lazyload throttle time when window scroll
This commit is contained in:
parent
5b925fd5d1
commit
8cda9c5498
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue