Last Updated: February 25, 2016
·
591
· williamapan

Detect retina displays with javascript

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