Skip to content

Commit 209806c

Browse files
committed
试图提前加载图片
1 parent e2c25ac commit 209806c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { description, keywords ,selected} = Astro.props;
2929
<slot />
3030
<!-- <hr style="width:600px;color:#808080; margin-top: 1rem;" /> -->
3131
<footer>
32-
<Image class="gopher" src={gopherImage} height=32 alt="bust" title="这个博客和 Golang 没有任何关系,但是土拨鼠很可爱"/>
32+
<Image class="gopher" src={gopherImage} height=32 alt="gopher" title="这个博客和 Golang 没有任何关系,但是土拨鼠很可爱" loading="eager"/>
3333
<!-- <Image src={notByAi} alt="not-by-ai" /> -->
3434
<p>&copy; 2024-2025</p>
3535
<p>LingLambda</p>

src/pages/lab.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const links = [
1717
<main>
1818
偶尔会在这乱写
1919
<div id="tac-say">
20-
<Image src={tacImage} alt="Ling avatar" width="128" height="128" />
20+
<Image src={tacImage} alt="Ling avatar" width="128" height="128" loading="eager"/>
2121
<div class="chat-bubble"></div>
2222
</div>
2323
<DropMenu btnName="menu" links={links} />

0 commit comments

Comments
 (0)