Editor: refresh word count quicker

2 seconds is a bit slow. Debouncing with 1 second means it can only run maximum once per second. In reality it won't run us much. Even people who type slow will usually type faster than 1 character per second.

See #30966.



git-svn-id: https://develop.svn.wordpress.org/trunk@33060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella Iseulde Van Dorpe 2015-07-03 09:14:08 +00:00
parent 2fbb13be21
commit 220121249a
1 changed files with 2 additions and 2 deletions

View File

@ -953,10 +953,10 @@ jQuery(document).ready( function($) {
contentEditor = editor;
editor.on( 'nodechange keyup', _.debounce( update, 2000 ) );
editor.on( 'nodechange keyup', _.debounce( update, 1000 ) );
} );
$content.on( 'input keyup', _.debounce( update, 2000 ) );
$content.on( 'input keyup', _.debounce( update, 1000 ) );
update();
} );