Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLHpPQrKPUewGdqNgK98B6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Catalog and diff pages shared the [...parts] route, so its App Shell painted a diff skeleton before every catalog page. Rewrite catalog-shaped paths to an internal /-/catalog/[...parts] route with the catalog skeleton as its shell, and redirect the internal path to the public one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLHpPQrKPUewGdqNgK98B6
oBusk
force-pushed
the
partial-prefetching
branch
from
October 22, 2026 20:50
3f61803 to
e043a63
Compare
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts Partial Prefetching from Next.js 16.4. With it on, a default
<Link>prefetches the route's static App Shell, which is shared by every link to that route, instead of each link prefetching its own URL.Changes
partialPrefetching: Next 16.4 warns whencacheComponentsis on without it set, and it becomes the default in Next 17.[...parts]: the shell used to be an empty<Suspense>. It now has a skeleton shaped like the top of the diff page, so clicking any diff or catalog link paints immediately.prefetch={false}from the catalog's suggested diffs and the split/unified toggle. A default prefetch now only fetches the shared shell, so these opt-outs no longer prevent any server work.prefetch={true}on the home page examples, only while the options are at their defaults. Each example gets a full prefetch from cached content. With custom options, typing in the Files field would trigger a fresh diff on the server for every keystroke, so those links fall back to the shell prefetch.router.prefetch(url, { kind: "full" }). This is the same full prefetch as<Link prefetch={true}>, so pressing Diff is instant once it has finished (it skips custom options, like the examples).ensureStatic = "navigation"on/and the/-/aboutpages, so the build fails if they accidentally become dynamic.Testing (preview vs. production)
In DevTools, open the Network tab, filter on
_rsc, and throttle to Slow 4G.@types/node…examplelodash@4.17.0...4.17.21/is-even)Measured locally on a production build: about 100 ms from click to diff for the canonical example (before: about 700 ms), and about 50 ms from click to skeleton for catalog links.
Server cost: each home page view sends up to 4 extra requests for the example prefetches, which are normally cache hits. On a cold cache, such as right after a deploy, a prefetch computes the example diff, which the first click would have done anyway.
🤖 Generated with Claude Code