[wp-trac] [WordPress Trac] #35760: Provide API for TinyMCE editor to be dynamically instantiated via JS

WordPress Trac noreply at wordpress.org
Tue Apr 25 10:06:33 UTC 2017

#35760: Provide API for TinyMCE editor to be dynamically instantiated via JS
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.8
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  javascript

Comment (by mihai2u):

 I ran some performance tests onto the merged patch and the first
 instantiation of a tinyMce takes about 300ms and subsequent ones take less
 than half of that, in the realm of ±100ms.

 On a page that does not have tinyMce vs with a tinyMce instantiated until
 the page completes loading, the difference in  browser rendering +
 painting is minimal (goes up from 25ms to 75ms), and for processing the
 JS, it adds up from ±500ms up to ±700ms in scripting time, so a minimal
 amount as well.

 I agree that it doesn't bring much benefit to load on-demand the editor
 CSS when needed. The most important aspect is the fact that the editor is
 mainly oriented towards the administrative interface and it won't have any
 negative performance penalty to regular visitors.

 :thumbs-up: and thank you for the addition!
 I don't have any improvement suggestions with regards to increasing

 Breakdown of browser work on first instantiation:
 And on second instantiation:

Ticket URL: <https://core.trac.wordpress.org/ticket/35760#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list