Skip to content

Commit

Permalink
Merge pull request #715 from cevznriny/development
Browse files Browse the repository at this point in the history
img loading='lazy'
  • Loading branch information
tymmesyde authored Oct 31, 2024
2 parents e841707 + b913054 commit efa6d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/Image/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const Image = ({ className, src, alt, fallbackSrc, renderFallback, ...props }) =
typeof renderFallback === 'function' ?
renderFallback()
:
<img {...props} className={className} src={fallbackSrc} alt={alt} />
<img {...props} className={className} src={fallbackSrc} alt={alt} loading='lazy'/>
:
<img {...props} className={className} src={src} alt={alt} onError={onError} />;
<img {...props} className={className} src={src} alt={alt} loading='lazy' onError={onError} />;
};

Image.propTypes = {
Expand Down

0 comments on commit efa6d63

Please sign in to comment.