7 ms·
Would it be better to sniff the header? Accept: RETINA Something like that, at least then you could turn it off in the browser.
by downx3 14y ago
Would it be better to sniff the header?
Accept: RETINA
Something like that, at least then you could turn it off in the browser.
- downx3 14y agoMight be just as well to sniff the user agent.
- goatforce5 14y agoIs there a difference in the user agent between iOS 5.1 on a 3GS and a 4S?
- downx3 14y agoThought it might be better to sniff the device resolution, but apparently the ipad3 lies! http://www.priteshgupta.com/2012/04/detecting-ipad-3-for-specific-stylesheet-and-images/ http://www.priteshgupta.com/2012/04/detecting-ipad-3-for-spe...
- ryannielsen 14y agoThe iPhone 4 and 4S also "lie". It's not really a lie, though. The displays are intended to have higher pixel density, not more screen real estate. By reporting the "incorrect" size, websites are actually sized consistently across all generations of iPhones and iPads, but the retina devices render the same content with higher resolution. PS: you may wish to add a "(-webkit-min-device-pixel-ratio: 2)" clause to your media queries if you want to target retina devices.
- mnutt 14y agoNot that I can tell, unfortunately.