developit / developit/preact-scroll-viewport

Possible perf improvements?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
123
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I was wondering why create the array of elements in the first place. Since we are already only rendering the children in the Viewport, why construct all the elements and stuff them in an array in the first place? This way we could save the computing power of reconstructing a huge list in the first place.

Maybe we can pass down the data array directly to `ScrollViewport` and only construct those elements that does actually end up in the Viewport and get rendered?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.