mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
lazy-image
This commit is contained in:
@@ -85,7 +85,7 @@ export default function LazyImage({
|
||||
}
|
||||
})
|
||||
},
|
||||
{ rootMargin: '10px 0px' } // 轻微提前加载
|
||||
{ rootMargin: '50px 0px' } // 轻微提前加载
|
||||
)
|
||||
if (imageRef.current) {
|
||||
observer.observe(imageRef.current)
|
||||
|
||||
Reference in New Issue
Block a user