perf: désactiver le prefetch next/link sur la sidebar des paroles
This commit is contained in:
@@ -20,6 +20,7 @@ export default function MizikLyen({niAwtis, anPawol, kuveti, slug, meteEsMobilOu
|
||||
return (
|
||||
<Link
|
||||
passHref
|
||||
prefetch={false}
|
||||
href={`/paroles/${anPawol.slug}#${anPawol.slug}`}
|
||||
style={{textDecoration: 'none', width: '100%', display: 'flex', alignItems: 'center'}}
|
||||
onClick={() => meteEsMobilOuve(false)}
|
||||
|
||||
@@ -82,7 +82,7 @@ export default function TeksDrawer({paroles}) {
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
{parole && (
|
||||
<Link passHref href='/paroles'>
|
||||
<Link passHref prefetch={false} href='/paroles'>
|
||||
<IconButton aria-label='return' size='medium'>
|
||||
<KeyboardBackspaceIcon style={{fontSize: '1.5em'}} />
|
||||
</IconButton>
|
||||
|
||||
Reference in New Issue
Block a user