-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Description
next-prefetch is a substitute for <Link /> (builds on top of it) that:
- By default prefetches the given component using a
ServiceWorker - It would have an option
prefetch={false}if you want to turn it off - It would have an option
fallbackWorker={true}to fallback to a web worker if the browser doesn't support service workers.
This is the technique that we use at ▲ZEIT to make everything really speedy.
We need to extract it out of our impl or someone can write this from scratch.
Installing a service worker is pretty intrusive, so I don't think this is something we want in core. We can write it as a separate module.
flybayer, michaelhelvey, luhmann, fokusferit, pborreli and 9 moreflybayer, jpadilla, sedubois, ugiacoman, philcockfield and 1 more
Metadata
Metadata
Assignees
Labels
No labels