Skip to content

Commit

Permalink
polish(theme): MDX images should use async decoding (#9470)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaiyan-dev authored Jan 12, 2024
1 parent d75f99f commit e189978
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function MDXImg(props: Props): JSX.Element {
return (
// eslint-disable-next-line jsx-a11y/alt-text
<img
decoding="async"
loading="lazy"
{...props}
className={transformImgClassName(props.className)}
Expand Down

0 comments on commit e189978

Please sign in to comment.