[wp-trac] [WordPress Trac] #41405: Only output Emoji JS when emoji used on page

WordPress Trac noreply at wordpress.org
Sun Nov 14 23:37:33 UTC 2021


#41405: Only output Emoji JS when emoji used on page
-------------------------------+-------------------------
 Reporter:  jhabdas            |       Owner:  (none)
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Emoji              |     Version:
 Severity:  normal             |  Resolution:  maybelater
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-------------------------

Comment (by pento):

 Interesting, that JavaScript still runs in well under 10ms for me in both
 Chrome and Firefox: I was able to slow it down a bit by throttling the
 network and CPU, but even then, it was still substantially less than 90ms.

 It's worth noting that the Task you've highlighted will likely be slower
 than the emoji JavaScript, as it includes the entire HTML parsing step,
 and the `load` event.

 I'm curious about why the `toDataURL()` calls seem to be very slow on your
 device, though. Do you see the same slowness without any extensions
 running? Have you disabled any of the GPU rendering or rasterization
 options in `chrome://flags`?

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


More information about the wp-trac mailing list