[wp-trac] [WordPress Trac] #49964: Support asynchronously loading TinyMCE (was: Wrap _WP_Editors#print_tinymce_scripts in a hook)

WordPress Trac noreply at wordpress.org
Wed Jun 10 17:46:59 UTC 2020


#49964: Support asynchronously loading TinyMCE
----------------------------+------------------------------------------
 Reporter:  sarayourfriend  |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  5.5
Component:  TinyMCE         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  administration, performance
----------------------------+------------------------------------------

Comment (by sarayourfriend):

 @azaozz do you think it would be possible to use this ticket just for the
 async TinyMCE work, meaning the minimum lift required for that performance
 win for Gutenberg? I'm happy to open another trac ticket with extra
 details about tech debt around TinyMCE and how we could go about getting
 the three inline scripts related to bootstrapping TinyMCE into a single
 place that the REST API you linked would be able to use.

 In the mean time, I've expanded the patch to include an addition to
 `WP_Scripts`, a new method, `get_url`. This is a copy of the method from
 the PR in Gutenberg @spacedmonkey has open for the REST API. I've added
 tests and moved it into core so that it can be more transparently used for
 a given handle.

 On the other hand, it occurred to me after adding it to core that it might
 do just as well to add it as a utility in Gutenberg. Let me know what the
 preference is and I'll make the change if necessary. It's needed outside
 the REST API for this PR:
 https://github.com/WordPress/gutenberg/pull/23068/files#diff-
 26f7754641e020003bf92e16ac862f50R199

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49964#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list