-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defer prefetching after onload
#5734
Comments
It seems that we are not using |
timneutkens
added a commit
to timneutkens/next.js
that referenced
this issue
Nov 23, 2018
timneutkens
added a commit
that referenced
this issue
Nov 24, 2018
* Use <link rel=“prefetch”> for prefetching Fixes #5734 * Fix unit tests for router * Add test for prefetch * Rename test * Check all logs for message
Neat, left a couple comments on the merged PR. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Per suggestion of @cramforce, we should only start pre-fetching after
onload
triggers (unlessonload
has already triggered ;)).This will prevent the tab spinner from rendering until we've prefetched all linked pages (via
<Link prefetch>
for example).The text was updated successfully, but these errors were encountered: