Next.js Discord

Discord Forum

Persist layout without prefetching

Unanswered
Pacific herring posted this in #help-forum
Open in Discord
Pacific herringOP
I have a homepage with many links to large pages, so prefetching is taking a ton of bandwidth. However, we also have a persistent audio player in root layout that I'd like to persist across pages without interrupting audio. But if I set Links to prefetch={false}, it doesn't persist the audio. Is there a way to disable prefetching but not have Links act like regular a elements?

0 Replies