We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6f421 commit 58c161cCopy full SHA for 58c161c
packages/next/client/image.tsx
@@ -64,6 +64,7 @@ function getObserver(): IntersectionObserver | undefined {
64
if (lazyImage.dataset.srcset) {
65
lazyImage.srcset = lazyImage.dataset.srcset
66
}
67
+ lazyImage.style.visibility = 'visible'
68
lazyImage.classList.remove('__lazy')
69
cachedObserver.unobserve(lazyImage)
70
@@ -251,6 +252,7 @@ export default function Image({
251
252
paddingBottom: `${ratio}%`,
253
254
imgStyle = {
255
+ visibility: lazy ? 'hidden' : 'visible',
256
height: '100%',
257
left: '0',
258
position: 'absolute',
0 commit comments