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

WordPress Trac noreply at wordpress.org
Fri Mar 20 03:16:23 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:  normal        |  Resolution:
 Keywords:  emoji         |     Focuses:  javascript, performance

Comment (by pento):

 The `browserSupportsEmoji()` function is pretty small - it minifies to
 only a few hundred bytes. The total shim would be less than 1KB. Compared
 to Twenty Fifteen's inline styles, it's positively svelte. :-)

 If we were to write a custom loader (I did one ages ago for the Likes
 widget on WP.com, they're pretty simple), along with combining `wp-
 emoji.js` and `twemoji.js` in the build process, we may be on to
 something. I shall experiment.

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

More information about the wp-trac mailing list