Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Get n numbers of wallpapers from API in advance #628

Open
KAGEYAM4 opened this issue Feb 13, 2024 · 2 comments
Open

[Feature Request] Get n numbers of wallpapers from API in advance #628

KAGEYAM4 opened this issue Feb 13, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@KAGEYAM4
Copy link

Description
Currently wallpaper starts downloading when a new tab page is opened. If mue gets the wallpaper in advanced, then we won't have to wait for image to be downloaded and loaded.

Expected behaviour
Get n number of wallpaper from api in advance.

Design
select n number of prefetching wallpapers from api.

@KAGEYAM4 KAGEYAM4 added the enhancement New feature or request label Feb 13, 2024
@Wessel
Copy link
Member

Wessel commented Feb 14, 2024

I am pretty sure we discussed this a while ago, but we had a storage problem. May be worth looking at now since a lot has changed and from what I could find it may be possible now? @alexsparkes @davidcralph

@davidcralph
Copy link
Member

Wessel is correct - there's a very small amount of storage that can be worked with via localStorage (5-10mb I believe). We're investigating alternative options such as Dexie that could be used to fix a lot of the storage issues with Mue, but it's a very large task so we don't know when it will be done.

Another problem would be the wallpaper would have to be downloaded whilst the user has the tab open. We would need to rely on the user not immediately jumping to another tab and/or having enough internet speed to download the second image after the first one loads. It looks like @eartharoid implemented a feature that gets the next API request in advance, which speeds it up a little?

I think as long as we have a blurred hash image or similar immediately so there's never a black screen, that would be the best solution for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants