Replying to Avatar hzrd149

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

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

Reply to this note

Please Login to reply.

Discussion

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 🤣🤣