Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modernizr PNG SVG Fallback
if(!Modernizr.svg){
$("img.svg").each(function(){
var src = this.src.replace('.svg', '.png');
this.src = src;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.