2 ms·
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
by orofino 15y ago
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.
- wildmXranat 15y agoAgree, 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.
- rio517 15y agoI 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?
- ricardobeat 15y agoThis library solves it by using a bit of specially-crafted html: https://github.com/adamdbradley/foresight.js https://github.com/adamdbradley/foresight.js