Skip to content

Commit

Permalink
Add data-nimg attribute to image component
Browse files Browse the repository at this point in the history
  • Loading branch information
atcastle committed Aug 9, 2021
1 parent 1969124 commit ff6402d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/client/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ export default function Image({
loader,
})}
decoding="async"
data-nimg
style={imgStyle}
className={className}
/>
Expand All @@ -616,6 +617,7 @@ export default function Image({
{...rest}
{...imgAttributes}
decoding="async"
data-nimg
className={className}
ref={(img) => {
setRef(img)
Expand Down

0 comments on commit ff6402d

Please sign in to comment.