Hi there,
At first I thought about something with media queries ; using a span (or some other tag) as a replacement for the img tag. Then defining background-images using media queries to serve high res or normal image file.
http://pastebin.com/5zYMS8vk
But after reading Lea Verou’s article on attr() – http://goo.gl/riHV4,
I’m wondering if we could use the css attr() function to inject the HD image url into the background-image property ?
test (not working) : http://pastebin.com/S77FKe8w
Any thoughts || similar ideas someone ?
Cheers