4 ms·
How does the browser know to grab the 1x version or the 2x version?
by Siecje 12y ago
How does the browser know to grab the 1x version or the 2x version?
- garethadams 12y agoThe browser knows about the device it's running on, and specifically its display density.
- kaoD 12y agoI assumed 2x was for Retina-like screens. The browser already knows it and it's exposed via devicePixelRatio. If I understood your question correctly.