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

https://v.nostr.build/n20g.webm

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

https://v.nostr.build/0BOv.webm

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

Reply to this note

Please Login to reply.

Discussion

#noStrudel is my desktop client now. Still just reading, I'm afraid of logging in with my nsec and losing some configuration. 👊

Don't use nsec unless you have to, use a browser extention instead and manually approve each event

Yes, I have Alby. But once at another client I had a bad experience and I was traumatized 🤣🤣

Bravo! 👏👏I was having a little problem with nostrudel lately, when I'm browsing my timeline and stop to read a note, the constant flow of new notes that automatically appear in the feed makes me lose focus on what I'm reading because the note moves down

Maybe a button to show new notes could be good.

Already built that, I just forgot to mention it 😁