Nextjs effective prefetch bundle.
- Detect route in viewport (Intersection Observer)
- Checks if user connection type is slow (2g or save data mode)
npm install --save-dev next-quick-link
import Link from 'next-quick-link';
<Link {/* Allow all options of next/link */} />
First, check the options of next/link
Name | Type |
---|---|
rootMargin | string? |
threshold | number? |