Skip to content

Commit

Permalink
Prefetch variants too
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb committed Oct 13, 2023
1 parent 98d00b4 commit 6a71467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/components/VariantSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function VariantSelector({
return (
<Link
key={variant.id}
prefetch={true}
href={isDisabled ? "#" : getHrefForVariant(product, variant)}
className={clsx(
isCurrentVariant
Expand Down

0 comments on commit 6a71467

Please sign in to comment.