Commit fb6694f6 authored by tom's avatar tom

lazy load images

parent cdfb064e
...@@ -24,6 +24,10 @@ async function headers() { ...@@ -24,6 +24,10 @@ async function headers() {
key: 'Cross-Origin-Opener-Policy', key: 'Cross-Origin-Opener-Policy',
value: 'same-origin', value: 'same-origin',
}, },
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
], ],
}, },
]; ];
......
...@@ -63,6 +63,7 @@ const NftImage = ({ url, className, fallbackPadding, objectFit }: Props) => { ...@@ -63,6 +63,7 @@ const NftImage = ({ url, className, fallbackPadding, objectFit }: Props) => {
fallback={ url && isLoading ? <Skeleton/> : <Fallback className={ className } padding={ fallbackPadding }/> } fallback={ url && isLoading ? <Skeleton/> : <Fallback className={ className } padding={ fallbackPadding }/> }
onError={ handleLoadError } onError={ handleLoadError }
onLoad={ handleLoad } onLoad={ handleLoad }
loading="lazy"
/> />
</AspectRatio> </AspectRatio>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment