polish(theme): MDX images should use async decoding (#9470)

This commit is contained in:
Sanjaiyan Parthipan 2024-01-13 01:55:18 +05:30 committed by GitHub
parent d75f99f9a6
commit e1899786a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)}