Skip to content

Instantly share code, notes, and snippets.

@illycz
Created October 15, 2014 17:48
Show Gist options
  • Save illycz/77af741d4b93572dd74a to your computer and use it in GitHub Desktop.
Save illycz/77af741d4b93572dd74a to your computer and use it in GitHub Desktop.
SVG fallback
The simplest way to have PNG fallback for browsers without SVG support:
<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