mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-05 20:15:31 -04:00
fix: disable prefetching for links across multiple components to improve performance
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user