the timeline is getting so comfy to scroll through, think I finally figured out the way I want to do virtualized scrolling, preserving resources by not rendering the entire stored timeline, but still having the option to go far into backlog, which is then cleaned up again if you scroll back up

try it out on fedifox.cthu.lu

@f0x oh, that's the exact issue I got so stuck on while writing my client that I haven't done any work on it in almost a year now

Follow

@dysphoricunicorn I got quite stuck on this before too :") None of the virtualized list component libraries seemed to work well with dynamically sized items, so after lots of hacking I wrote something that seems to work quite well now; based on sections of the timeline that are far outside view simplifying to a single fixed height placeholder element (calculated from the rendered toots at the point of hiding), or if it's at the bottom of the timeline, getting removed entirely

@dysphoricunicorn using a bunch of IntersectionObservers and a dynamically changing up to which point the timeline should be truncated, which is advanced by the go deeper button, and reduced when a section should dissappear

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.