Skip to content

Commit 18eee38

Browse files
committed
[DEV-23130] Added lazy loading and async decoding to gallery images
1 parent 7650dd9 commit 18eee38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/Media/Media.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export function Media({ className, image, style, title }: Props) {
5555
sizes={`(max-width: 992px) 800px, (max-width: 576px) 400px, 1200px`}
5656
style={style}
5757
title={title}
58+
loading="lazy"
59+
decoding="async"
5860
/>
5961
);
6062
}

0 commit comments

Comments
 (0)