diff --git a/packages/gatsby-plugin-image/src/components/gatsby-image.browser.tsx b/packages/gatsby-plugin-image/src/components/gatsby-image.browser.tsx index 247359f39333e..f31269ed51c70 100644 --- a/packages/gatsby-plugin-image/src/components/gatsby-image.browser.tsx +++ b/packages/gatsby-plugin-image/src/components/gatsby-image.browser.tsx @@ -60,6 +60,7 @@ export const GatsbyImageHydrator: FunctionComponent = function image, onLoad: customOnLoad, backgroundColor, + loading = `lazy`, ...props }) { if (!image) { @@ -169,6 +170,7 @@ export const GatsbyImageHydrator: FunctionComponent = function toggleIsLoaded(true) }, ref, + loading, ...props, }, root, diff --git a/packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx b/packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx index 96dcf8a8193b7..3cff538bc7c88 100644 --- a/packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx +++ b/packages/gatsby-plugin-image/src/components/lazy-hydrate.tsx @@ -59,7 +59,7 @@ export function lazyHydrate( } const cacheKey = JSON.stringify(images) - const hasLoaded = !hydrated.current && hasImageLoaded(cacheKey) + const hasLoaded = hasImageLoaded(cacheKey) imgStyle = { objectFit,