Skip to content

Document next-prefetch #24

@rauchg

Description

@rauchg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions