[wp-trac] [WordPress Trac] #64259: Convert emoji detection script from inline script module to external script module
WordPress Trac
noreply at wordpress.org
Fri Feb 20 15:44:33 UTC 2026
#64259: Convert emoji detection script from inline script module to external script
module
-------------------------+--------------------------
Reporter: westonruter | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1
Component: Emoji | Version: 4.2
Severity: normal | Resolution:
Keywords: | Focuses: performance
-------------------------+--------------------------
Comment (by aion11):
Hi, I would like to work on this one.
From what I see, the emoji detection logic is still printed inline. Even
though it is a module now, the inline output keeps extra JS in the
document. It seems cleaner to move it fully to an external module file.
My plan would be to move the logic into a dedicated JS file, keep using
the existing wp-emoji-loader handle, and pass the settings via the script
module data filter instead of printing them inline.
Before I prepare a patch, I just want to confirm this direction is
aligned. Also, do we need to preserve anything specific around the global
_wpemojiSettings for backward compatibility?
Happy to work on a patch once confirmed.
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64259#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list