Retina, Please!

A few days ago, I posted a small JavaScript snippet. Retina, Please! is that JavaScript snippet on steroids. It is a combination of JavaScript and PHP to allow your Retina users to only download Retina images, while non-Retina users only download the standard-resolution version. Check it out: https://github.com/keichan34/KKRetinaPlease WordPress Theme Writers: just require it in… Continue reading Retina, Please!

Varnish: Debrief

Today, we just released the Varnish-ed site I posted about a few days ago. A few things to be careful about in your Varnish deployment (that I had originally overlooked): Make sure you’re 301 redirecting traffic to your canonical name (http://www.example.com/example to http://example.com/example, or vice versa) Do this redirecting within Varnish! I had strange problems… Continue reading Varnish: Debrief

Retina

Been wondering how to simply retina-ize your website? Put this at the end of your site: $(function() { try { if (window.matchMedia(‘(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2)’).matches) { $(‘.autoRetina’).each(function(i, e) { var orig_src = $(e).attr(‘src’); var new_src = orig_src.replace(/^(.*?).(png|jpe?g|gif)$/i, ‘[email protected]$2’); $(e).attr(‘src’, new_src); }); } } catch (e) {} }); If you’re on a Retina-equipped device, your images… Continue reading Retina

Flagship LLC

As many of you are aware, I have been working for about 6 months now, with 2 other people. On July 4th, we are pleased to announce that we have officially become a company, Flagship LLC. We have some pretty cool projects lined up in the near future, I’ll be posting updates on our released… Continue reading Flagship LLC