News for hackers. Stuff that matters.
Re:Retina.js: Retina graphics for your website by gerrit on Friday April 20, 2012 @08:25AM (#3867540)
The user experience when viewing webpages is improved by actually showing a lower-resolution image while the crisp high-resolution image is being downloaded (however slowly), similar to progressive JPEGs.

Depending on the data contract, the user experience when viewing their mobile phone bills might be affected negatively though.

Re:Retina.js: Retina graphics for your website by downx3 on Friday April 20, 2012 @08:37AM (#3867573)
Would it be better to sniff the header?

Accept: RETINA

Something like that, at least then you could turn it off in the browser.

Re:Retina.js: Retina graphics for your website by downx3 on Friday April 20, 2012 @08:40AM (#3867585)
Might be just as well to sniff the user agent.
Re:Retina.js: Retina graphics for your website by goatforce5 on Friday April 20, 2012 @09:23AM (#3867735)
Is there a difference in the user agent between iOS 5.1 on a 3GS and a 4S?
Re:Retina.js: Retina graphics for your website by downx3 on Friday April 20, 2012 @09:51AM (#3867848)
Thought it might be better to sniff the device resolution, but apparently the ipad3 lies!

http://www.priteshgupta.com/2012/04/detecting-ipad-3-for-spe...

Re:Retina.js: Retina graphics for your website by ryannielsen on Friday April 20, 2012 @03:49PM (#3869497)
The 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.

Re:Retina.js: Retina graphics for your website by mnutt on Friday April 20, 2012 @10:20AM (#3867965)
Not that I can tell, unfortunately.