Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 662 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 662 Bytes

Next Quick Link

Nextjs effective prefetch bundle.

How?

  • Detect route in viewport (Intersection Observer)
  • Checks if user connection type is slow (2g or save data mode)

Getting Started

Install via npm (or yarn)

npm install --save-dev next-quick-link

Usage

import Link from 'next-quick-link';

<Link {/* Allow all options of next/link */} />

API

First, check the options of next/link

Name Type
rootMargin string?
threshold number?

Inspiration