[wp-trac] [WordPress Trac] #31701: Emoji: Avoid enqueueing JS by default

WordPress Trac noreply at wordpress.org
Tue Mar 24 18:49:44 UTC 2015


#31701: Emoji: Avoid enqueueing JS by default
------------------------------------+--------------------------------------
 Reporter:  obenland                |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  4.2
Component:  General                 |     Version:  trunk
 Severity:  major                   |  Resolution:
 Keywords:  emoji has-patch commit  |     Focuses:  javascript, performance
------------------------------------+--------------------------------------

Comment (by azaozz):

 Replying to [comment:23 pento]:

 Oh, another thing. Not a huge deal but.. Currently with SCRIPT_DEBUG on we
 are waiting for twemoji.js to fully load before starting to load wp-
 emoji.js. We sgould load both at the same time and then wait to initialize
 wp-emoji when twemoji.js is fully loaded.

 So `waitForTwemoji()` should actually be in wp-emoji.js, before it checks
 document.readyState. Patch coming up.

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


More information about the wp-trac mailing list