Skip to content

Commit 7d62e43

Browse files
committed
doc: Reduce amount of prefetching
1 parent 868b1ff commit 7d62e43

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

packages/docs/src/app/(pages)/_landing/footer.tsx

+17-9
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,25 @@ export default function Component() {
3838
<h3 className="text-xl font-semibold">Quick Links</h3>
3939
<ul className="space-y-2">
4040
<li>
41-
<Link href="/docs" className="hover:underline">
41+
<Link href="/docs" className="hover:underline" prefetch={false}>
4242
Documentation
4343
</Link>
4444
</li>
4545
<li>
46-
<Link href="/playground" className="hover:underline">
46+
<Link
47+
href="/playground"
48+
className="hover:underline"
49+
prefetch={false}
50+
>
4751
Playground
4852
</Link>
4953
</li>
5054
<li>
51-
<Link href="/stats" className="hover:underline">
55+
<Link
56+
href="/stats"
57+
className="hover:underline"
58+
prefetch={false}
59+
>
5260
Project Stats
5361
</Link>
5462
</li>
@@ -58,31 +66,31 @@ export default function Component() {
5866
<h3 className="text-xl font-semibold">Social</h3>
5967
<ul className="space-y-1">
6068
<li>
61-
<Link
69+
<a
6270
href="https://github.com/47ng/nuqs"
6371
className="inline-flex items-center gap-1 hover:underline"
6472
>
6573
<SiGithub role="presentation" className="mr-2 size-5" />
6674
<span>GitHub</span>
67-
</Link>
75+
</a>
6876
</li>
6977
<li>
70-
<Link
78+
<a
7179
href="https://www.youtube.com/@47ng-dev"
7280
className="inline-flex items-center gap-1 hover:underline"
7381
>
7482
<SiYoutube role="presentation" className="mr-2 size-5" />
7583
<span>YouTube</span>
76-
</Link>
84+
</a>
7785
</li>
7886
<li>
79-
<Link
87+
<a
8088
href="https://bsky.app/profile/nuqs.47ng.com"
8189
className="inline-flex items-center gap-1 hover:underline"
8290
>
8391
<SiBluesky role="presentation" className="mr-2 size-5" />
8492
<span>Bluesky</span>
85-
</Link>
93+
</a>
8694
</li>
8795
</ul>
8896
</div>

packages/docs/src/app/docs/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default function RootDocsLayout({ children }: { children: ReactNode }) {
1717
<Link
1818
href="/blog/nuqs-2"
1919
className="text-blue-900 hover:underline focus-visible:underline focus-visible:outline-none dark:text-blue-100"
20+
prefetch={false}
2021
>
2122
Announcing nuqs v2 !
2223
</Link>

packages/docs/src/app/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default function Layout({ children }: { children: ReactNode }) {
4444
<Link
4545
href="/blog/nuqs-2"
4646
className="decoration-slice decoration-1 transition-all hover:underline hover:underline-offset-8 focus-visible:underline focus-visible:outline-none"
47+
prefetch={false}
4748
>
4849
Announcing nuqs version 2
4950
</Link>

packages/docs/src/app/not-found.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export function NotFoundComponent() {
3737
</p>
3838
</div>
3939
<Button asChild>
40-
<Link href="/">Return to Home</Link>
40+
<Link prefetch={false} href="/">
41+
Return to Home
42+
</Link>
4143
</Button>
4244
</div>
4345
</div>

packages/docs/src/app/playground/layout.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default function PlaygroundLayout({
3636
<Link
3737
href="/blog/nuqs-2"
3838
className="text-blue-900 hover:underline focus-visible:underline focus-visible:outline-none dark:text-blue-100"
39+
prefetch={false}
3940
>
4041
Announcing nuqs v2 !
4142
</Link>

0 commit comments

Comments
 (0)