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:
parent
2fbb13be21
commit
220121249a
@ -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();
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user