Main menu

Simple HiDPI / Retina test for Modernizr

Recently, I needed HiDPI / Retina detection via JavaScript so I decided to write a basic Modernizr.js test that simply uses JavaScript device pixel ratio media queries and tests whether or not the user has a high resolution capable display.