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

WordPress Trac noreply at wordpress.org
Fri Nov 12 16:40:10 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 westonruter):

 Replying to [comment:2 pento]:
 > - It's intentionally very fast, generally executing in a single browser
 tick (around 3ms), to affect page render speed as little as possible.

 Humm. I'm seeing that `emoji-loader.js` it's actually taking ~90ms and it
 is classified as a long task in Chrome DevTools:

 [[Image(https://core.trac.wordpress.org/raw-attachment/ticket/37788/long-
 task.png)]]

 ref [ticket:37788#comment:4].

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


More information about the wp-trac mailing list