lazy-image

This commit is contained in:
tangly1024
2024-11-23 15:07:56 +08:00
parent b24befbafd
commit 360a3691a6

View File

@@ -85,7 +85,7 @@ export default function LazyImage({
}
})
},
{ rootMargin: '10px 0px' } // 轻微提前加载
{ rootMargin: '50px 0px' } // 轻微提前加载
)
if (imageRef.current) {
observer.observe(imageRef.current)