Last active
August 29, 2015 14:20
-
-
Save smokymountains/ecdd54faf9890cdcfea7 to your computer and use it in GitHub Desktop.
XHR-Free Data Posting
This file contains 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
function sendData(url) { | |
function remove() { | |
img = null; | |
} | |
var img = new Image(); | |
img.onerror = remove; | |
img.onload = remove; | |
img.src = url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment