[wp-trac] [WordPress Trac] #27797: Improve loading of TinyMCE translations
WordPress Trac
noreply at wordpress.org
Mon Apr 14 03:26:00 UTC 2014
#27797: Improve loading of TinyMCE translations
--------------------------+----------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: TinyMCE | Version:
Severity: minor | Keywords:
Focuses: performance |
--------------------------+----------------------------
[28112] loads all translations even in English. In reality only about 10
strings diverge from the TinyMCE string in en_US, so we could speed things
up with some creativity. (We're only talking a millisecond, however.)
Additionally, 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. The whole process takes about 4-5 milliseconds; we might be
able to cut that in half if we exclude strings we don't need when that
particular plugin isn't loaded.
TinyMCE 4.0 uses real English string fallbacks, so it's less of a problem
if something doesn't get translated because custom plugin B is using
official plugin A's strings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27797>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list