GitShow/developit/preact-virtual-list
developit

preact-virtual-list

:card_index: Virtual List that only renders visible items. Supports millions of rows.

by developit
Star on GitHubForkWebsitenpm

JavaScript

233 stars24 forks2 contributorsQuiet · 6y agoSince 20160.3.1MIT

Meet the team

See all 2 on GitHub →
developit
developit15 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 6y ago
See all on GitHub →
nijatb
scrollToIndex is missingOpenIssue

It would be great if you could add scrollToIndex property which will show list starting from index x. Thank you.

nijatb · 4y ago
chinchang
Work without row heightOpenIssue

What if I don't know row height? Or its variable for all rows?

chinchang · 4y ago
krzepah
MicrobundleOpenPR

Has been tested in a sandbox with link, package.json is taken from unistore's and here are the changes : added node 4 -> 10 in .travis.yml no more rollup config & all kind of other dependencies that were used for the old build system added bundlesize (744B) eslint with developit config unit & e2e test setup with jest (wip) example folder and example command to launch it

krzepah · 6y ago

Recent fixes

View closed PRs →
omriyariv
Clarification - how does overscan reduce DOM operations?ClosedIssue

Is it my understanding from reading the code that overscan will "align" the {startIndex, endIndex} to modulo overscan. However, I can't really see how this reduces any work in the DOM - if a continuous scroll operation results in adding 10 rows, sync mode would add them one by one (in the worst case) and overscan mode would add something like 10 rows in one operations. That sounds to me like the same "amortized" amount of work. Could you please elaborate on why this approach is more performant in terms of DOM operations? Note: I do see an obvious perf optimization in not reconciling the entire visible viewport on each scroll event - but if I understand it correctly that is only VDOM work.

omriyariv · 3y ago
Hydrophobefireman
use objects for style as preact dropped support for stringsMergedPR
Hydrophobefireman · 6y ago
pascalopitz
onScroll event swallowed after upgrade to preact 8.xClosedIssue

The onScroll on my top level element does not get triggered anymore after upgrade to 8.x.

pascalopitz · 9y ago
Structured data for AI agents

Repository: developit/preact-virtual-list. Description: :card_index: Virtual List that only renders visible items. Supports millions of rows. Stars: 233, Forks: 24. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://jsfiddle.net/developit/qqan9pdo/ Latest release: 0.3.1 (10y ago). Open PRs: 1, open issues: 6. Last activity: 6y ago. Community health: 42%. Top contributors: developit.

·@ofershap

Replace github.com with gitshow.dev