#58691 closed defect (bug) (fixed)
Terminate emoji loader worker once testEmojiSupports data has been obtained
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | minor | Version: | 6.3 |
Component: | Emoji | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description
In #58472 a web worker was introduced to free up the main thread from having to render emoji onto a canvas. This worker is instantiated when the emoji tests have not been previously computed and stored in sessionStorage
. However, when the worker is completed it is currently persisting through the life of the page unnecessarily. We can clean it up using the terminate method to further reduce page resources.
Additionally, the worker can be given a name to assist with debugging. Currently it is given a UUID which is not helpful.
Attachments (3)
Change History (8)
#1
@
15 months ago
- Summary changed from Emoji: Terminate emoji loader worker once testEmojiSupports data has been obtained to Terminate emoji loader worker once testEmojiSupports data has been obtained
This ticket was mentioned in PR #4771 on WordPress/wordpress-develop by @westonruter.
15 months ago
#3
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/58691
@westonruter commented on PR #4771:
15 months ago
#5
Committed in r56119
Note: See
TracTickets for help on using
tickets.
Worker without name shows up after page has loaded when it should be terminated