psst icon indicating copy to clipboard operation
psst copied to clipboard

Cache playlist to avoid interface loading time

Open gagarine opened this issue 3 years ago • 2 comments
trafficstars

When you click on a playlist, you have to wait about 1s for the interface to load while psst do a network request. This is not the case with "Albums" for example.

I think playlist could be cached (and perhaps all fetched in the background at launch). When you click tracks list could then be instantly display. The network request can be done in the background once you opened a playlist and only if the playlist changed, then the interface could be updated.

This would give a

gagarine avatar Jul 16 '22 10:07 gagarine

This is a nice idea, how would you imagine the playlist gets updated? Just a hard refresh of the view once the request for the playlist is complete?

jacksongoode avatar Aug 17 '22 17:08 jacksongoode

Yes. Hard refresh is certainly fine. One things would be to keep the selected track if the user had the time to select one before the hard refresh happens.

gagarine avatar Aug 18 '22 14:08 gagarine