[wp-trac] [WordPress Trac] #37817: Emoji code not loaded responsibly
WordPress Trac
noreply at wordpress.org
Sat Aug 27 08:14:40 UTC 2016
#37817: Emoji code not loaded responsibly
---------------------------+------------------------------
Reporter: superpoincare | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Emoji | Version: 4.6
Severity: normal | Resolution:
Keywords: | Focuses: performance
---------------------------+------------------------------
Comment (by superpoincare):
I found out that the code checks whether unicode9 is also supported:
https://github.com/WordPress/WordPress/blob/ea6e749c7137f1acd7570f78b4ea756e65adace0
/wp-includes/js/wp-emoji-loader.js#L98
So wp-emoji-release.min.js should be loading in Chrome on Mac, as is the
case now. Works as expected. ✔️
About loading asynchronously, I checked load times by explicitly using
{{{
c.async=true;
}}}
in the final output. This doesn't change much, implying that the script is
anyway loading asynchronously. ✔️
So I think the only possible source of delay - if at all there is one - is
if it takes time to feature detect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37817#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list