mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user