title: What is the best way to detect retina support on a device using JavaScript?
body: <p>Right now I am using this function:</p>
  
  <pre><code>function is_retina_device() {
      return window.devicePixelRatio &gt; 1;
  }
  </code></pre>
  
  <p>But its simplicity scares me. Is there a more thorough check?</p>