use window.requestIdleCallback to sync observed modifications

This commit is contained in:
Andrew Dolgov 2018-12-11 08:25:22 +03:00
parent df434293cd
commit 36f3299ddf
1 changed files with 3 additions and 1 deletions

View File

@ -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 = {