gossip icon indicating copy to clipboard operation
gossip copied to clipboard

Preload main feed data on startup

Open dtonon opened this issue 1 year ago • 5 comments

When the user unlocks the private key or just skip the login, he faces an empty page with a (useless) "load more" button for some seconds: image

Can we start fetching the data immediately when Gossip starts, at least if the user didn't select "Start in offline mode" in a previous session?

If that is not possibile, we can fallback with a better loading view

dtonon avatar May 02 '24 16:05 dtonon

@mikedilger this needs your approval :)

/cc @bu5hm4nn

dtonon avatar May 02 '24 16:05 dtonon

I don't think we should load the data immediately, I think the 'loading' screen @bu5hm4nn just did ( that you designed ) is sufficient.

We could load local database events, but it's complexity and complexity that makes gossip harder and harder to maintain.

mikedilger avatar May 02 '24 22:05 mikedilger

Well we could load a local cache version of the feed and then update to the live later?

bu5hm4nn avatar May 02 '24 22:05 bu5hm4nn

@mikedilger

I don't think we should load the data immediately,

Is it for a specific reason? Just to understand your pov.

Well we could load a local cache version of the feed and then update to the live later?

Actually, if I access "offline" the feed is immediately available, so the db data is already used in this case. Showing it could be a solution, but you will have a refresh in some seconds and since the feed auto scrolls, you will loose the context. I would avoid that.

It's not a critical point of course, just a nice touch.

dtonon avatar May 03 '24 05:05 dtonon

I can't reproduce. If I start in offline mode I see all the local notes just fine. I don't see any useless empty feed.

mikedilger avatar May 09 '24 01:05 mikedilger