This looks like an interesting alternative to Scot Jehl's picturefill (<a href="https://github.com/scottjehl/picturefill" rel="nofollow">https://github.com/scottjehl/picturefill</a>). Obviously they're not entirely analogous in their intent, but for the purposes of serving device-appropriate images, they seem to be.