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 fe4cd06 commit 1443ecdCopy full SHA for 1443ecd
packages/gatsby-plugin-image/src/components/gatsby-image.browser.tsx
@@ -60,6 +60,7 @@ export const GatsbyImageHydrator: FunctionComponent<GatsbyImageProps> = function
60
image,
61
onLoad: customOnLoad,
62
backgroundColor,
63
+ loading = `lazy`,
64
...props
65
}) {
66
if (!image) {
@@ -169,6 +170,7 @@ export const GatsbyImageHydrator: FunctionComponent<GatsbyImageProps> = function
169
170
toggleIsLoaded(true)
171
},
172
ref,
173
+ loading,
174
...props,
175
176
root,
packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx
@@ -59,7 +59,7 @@ export function lazyHydrate(
59
}
const cacheKey = JSON.stringify(images)
- const hasLoaded = !hydrated.current && hasImageLoaded(cacheKey)
+ const hasLoaded = hasImageLoaded(cacheKey)
imgStyle = {
objectFit,
0 commit comments