Skip to content

Commit 461ba02

Browse files
docs: improve prefetching definition for clarity
Problem: The current definition, "Prefetching is the process of loading a route in the background..." relies on somewhat unclear terminology. The phrase "loading a route" comes across as rather ambiguous. Solution: Aligned with the updated definition: "Prefetching is the process of preloading route data and components in the background..." This phrase explains what prefetching does, i.e.,. i. Route data (from data fetching functions) ii. Components (JavaScript bundles and React components) Benefits: The updated definition aligns with NextJS's actual prefetching behavior
1 parent 98c5c8d commit 461ba02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/01-app/01-getting-started/04-linking-and-navigating.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The trade-off of server rendering is that the client must wait for the server to
3535
3636
### Prefetching
3737

38-
Prefetching is the process of loading a route in the background before the user navigates to it. This makes navigation between routes in your application feel instant, because by the time a user clicks on a link, the data to render the next route is already available client side.
38+
Prefetching is the process of preloading route data and components in the background before the user navigates to it. This makes navigation between routes in your application feel instant, because by the time a user clicks on a link, the data to render the next route is already available client side.
3939

4040
Next.js automatically prefetches routes linked with the [`<Link>` component](/docs/app/api-reference/components/link) when they enter the user's viewport.
4141

0 commit comments

Comments
 (0)