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

Image not loading if it is the first in-view element #154

Open
lileeDev opened this issue Jul 22, 2022 · 0 comments
Open

Image not loading if it is the first in-view element #154

lileeDev opened this issue Jul 22, 2022 · 0 comments

Comments

@lileeDev
Copy link

First of all, thank you for such good work. Appreciate it !

I am new to Svelte. Recently I am using Svelte and svelte-image to build a website. I have a hero banner and a custom scroller implemented. I keep all the default settings with svelte-image. The image in the hero banner is not loading at first. After I scroll down and scroll up, it finally loads and displays properly.

Since there are other setups in my project, I can't duplicate an exact example. But I created a similar one, please see below.
https://svelte.dev/repl/c8006d110c1b42979a5de14680734c98?version=3.49.0

You may see that the image in the first section is with lazy={false} and it is perfectly loaded as expected. But the image in section 4 with default settings is not being loaded (even it is scrolled completely). You may also try to twist the lazy setting in section 1 for testing.

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

No branches or pull requests

1 participant