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

It renders span tag instead of image tag #108

Open
pddt1 opened this issue Aug 14, 2022 · 3 comments
Open

It renders span tag instead of image tag #108

pddt1 opened this issue Aug 14, 2022 · 3 comments

Comments

@pddt1
Copy link

pddt1 commented Aug 14, 2022

image

My code:

image

Hi, I have a problem with LazyLoadImage.
the src attributes is the url of the image svg from cloud.

@cengizilhan
Copy link

it's so weird. cause i tried like your scenario but my scripts is working well.

@dleffel
Copy link

dleffel commented Dec 7, 2022

I have the exact same issue happing in one of my 3 environments. that all run the same code and I can't figure it out what's different.

@dleffel
Copy link

dleffel commented Dec 7, 2022

I figured out my problem. The span was the placeholder, which never was replaced by an image because it wasn't in the viewport. In my case, the image was a 1x1 pixel which was loading in the overflow of a div. Making sure I put the pixel in a place that was actual visible solved the problem for me.

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

3 participants