Skip to content

Disable default NextJS link prefecth #51

@kuuak

Description

@kuuak

next.js v14 link prefetch method will automatically prefetch all links in viewport, which could drastically load visitor network.

In a specific project we experiences more than 2.2MB downloaded for prefetch links.

Therefore we could introduce a tweak to disable default prefetch behavior and have the prefetch as Next.js v13 where links are prefetched only on hover.

see https://github.com/superhuit-agency/eca-vaud.ch/commit/0b5bee42c11afcd2da266318f9b8a76b98525dc9

What are your thoughts?

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions