Skip to content

Commit a6607a7

Browse files
committed
perf: prefetch next page
1 parent e99ac3a commit a6607a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pages/articles/[...page].astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const { page } = Astro.props;
2929
href={page.url.prev}
3030
class:list={["join-item btn", !page.url.prev && "invisible"]}
3131
aria-hidden={!page.url.prev}
32+
data-astro-prefetch="viewport"
3233
>
3334
«
3435
</a>
@@ -37,6 +38,7 @@ const { page } = Astro.props;
3738
href={page.url.next}
3839
class:list={["join-item btn", !page.url.next && "invisible"]}
3940
aria-hidden={!page.url.next}
41+
data-astro-prefetch="load"
4042
>
4143
»
4244
</a>

0 commit comments

Comments
 (0)