Pause for 25 ms in between successful get_updates calls

(imported from commit e86c0b653669cf86b0d8956c2c85eb7610fc342f)
This commit is contained in:
Keegan McAllister 2012-11-08 17:26:29 -05:00
parent ed490c672f
commit 9bbe12c6cd
1 changed files with 4 additions and 1 deletions

View File

@ -542,7 +542,10 @@ function get_updates() {
// {then_scroll: true, update_server: false});
// }
get_updates_timeout = setTimeout(get_updates, 0);
// Pause for 25 milliseconds before restarting the request.
// This gives the browser (especially, our frontend test browser)
// time to perform other scheduled actions.
get_updates_timeout = setTimeout(get_updates, 25);
},
error: function (xhr, error_type, exn) {
if (error_type === 'timeout') {