Created
July 1, 2014 13:05
-
-
Save hellosmithy/b111a92a1c789511df4d to your computer and use it in GitHub Desktop.
Mobile Safari image unload
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
// Credit to: http://www.fngtps.com/2010/mobile-safari-image-resource-limit-workaround/ | |
var img = document.getElementById('previous'); | |
img.parentNode.removeChild(img); | |
img.src = 'data:image/gif;base64,' + | |
'R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='; | |
window.timeout(function() { | |
img = null; | |
}, 60000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment