An open API service indexing awesome lists of open source software.

https://github.com/jungwoo-an/next-quick-link

⚡️ Nextjs effective prefetch bundle
https://github.com/jungwoo-an/next-quick-link

nextjs performance prefetch quicklink react

Last synced: about 1 month ago
JSON representation

⚡️ Nextjs effective prefetch bundle

Awesome Lists containing this project

README

          

# 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)

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

### Usage

```tsx
import Link from 'next-quick-link';

```

### API

First, check the options of [next/link](https://github.com/zeit/next.js#with-link)

| Name | Type |
| ---------- | ------- |
| rootMargin | string? |
| threshold | number? |

### Inspiration

- [quicklink](https://github.com/GoogleChromeLabs/quicklink)