[wp-trac] [WordPress Trac] #31766: 'word-count' always enqueued, even when not needed

WordPress Trac noreply at wordpress.org
Wed Mar 25 19:44:08 UTC 2015

#31766: 'word-count' always enqueued, even when not needed
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  TinyMCE          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:  performance      |
 When `tinymce` is false (and subsequently when `teeny` is true) the `word-
 count` script is still enqueued, even though there is no relevant UI for
 it to report back to.

 This results in WordPress enqueueing `/wp-admin/js/word-count$suffix.js`
 when it does not appear to be necessary, and also inserts an additional
 `script` tag for the accompanying `wordCountL10n` localized value.

Ticket URL: <https://core.trac.wordpress.org/ticket/31766>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list