From 220121249aa799091f9a9dbffc4d8f3f4d3dccf0 Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Fri, 3 Jul 2015 09:14:08 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/post.js b/src/wp-admin/js/post.js index c9cc8695eb..46a5556798 100644 --- a/src/wp-admin/js/post.js +++ b/src/wp-admin/js/post.js @@ -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(); } );