Skip to content
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

Is it possible to prefetch pages with <Link> but applying a delay? #23165

Closed
kuworking opened this issue Apr 16, 2020 · 2 comments
Closed

Is it possible to prefetch pages with <Link> but applying a delay? #23165

kuworking opened this issue Apr 16, 2020 · 2 comments
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@kuworking
Copy link

If the Link elements are on top of pages, prefetching occurs immediately

I was wondering whether it is possible to start the prefetching with a specific delay, so that page loads faster and becomes responsive earlier

@kuworking kuworking added the type: question or discussion Issue discussing or asking a question about Gatsby label Apr 16, 2020
@freiksenet
Copy link
Contributor

Page should be interactive even when links are loading - do you have a reproduction where you have interactivity problem because of link preloading?

@freiksenet freiksenet added the status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. label Apr 16, 2020
@wardpeet
Copy link
Contributor

@kuworking Prefetch shouldn't necessary slow down your page load as it's prioritized low by the browser. However, they can interfere with resources embedded in the react tree.

This is a duplicate of #12850. I'll be closing this one. Thank you for opening!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants