Hacker News new | ask | show | jobs
by hakanito 2428 days ago
Since you mention scrolling, it sounds like you are rendering a lot of off-screen content... Have you looked into solutions like react-virtualized? It can definitely speed up the experience
2 comments

It looks like React concurrent mode also deprioritizes the rendering of off-screen content for you. (I've been browsing the react reconciler source this morning...)
I haven't; the amount of magic going on makes me a little wary, but it does seem like it could be a good solution. Maybe I'll give it a try.
Lazy rendering is way less magic than this concurrent work, plus it's something that is usefull everywhere.
React concurrent mode does this out of the box from what I can see.