responsive_image_tag icon indicating copy to clipboard operation
responsive_image_tag copied to clipboard

Placeholder element - why not an IMG?

Open chrisjacob opened this issue 14 years ago • 2 comments

I've been thinking of a very similar technique (you guys beat me to it - well done!). I wonder tho why your using SPAN and not an IMG tag (without src and alt attributes) as the placeholder?

chrisjacob avatar Sep 23 '11 05:09 chrisjacob

Also lazy loading is where this technique I feel could outshine other responsive image techniques... See https://github.com/sebarmeli/JAIL ... Need a non jquery solution tho to be mobile friendly.

chrisjacob avatar Sep 23 '11 05:09 chrisjacob

Hi Chris, there's no real reason for the span over an empty img, if I remember right Mairead was just using it so we could see what was going on more easily. We've been asked about the span a few times now, so maybe it'd make sense to switch to something else :).

Doing it without any js framework to lighten things up is a good idea - we'll look at this in the new year.

Thanks for the link to JAIL, I hadn't seen that before!

futurechimp avatar Dec 30 '11 11:12 futurechimp