What is Nostr?
hzrd149 /
npub1ye5…knpr
2023-09-24 16:41:10

hzrd149 on Nostr: It is soooo satisfying when you finally fix a performance issue 😁 There's been a ...

It is soooo satisfying when you finally fix a performance issue 😁

There's been a performance issue in #noStrudel for a long time now. if you navigate back to the main timeline view it would freeze up while it tried to render the whole cached timeline. It made the client almost unusable on mobile.
Here is an example where you can see its all jerky and the browser is struggling


Well 100 lines of code later and now it only loads the first few notes when you navigate back the main timeline


The only downside is it no longer works with scroll restoration. so when you navigate into a thread and then back It will start at the top instead of where you left off.
Its a small price to pay for performance though 😃

If you want to test it out these changes are only in the alpha version. I have to make sure I didn't break anything
Author Public Key
npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr