WooCommerce Retina Image Support - Not included in srcset WooCommerce Retina Image Support - Not included in srcset wordpress wordpress

WooCommerce Retina Image Support - Not included in srcset


@2x code in srcset does not needs anymore in WordPress.

How works srcset attribute now in WordPress: browsers deciding what image resolution to load from array (srcset attribute) using sizes attribute and screen ppi (screen density).

So, everything what you need - it's to setup correct sizes attribute. And you don't need any plugin which makes @2... wordpress and woocommerce support srcset and sizes attributes.

Example from real site on woocommerce:iphone 7/8 has 2x device pixel ration, but iphone X has 3x device pixel ration - for each device loads images with different resolutionenter image description here