Last Updated: February 25, 2016
·
581
· williamapan

Detect retina displays with javascript

var retina = window.devicePixelRatio > 1 ? true : false;