Skip to content

Instantly share code, notes, and snippets.

@romanoffs
Created July 22, 2017 13:28
Show Gist options
  • Save romanoffs/1b397deb6fd9277054e4a4a56b7acca3 to your computer and use it in GitHub Desktop.
Save romanoffs/1b397deb6fd9277054e4a4a56b7acca3 to your computer and use it in GitHub Desktop.
SVG Fallback
//SVG Fallback
if(!Modernizr.svg) {
$("img[src*='svg']").attr("src", function() {
return $(this).attr("src").replace(".svg", ".png");
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment