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

Show preview images until the real images have loaded #24

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

luimu64
Copy link

@luimu64 luimu64 commented Jun 17, 2024

Changes only how images work since gifs and videos had custom logic and most gifs already use the preview_url as the thumbnail. I did not add styling since I don't think it's needed. Only issue I found during testing was that when using firefox the src would just randomly not get set even though the links were correct and the interceptionObserver was triggered. This was with heavy network throttling and no cache enabled. The images that failed to get src would eventually load skipping the preview source completely.

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

Successfully merging this pull request may close these issues.

None yet

1 participant