Skip to content

Instantly share code, notes, and snippets.

@foobartel
Created October 16, 2014 04:17
Show Gist options
  • Save foobartel/857f2e075e525e2ecb14 to your computer and use it in GitHub Desktop.
Save foobartel/857f2e075e525e2ecb14 to your computer and use it in GitHub Desktop.
Simple SVG Fallback
<!-- The simplest way to have PNG fallback for browsers without SVG support:
hattip by @viljamis -->
<img src="logo.svg" onerror="this.onerror=null;this.src='logo.png'">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment