Skip to content

Instantly share code, notes, and snippets.

@chriscoyier
Created May 6, 2011 00:29
Show Gist options
  • Save chriscoyier/958246 to your computer and use it in GitHub Desktop.
Save chriscoyier/958246 to your computer and use it in GitHub Desktop.
jsonwait.js
$.ajax({
url: url,
dataType: 'json',
data: data,
success: function() {
// NOW call the function again, but make sure at least XX seconds have gone by somehow
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment