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

Lazy load images #4228

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

WithoutPants
Copy link
Collaborator

Adds loading="lazy" to many card thumbnails and similar images. This means that these images will be loaded when the component comes into view, rather than loading everything at once. Also changes the behaviour of the hover scrubber to only load the vtt and sprites when the user first hovers over the scrubber.

This should improve performance when querying for objects with a large page size.

Should fix #4211

@WithoutPants WithoutPants added the improvement Something needed tweaking. label Oct 18, 2023
@WithoutPants WithoutPants added this to the Version 0.24.0 milestone Oct 18, 2023
@WithoutPants WithoutPants merged commit 298f3d4 into stashapp:develop Oct 23, 2023
2 checks passed
DingDongSoLong4 pushed a commit to DingDongSoLong4/stash that referenced this pull request Oct 25, 2023
* Add lazy loading for many images
* Load sprites on first hover of scrubber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Some scene images are not showing
2 participants