[wp-trac] [WordPress Trac] #32197: Twemoji script and editor expansion combo making editor ridiculously slow in some circumstances
WordPress Trac
noreply at wordpress.org
Thu Apr 30 15:04:26 UTC 2015
#32197: Twemoji script and editor expansion combo making editor ridiculously slow
in some circumstances
--------------------------+--------------------
Reporter: Otto42 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2.2
Component: TinyMCE | Version: 4.1
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Comment (by Otto42):
Definitely a Chrome thing, somehow.
Test in Chrome console. "re" is already defined as that big twemoji
regexp.
{{{
console.time('a'); for (i = 1; i <= 10000; i++)
re.test('1111111111111111111'); console.timeEnd('a');
a: 14.108ms
console.time('a'); for (i = 1; i <= 10000; i++)
re.test('111111111111111111“'); console.timeEnd('a');
a: 2762.734ms
}}}
Not sure why, but it really hates those special characters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32197#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list