1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 19:15:30 -04:00

fix: disable prefetching for links across multiple components to improve performance

This commit is contained in:
2025-11-27 11:21:40 -05:00
parent b81a9aca91
commit 5ac49b9fe1
4 changed files with 24 additions and 4 deletions
+7 -2
View File
@@ -13,11 +13,16 @@ const Footer = ({ className, ...rest }: React.ComponentProps<"footer">) => {
>
<div>
Content{" "}
<Link href="/license" className="text-foreground/85 hover:no-underline">
<Link href="/license" prefetch={false} className="text-foreground/85 hover:no-underline">
licensed under {siteConfig.license}
</Link>
,{" "}
<Link href="/previously" title="Previously on..." className="text-foreground/85 hover:no-underline">
<Link
href="/previously"
prefetch={false}
title="Previously on..."
className="text-foreground/85 hover:no-underline"
>
{siteConfig.copyrightYearStart}
</Link>{" "}
2025.
+1
View File
@@ -32,6 +32,7 @@ const MenuItem = ({
return (
<Link
href={href}
prefetch={false}
aria-label={text}
data-current={current || undefined}
className="text-foreground/85 hover:border-b-ring/80 data-current:border-b-primary/60 inline-flex items-center hover:no-underline"