jquery-focuspoint
jquery-focuspoint copied to clipboard
[Info] Works perfectly with picturefill.js
Try
<div class="full focuspoint" data-focus-x="-0.02" data-focus-y="-0.1" data-image-w="2250" data-image-h="1992">
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source srcset="img/yyy1.jpg" media="(min-width: 1000px)">
<source srcset="img/yyy2.jpg" media="(min-width: 600px)">
<source srcset="img/yyy3.jpg" media="(min-width: 320px)">
<!--[if IE 9]></video><![endif]-->
<img src="img/picture.jpg" alt="">
</picture>
</div>
Nice ;)
... but it not work with <img srcset="..."
... but it not work with
<img srcset="..."
This is actually a problem, since using src can lead to double downloads with picturefill. Although this isn't really an issue with focus point, it would be nice to have the compatibility.