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.


Built from https://develop.svn.wordpress.org/trunk@33060


git-svn-id: http://core.svn.wordpress.org/trunk@33031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ella Iseulde Van Dorpe 2015-07-03 09:15:24 +00:00
parent 36de491d68
commit 12fba44414
3 changed files with 4 additions and 4 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();
} );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta1-33058';
$wp_version = '4.3-beta1-33060';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.