3 ms·
You can just read 'window.devicePixelRatio' using JavaScript. Retina devices will be more than one.
by nwh 14y ago
You can just read 'window.devicePixelRatio' using JavaScript. Retina devices will be more than one.
- kevingadd 14y agoThat's cool, I didn't realize you could use that in production yet but it looks like (other than some weird caveats) you can: http://www.quirksmode.org/blog/archives/2012/07/more_about_devi.html http://www.quirksmode.org/blog/archives/2012/07/more_about_d...