We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4432c39 commit 4ef8ce1Copy full SHA for 4ef8ce1
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