mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-12 19:30:38 +01:00
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:
parent
36de491d68
commit
12fba44414
@ -953,10 +953,10 @@ jQuery(document).ready( function($) {
|
|||||||
|
|
||||||
contentEditor = editor;
|
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();
|
update();
|
||||||
} );
|
} );
|
||||||
|
2
wp-admin/js/post.min.js
vendored
2
wp-admin/js/post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user