News for hackers. Stuff that matters.
Re:Retina.js: Retina graphics for your website by orofino on Friday April 20, 2012 @08:25AM (#3867542)
Indeed it would. Certainly less than ideal, but this provides an avenue to easily implement higher DPI graphics. Right now, it seems like the easiest method to get a site upgraded without having to make a ton of changes.

Ideally, we'd have something that would deliver only the correct image to the correct device, the first time. I haven't seen a clean method for achieving that yet.

Re:Retina.js: Retina graphics for your website by wildmXranat on Friday April 20, 2012 @10:24AM (#3867983)
Agree, I think the correct solution is to actually have a request filter on the server that correctly maps the img tag source to a high DPI version. Obviously, this would be a framework or server specific implementation, but this is the only correct way.
Re:Retina.js: Retina graphics for your website by ricardobeat on Friday April 20, 2012 @11:00PM (#3870722)
This library solves it by using a bit of specially-crafted html: https://github.com/adamdbradley/foresight.js
Re:Retina.js: Retina graphics for your website by rio517 on Friday April 20, 2012 @06:17PM (#3870040)
I could see how that's problematic for in page img tags, but for background images, couldn't one just use media queries to grab the higher resolution image?