Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/prefetch-not-everything.md
1---2title: Prefetch by Intent, Not Viewport3impact: HIGH4tags: prefetch, viewport, intent, bundle-size5---67## Prefetch by Intent, Not Viewport89Don't prefetch everything visible in the viewport. Prefetch based on user intent to avoid wasted bandwidth.1011**Incorrect (prefetch all visible links):**1213```tsx14<Link href="/page" prefetch={true}>Page</Link>15```1617**Correct (intent-based prefetching):**1819```tsx20<Link href="/page" prefetch={false}>Page</Link>21// Let trajectory/hover prediction handle it22```23