throttle markdown rendering in the code app
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user