WordPress.org

Make WordPress Core

Changeset 33060


Ignore:
Timestamp:
07/03/2015 09:14:08 AM (6 years ago)
Author:
iseulde
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/post.js

    r33024 r33060  
    954954            contentEditor = editor;
    955955
    956             editor.on( 'nodechange keyup', _.debounce( update, 2000 ) );
     956            editor.on( 'nodechange keyup', _.debounce( update, 1000 ) );
    957957        } );
    958958
    959         $content.on( 'input keyup', _.debounce( update, 2000 ) );
     959        $content.on( 'input keyup', _.debounce( update, 1000 ) );
    960960
    961961        update();
Note: See TracChangeset for help on using the changeset viewer.