Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32125, comment 4


Ignore:
Timestamp:
04/24/2015 08:50:23 PM (9 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32125, comment 4

    initial v1  
    11Seems there are two ways this can be optimized:
    2 1. Get the new or modified nodes `textContent` and do `twemoji.test()` before running `parse()`. That is still a big regex but will be much faster in case there are mo emoji chars.
     21. Get the new or modified nodes `textContent` and do `twemoji.test()` before running `parse()`. That is still a big regex but will be much faster in case there are no emoji chars.
    332. Implement something like Underscore's `_.throttle()` that will execute as soon as called but delay the next execution by 100ms -- 200ms.