Skip to content

Commit 9040f69

Browse files
sagarnasitsidharthachatterjee
authored andcommitted
fix(gatsby-image): Fix eager loading (#16746)
1 parent a7d1f75 commit 9040f69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/gatsby-image/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ class Image extends React.Component {
294294

295295
const isVisible =
296296
props.critical ||
297+
props.loading == `eager` ||
297298
(isBrowser && (hasNativeLazyLoadSupport || !this.useIOSupport))
298299

299300
this.state = {

0 commit comments

Comments
 (0)