mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-26 05:41:03 +03:00
Made codemirror editor load a lot more efficient
Brings down total editor load time from about 11s to 7s from testing in 4x reduced CPU speed in chrome. About 1.5 seconds of that is editor init/page load. Post editor-init/page-load time is now 60% of previous from testing. Related to #2518
This commit is contained in:
@ -238,9 +238,7 @@ function wysiwygView(elem) {
|
||||
theme: getTheme(),
|
||||
readOnly: true
|
||||
});
|
||||
setTimeout(() => {
|
||||
cm.refresh();
|
||||
}, 300);
|
||||
|
||||
return {wrap: newWrap, editor: cm};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user