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

WordPress Trac noreply at wordpress.org
Tue Mar 24 23:16:58 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):

 In 31701.12.diff:
 - When waiting for twemoji.js to load, break after 30 sec.
 - When SCRIPT_DEBUG, add wp-emoji and twemoji at the same time, move the
 "loaded" check to wp-emoji.

 Thinking this is ready. The scripts load as fast as possible and there is
 almost no slowdown in debug mode or when running from /src.

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


More information about the wp-trac mailing list