From 94f39587501404f564511dd2fdc77c90efca99d1 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sat, 26 Jul 2025 12:07:19 +0000
Subject: fix: Avoid prefetching assets and tags in the link component. Fixes
 #1759

---
 apps/web/components/dashboard/preview/AttachmentBox.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'apps/web/components/dashboard/preview/AttachmentBox.tsx')

diff --git a/apps/web/components/dashboard/preview/AttachmentBox.tsx b/apps/web/components/dashboard/preview/AttachmentBox.tsx
index 674f151c..87c56eb8 100644
--- a/apps/web/components/dashboard/preview/AttachmentBox.tsx
+++ b/apps/web/components/dashboard/preview/AttachmentBox.tsx
@@ -98,6 +98,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) {
               target="_blank"
               href={getAssetUrl(asset.id)}
               className="flex items-center gap-1"
+              prefetch={false}
             >
               {ASSET_TYPE_TO_ICON[asset.assetType]}
               <p>{humanFriendlyNameForAssertType(asset.assetType)}</p>
@@ -109,6 +110,7 @@ export default function AttachmentBox({ bookmark }: { bookmark: ZBookmark }) {
                 href={getAssetUrl(asset.id)}
                 className="flex items-center gap-1"
                 download={humanFriendlyNameForAssertType(asset.assetType)}
+                prefetch={false}
               >
                 <Download className="size-4" />
               </Link>
-- 
cgit v1.2.3-70-g09d2

