From 7f6d3e241a2c10364e55fbc2b8eb578af1ccd83c Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 11 Apr 2017 08:17:37 +0300 Subject: [PATCH] speedup: don't animate elements during import --- manage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage.js b/manage.js index c9bd0b6f..fc44e139 100644 --- a/manage.js +++ b/manage.js @@ -352,10 +352,10 @@ function handleUpdate(style, {reason, quiet} = {}) { } } installed.insertBefore(element, findNextElement(style)); - if (!quiet) { + if (reason != 'import') { animateElement(element, {className: 'highlight'}); - scrollElementIntoView(element); } + scrollElementIntoView(element); }