Skip to content

Instantly share code, notes, and snippets.

@smokymountains
Last active August 29, 2015 14:20
Show Gist options
  • Save smokymountains/ecdd54faf9890cdcfea7 to your computer and use it in GitHub Desktop.
Save smokymountains/ecdd54faf9890cdcfea7 to your computer and use it in GitHub Desktop.
XHR-Free Data Posting
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