perf: deactivate prefetch

This commit is contained in:
jinhojang6 2024-12-17 00:41:19 +09:00
parent 82c1e363a0
commit ba9bbc93e1
2 changed files with 6 additions and 1 deletions

View File

@ -92,7 +92,11 @@ const OperatorCard: React.FC<OperatorCardProps> = ({
return (
<Container key={operator.id}>
<Link href={`/operators/${operator.id}`} key={operator.id}>
<Link
href={`/operators/${operator.id}`}
key={operator.id}
prefetch={false}
>
<OperatorImage
src={isDegenMode ? operator?.pixelated : operator?.gif}
data-src={isDegenMode ? operator?.pixelated : operator?.gif}

View File

@ -71,6 +71,7 @@ const OperatorGrid: React.FC<OperatorGridProps> = ({ data, isLoading }) => {
<Link
href={`/operators/${operator.id}`}
key={'explore-operator-' + index}
prefetch={false}
>
<GridItem ref={lastElementRef}>
<img