Skip to content

Jungwoo-An/next-quick-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published