Created
November 6, 2014 15:18
-
-
Save mjlescano/c91a40c42ab8357cbf21 to your computer and use it in GitHub Desktop.
Fallback for .svg <img>, tries to load the .png version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="sarasa.svg" onerror="this.onerror=null;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