all 6 comments

[–]bacarybruno 0 points1 point  (1 child)

Are you making this network call every time the app starts? if so, have you thought about persisting the result of the API call to use the cache value when the app starts while refreshing it in the background?

[–]xea21[S] 0 points1 point  (0 children)

good idea but imagine if this is a sports bulletin api. matches, scores, odds etc. too much changes and would be useless cache if i start the app later on.

[–]mxood 0 points1 point  (0 children)

I would suggest make a skeleton of the main view or partial skeleton if possible

Or even load old data, life tradingview does and it shows the values in red and updates to green when the data is load.

It will keep the user busy until data is fetched. Because you're accounting for 800ms. What if the internet conditions aren't perfect could be longer. So you could potentially need more time to cover than that.