Skip to content

Instantly share code, notes, and snippets.

View corerman's full-sized avatar
🚩

corerman

🚩
View GitHub Profile
@corerman
corerman / gist:2983c51e13354840a4c5f6385bc4df54
Last active June 14, 2017 01:54 — forked from aeurielesn/gist:2511005
Retrying a jQuery.ajax() call
$.ajax({
url: '/echo/error/',
async: true,
// retryCount and retryLimit will let you retry a determined number of times
retryCount: 0,
retryLimit: 10,
// retryTimeout limits the total time retrying (in milliseconds)
retryTimeout: 10000,
// timeout for each request
timeout: 1000,