jassa / lazyload-rails

jQuery Lazy Load for Rails image_tag helpers
MIT License
265 stars 46 forks source link

Lazyload wont work on aws s3 hosted images #14

Open gabrielboeker opened 6 years ago

gabrielboeker commented 6 years ago

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 commented 6 years ago

Any update on this?

gabrielboeker commented 6 years ago

no, unfortunately its not possible to lazyload external hosted images

jamesachilles commented 5 years ago

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

petitkriket commented 5 years ago

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

gabrielboeker commented 5 years ago

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

roaldjap commented 3 years ago

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?