-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use <link rel=“prefetch”> for prefetching (#5737)
* Use <link rel=“prefetch”> for prefetching Fixes #5734 * Fix unit tests for router * Add test for prefetch * Rename test * Check all logs for message
- Loading branch information
1 parent
401594e
commit cad19c8
Showing
7 changed files
with
98 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Link from 'next/link' | ||
|
||
export default () => { | ||
return <div> | ||
<ul> | ||
<li> | ||
<Link href='/' prefetch> | ||
<a>index</a> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href='/process-env' prefetch> | ||
<a>process env</a> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href='/counter' prefetch> | ||
<a>counter</a> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href='/about' prefetch> | ||
<a>about</a> | ||
</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters