Skip to content
Discussion options

You must be logged in to vote

I would not recommend this (your sites perceived performance is more important than Lighthouse), but you could disable link prefetching which would then not add that <link> to your page. By default Next will add these prefetch <link> tags for each one of your next/link components on a page. This speeds up navigation to the next page. Here is how you disable it:

import Link from 'next/link'

<Link href="/your-page" prefetch={false}><a>My link</a></Link>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vasconx
Comment options

Answer selected by jamesmosier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants