News for hackers. Stuff that matters.
Re:Retina Revolution - smaller images with better quality by dtorres on Sunday October 07, 2012 @12:38PM (#4623641)
Why not just figure out the pixelRatio once and then serve images according to that?

See this gist: https://gist.github.com/3848834

Re:Retina Revolution - smaller images with better quality by beagle3 on Monday October 08, 2012 @03:23AM (#4625862)
This isn't really good practice, unless you revise your cookie on every page load to make sure it is still correct; e.g. restoring an ipad2 backup to an ipad3 will leave you with the wrong images for the next 10 years.

And an OLPC-style device might have different ratios if you're browsing using the e-ink display rather than the lcd.