[wp-trac] [WordPress Trac] #61806: twemoji is always loaded on Windows devices
WordPress Trac
noreply at wordpress.org
Mon Aug 5 20:37:08 UTC 2024
#61806: twemoji is always loaded on Windows devices
--------------------------+------------------------------
Reporter: Clorith | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Emoji | Version:
Severity: minor | Resolution:
Keywords: | Focuses: performance
--------------------------+------------------------------
Comment (by dmsnell):
@Clorith the Twemoji detection script runs on every page load in the front
end, and needs to because the server is unable to know if a given
combination of browser and operating system can display the Emoji
properly. it does try to store some checks in local storage to avoid
recomputing the detection when possible.
it's also not a property of the Emoji that are present in the post. the
server could potentially avoid sending the script if there are no Emoji in
the post, but then it would also need to ensure that new content can't
come in with emoji after page load (for example, as might happen in the
query block with enhanced pagination activated).
To be clear, are you seeing the script behave differently in Windows than
on other platforms? Are you seeing it replace Emoji when you think it
shouldn't, or are you merely noticing that it executes its detection code?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61806#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list