You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wouldn't it be neat to have the script load @2x retina images if the device supports it?
Like adding a class member:
this.retina = (window.devicePixelRatio && window.devicePixelRatio > 1);
and replacing the image URL if we need double sizes?
if (this.retina) img = img.replace(/.{1}\w{3,4}$/g,'@2x$&');
The reason I come up with this, is because Gumbys Retina Plugin does not work on top of ResponsiveImages. At least for me.
Oliver
The text was updated successfully, but these errors were encountered:
wouldn't it be neat to have the script load @2x retina images if the device supports it?
Like adding a class member:
this.retina = (window.devicePixelRatio && window.devicePixelRatio > 1);
and replacing the image URL if we need double sizes?
if (this.retina) img = img.replace(/.{1}\w{3,4}$/g,'@2x$&');
The reason I come up with this, is because Gumbys Retina Plugin does not work on top of ResponsiveImages. At least for me.
Oliver
The text was updated successfully, but these errors were encountered: