Skip to content

Commit

Permalink
fix(gatsby-plugin-image): Fix onload race condition (#29064)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jan 18, 2021
1 parent c76c175 commit 6233382
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/gatsby-plugin-image/src/gatsby-ssr.tsx
Expand Up @@ -68,7 +68,6 @@ export function onRenderBody({ setHeadComponents }: RenderBodyArgs): void {
// if a main image does not have a ssr tag, we know it's not the first run anymore
if (typeof e.target.dataset["gatsbyImageSsr"] === 'undefined') {
document.body.removeEventListener('load', gatsbyImageNativeLoader, true);
return;
}
Expand Down

0 comments on commit 6233382

Please sign in to comment.