Fetching linked pages' resources after the First User Interaction #32121
Unanswered
RafidMuhymin
asked this question in
Ideas / Feature Requests
Replies: 1 comment 7 replies
-
I'm not sure I follow that, if a user's first action is to click a link then you've lost the ability to prefetch that resource. That would actually dramatically impact the "responsiveness" of moving between pages. I also don't see how using the Intersection Observer is affecting TBT or initial load time. You're just registering a handful of callbacks. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Gatsby fetches linked pages' resources to speed up navigation between pages. It first fetches with lower priority when the Link component enters the user viewport using the Intersection Observer API. And, then it increases the priority when the user hovers over the Link component.
Gatsby does this whether the user interacts with the page or not. But won't it be better if Gatsby prefetches the resources after the First User Interaction? It'll improve the page loading experience greatly by reducing TBT, amount of requests, and load time. It'll prevent bots like GTMetrix and Lighthouse to provide (misleading) results as their bots never interact.
Beta Was this translation helpful? Give feedback.
All reactions