Skip to content

Commit 6233382

Browse files
authored
fix(gatsby-plugin-image): Fix onload race condition (#29064)
1 parent c76c175 commit 6233382

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/gatsby-plugin-image/src/gatsby-ssr.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export function onRenderBody({ setHeadComponents }: RenderBodyArgs): void {
6868
6969
// if a main image does not have a ssr tag, we know it's not the first run anymore
7070
if (typeof e.target.dataset["gatsbyImageSsr"] === 'undefined') {
71-
document.body.removeEventListener('load', gatsbyImageNativeLoader, true);
7271
return;
7372
}
7473

0 commit comments

Comments
 (0)