custom-cards / spotify-card

Spotify playlist card for Home Assistant card
Other
362 stars 61 forks source link

Excessive card loading time #178

Open ChirpyTurnip opened 2 years ago

ChirpyTurnip commented 2 years ago

Hi,

This isn't really a bug, but it does bug me....

Every time I flip onto the page that has the Spotify card the card is displayed as empty...then after a few seconds it shows a series of black Spotify logos, then a few seconds later those icons turn into playlist pictures.... Then it will be fine and the data is cached....but a little while later if I go back the pattern repeats. This suggests that the browser is caching the data, but closing a tab for example will cause the data to be lost resulting in a need to 're-fetch' the playlist data. Is there any way that this data could be cached in HA, with a possible 'Refresh' button on the card to pull a playlist update? That would make this a lot smoother to use!

CP.