viewport-render-list
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ViewPort Render List

Documentation - livemehere-dev-packs

example

Introduction

This library is a solution for virtual-window depend on viewport and body's scroll position. npm I guarantee this library is really simple.

Most virtual-window solution is quite complex. But most of us just want to improve performance of rendering list with simple way. Of course, if you have to configure many options, you can consider other libraries. like react-window or react-virtualized.

If you want to just improve performance of rendering list, this library is for you. This is depend on viewport, and body's scroll position. Automatically calculate how many item should be rendered, and render only items which are in viewport.

Features

  • Render Infinite list with high performance.
  • Render items only when they are in viewport.
  • Set item's height but auto calculate about extra height of item(sometimes dom has dynamic height)
  • Memorize each item was rendered and has shown in viewport.

Package Sidebar

Install

npm i viewport-render-list

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

42.9 kB

Total Files

8

Last publish

Collaborators

  • livemehere