-
Notifications
You must be signed in to change notification settings - Fork 46
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
For some reason images are getting duplicated #24
Comments
Im having the same issue. A quick work around for me was to target my img elements and apply "background-size: 100%;" |
I too am getting this problem. Is there anyway we can add something to config to stop this happening? |
This is happening for us too. It's only clear something is up when the background-image is not the same size. I'll apply the "background-size: 100%" to handle those (thanks @keithbooher ), but it'd be great if we could prevent duplication in the first place. |
That sounds pretty odd. @omagid-crp / others who still care –
|
@jassa Sure! In the view:
lazyload.js:
Size Discrepancy (only an issue on certain screen sizes): Here's the version information:
And in our Gemfile.lock, here's the version referenced:
Let me know if there's anything important I've left out. |
@omagid-crp You may need to set the width & height in your If that doesn't do the trick, I'd suggest reading more at https://github.com/tuupola/lazyload/blob/d3ad81c12332a0f950c6c703ff975b60350405a4/README.md#blur-up-images Link to 1.9.7 lib docs ^ This gem helps integrate lazyload.js with Rails Good luck! |
Thanks a lot! I appreciate it! |
We are getting and error after implement lazy load for images on our website, is getting the image from the source and putting it as background on style attribute, but is also displaying both images. one under the other.
The text was updated successfully, but these errors were encountered: