4 ms·
Use an img srcset and inspect currentSrc?
by o11c 1y ago
Use an img srcset and inspect currentSrc?
- bawolff 1y agowindow.devicePixelRatio ?
- o11c 1y agoParent said that's not reliable apparently.
- FrostKiwi 1y agoDevicePixelRatio changes with screen DPI and browser zoom, some combinations result in repeating decimals. You will get off by one pixel rendering and thus a sudden loss in sharpness due to the whole canvas getting bilinear interpolation.