thinker3197 / progressively

A JavaScript library to load images progressively 🌇
https://thinker3197.github.io/progressively
MIT License
698 stars 68 forks source link

Does progressively support img srcset's #1

Closed sphism closed 7 years ago

sphism commented 7 years ago

Just wondering if progressively supports img srcset's, or html5 picture element with a list of sources.

Looks like a great little library.

thinker3197 commented 7 years ago

@sphism I will try to extend support for img srcset attribute within a few days.

sphism commented 7 years ago

Oh wow. That would be great. I used the picture element on a recent project and it's amazing but in hindsight I think it was overkill and img src sets seem to be the recommended approach.

Would be neat if you could just add a tiny image to the srcset and progressively picked that up as the initial image ???

On 5 Oct 2016, at 20:59, Ashish notifications@github.com wrote:

@sphism I will try to extend support for img srcset attribute within a few days.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

thinker3197 commented 7 years ago

I'll try to make the suggested enhancements. Will have to make sure that this is a much used feature and would be helpful to add. Thanks for you suggestions @sphism. Closing issue now.

jitendersandhu commented 7 years ago

@thinker3197 Any updates on support for picture element? Is this already added as a feature in recent releases?

thinker3197 commented 7 years ago

The <picture> is currently an experimental feature. At the moment, progressively doesn't aim to add any features that are experimental and has limited browser support. ref: https://developer.mozilla.org/en/docs/Web/HTML/Element/picture