From c7b88cc70836fd59cc525d110d75e97770dcaeec Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 20 Feb 2013 18:36:00 -0500 Subject: [PATCH] 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) --- zephyr/static/js/zephyr.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 868b70efc3..2ed51a54ad 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -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) {