3 ms·
We load a normal (non-retina) page the first time we see a visitor, and then we set a cookie if the devicePixelRatio is high. After that, pages are rendered wi
by jannotti 13y ago
We load a normal (non-retina) page the first time we see a visitor, and then we set a cookie if the devicePixelRatio is high. After that, pages are rendered with retina images directly in the src attributes.
Imperfect, but that seemed like our best compromise. I suppose we could also do this on the first page load, but that felt like diminishing returns.