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

Lazyload wont work on aws s3 hosted images #14

Open
gabrielboeker opened this issue Jan 24, 2018 · 6 comments
Open

Lazyload wont work on aws s3 hosted images #14

gabrielboeker opened this issue Jan 24, 2018 · 6 comments

Comments

@gabrielboeker
Copy link

title pretty much says it all. the grey square will stay if you try to apply the lazyload helper on dynamic images like

<%= image_tag(@post.image1, lazy: true) %>

images are stored via paperclip on aws s3.

@redlightmikey
Copy link

Any update on this?

@gabrielboeker
Copy link
Author

no, unfortunately its not possible to lazyload external hosted images

@jamesachilles
Copy link

Has anyone had any luck with S3 hosted images? or any update here? Thanks

@petitkriket
Copy link

petitkriket commented Jul 15, 2019

no luck either, has anyone know of an alternative or work around ?

@gabrielboeker
Copy link
Author

use a different library. the gem is pretty neat except of that.

@roaldjap
Copy link

roaldjap commented Apr 29, 2021

have you initialized your lazyload(); on this?

I believe you need this to trigger it so it would "lazyload" your images.

just wondering what would be the compiled version of <%= image_tag(@post.image1, lazy: true) %>

I was just thinking @post.image1 would return some sort of url right?

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

5 participants