Disable backfilling 1,000 messages on idle

Right now the MIT realm has pretty bad UI lag with 1,200 messages loaded.  We
need to fix the root problem, but this commit at least makes reloading the page
a satisfactory remedy.

(imported from commit 93d47710891cfc4db9fa00beaa5ccd10113aa1c3)
This commit is contained in:
Keegan McAllister
2013-02-20 18:36:00 -05:00
parent af1327230a
commit c7b88cc708

View File

@@ -818,14 +818,6 @@ $(function () {
}
// now start subscribing to updates
get_updates();
// backfill more messages after the user is idle
var backfill_batch_size = 1000;
$(document).idle({'idle': 1000*10,
'onIdle': function () {
var first_id = message_array[0].id;
load_old_messages(first_id, backfill_batch_size, 0);
}});
}
if (have_initial_messages) {