Skip to content

Commit c456fbe

Browse files
committed
🎈 perf: add lazy loaging to cover images of articles
1 parent da602e3 commit c456fbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/layouts/MarkdownPostLayout.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ const postLayoutProps = { ...i18n, SEO_TITLE, SEO_DESCRIPTION };
5858
{...frontmatter.image}
5959
height="520"
6060
width="925"
61+
loading="lazy"
6162
/>
6263
<article
6364
class="prose prose-custom mb-10 max-w-none break-words dark:prose-invert lg:prose-base prose-img:mx-auto"

0 commit comments

Comments
 (0)