[wp-trac] [WordPress Trac] #27797: Improve loading of TinyMCE translations

WordPress Trac noreply at wordpress.org
Sat Nov 8 19:53:37 UTC 2014


#27797: Improve loading of TinyMCE translations
--------------------------+-----------------------------
 Reporter:  nacin         |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  low           |   Milestone:  Future Release
Component:  TinyMCE       |     Version:
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+-----------------------------

Comment (by azaozz):

 > ...a lot of these strings are there only for plugins — we can check if
 the table plugin is added, and then immediately side-step 40 translations.

 This may fail when another instance of TinyMCE is created after loading
 the page. If that instance loads plugins that are not loaded in the
 initial instance, TinyMCE will load the plugin's JS but expects that the
 translations are already present. This changed in version 4.0. Now all
 translations for the default plugins are always loaded. In 3.x there were
 separate translation files for the plugins, now all are merged in one.

 > [28112] loads all translations even in English. In reality only about 10
 strings diverge

 Right, we can output only strings that diverge from the default. This
 won't speed things up but will output less inline JS (the translated
 strings are outputted inline from PHP to avoid another request).

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


More information about the wp-trac mailing list