Skip to content

Instantly share code, notes, and snippets.

@jonathanstark
Last active December 28, 2015 20:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanstark/7557847 to your computer and use it in GitHub Desktop.
Save jonathanstark/7557847 to your computer and use it in GitHub Desktop.
TechCrunch blog post: png failover
// Failover to PNG if browser can’t hack SVG
if(!Modernizr.svg) {
$('img').each(function(){
this.src = this.src.replace('svg', 'png');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment