Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
perf: ⚡ lazy-loading external images in content
Browse files Browse the repository at this point in the history
  • Loading branch information
filipowm committed Jul 3, 2020
1 parent d345364 commit bd36713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdxComponents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
em: emphasis,
img: (props) => (
<a href={props.src} target="_blank" rel="noopener noreferrer">
<img {...props} />
<img loading={'lazy'} {...props} />
</a>
),
code: CodeBlock,
Expand Down

0 comments on commit bd36713

Please sign in to comment.