Retina.js

Just a few days ago, I had quite a mishap with setting up retina display images for Posthast. After witch I have scoured the web to find out what went wrong, and it didn’t take long to find a solution. Enter Retina.js a simple Javascript that search’s your code for images and replaces them with hi-res images, if the viewer is using a retina display device. I was under the assumption that I needed to provide css for both retina and non retina displays, which wasn’t what I was supposed to be doing, you live and learn. What is an even bigger plus is if you’re like me and have started using Less for your css compiling, because Retina.js has a mixin for your styles.less file. Which will write all your css for you when you compile. Awesome huh…