throttle colorview on page load

This commit is contained in:
tophf 2020-10-28 01:41:38 +03:00
parent 6d7bd650e9
commit be47cfc471

View File

@ -216,6 +216,10 @@
function colorizeChanges(state, changes) {
if (changes.length === 1 && changes[0].origin === 'setValue') {
colorizeAll(state);
return;
}
const queue = [];
const postponed = [];
const viewFrom = state.cm.display.viewFrom || 0;