From 36f3299ddf9b59b5a354993eec77deadc4a7b64a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Dec 2018 08:25:22 +0300 Subject: [PATCH] use window.requestIdleCallback to sync observed modifications --- js/Headlines.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/Headlines.js b/js/Headlines.js index be68124c9..0c0a7f56a 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -38,7 +38,9 @@ define(["dojo/_base/declare"], function (declare) { Headlines.updateSelectedPrompt(); Headlines.updateFloatingTitle(true); - Headlines.syncModified(modified); + window.requestIdleCallback(() => { + Headlines.syncModified(modified); + }); }), syncModified: function(modified) { const ops = {