throttle markdown rendering in the code app

pull/1/head
ansuz 5 years ago
parent 62c50d9e23
commit daf6482ace

@ -131,7 +131,7 @@ define([
if (['markdown', 'gfm'].indexOf(CodeMirror.highlightMode) === -1) { return; } if (['markdown', 'gfm'].indexOf(CodeMirror.highlightMode) === -1) { return; }
if (!$previewButton.is('.cp-toolbar-button-active')) { return; } if (!$previewButton.is('.cp-toolbar-button-active')) { return; }
forceDrawPreview(); forceDrawPreview();
}, 150); }, 400);
var previewTo; var previewTo;
$previewButton.click(function () { $previewButton.click(function () {

Loading…
Cancel
Save