Skip to content

Commit 44b6050

Browse files
committed
pref: add throttle to IntersectionObserver
1 parent 3194ecb commit 44b6050

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/lazy-load.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class LazyLoader {
1818

1919
const entry = entries[0]
2020
const DELAY_TIME = 260
21+
2122
if (entry.intersectionRatio >= 0) {
2223
this.timer = setTimeout(() => {
2324
this.handler()

0 commit comments

Comments
 (0)