mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
polish(theme): MDX images should use async decoding (#9470)
This commit is contained in:
parent
d75f99f9a6
commit
e1899786a4
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue