Picturefill

github.com/scottjehl/picturefill

Initialize Picturefill with Turbolinks' page:load event.

In vanilla JavaScript:

JAVASCRIPTwindow.addEventListener( "page:load", window.picturefill(), false );

In CoffeeScript:

COFFEESCRIPT$(document).bind 'page:load', ->
  window.picturefill()

Credit: James Kurczodyna


All solutions should be considered unofficial. There is no guarantee that a given solution will work with your application. If you find that a solution is insufficient, please let me know by submitting an issue on Github.