[wp-trac] [WordPress Trac] #58472: Emoji loader script causes ~100ms long task

WordPress Trac noreply at wordpress.org
Wed Jun 28 16:21:47 UTC 2023


#58472: Emoji loader script causes ~100ms long task
-------------------------------------+-------------------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  reopened
 Priority:  high                     |   Milestone:  6.3
Component:  Emoji                    |     Version:  4.2
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch needs-       |     Focuses:  javascript,
  testing                            |  performance
-------------------------------------+-------------------------------------
Changes (by azaozz):

 * keywords:  has-patch => needs-patch needs-testing
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Seems the minified script fails with `ReferenceError: c is not defined`.
 Happens in production where `SCRIPT_DEBUG = false`.

 Most likely caused by the minifier failing to handle the code where
 functions get passed to run in the Worker. Also see the comment here:
 https://github.com/WordPress/wordpress-develop/pull/4562/files#diff-
 83d8ed9928b125b09de0268ee4775d21a58b93ed92da09828359760f9200b069R352.

 As this fails in production it would probably be best to revert for now
 and fix and reintroduce in time for beta2.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58472#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list