[wp-trac] [WordPress Trac] #55491: Replace `unload` event handlers from core

WordPress Trac noreply at wordpress.org
Thu Aug 24 18:33:07 UTC 2023


#55491: Replace `unload` event handlers from core
-------------------------------------+-------------------------------------
 Reporter:  shawfactor               |       Owner:  westonruter
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.4
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  good-first-bug has-      |     Focuses:  javascript,
  patch                              |  performance
-------------------------------------+-------------------------------------

Comment (by spenserhale):

 Regarding wp-includes/js/mce-view.js:

 The code was for: https://core.trac.wordpress.org/ticket/38511#comment:10.

 We could patch and use pagehide event, but after testing modern Firefox,
 the original issue from 7 years ago is not reproducible. Likely no longer
 an issue. The scope is WP users using the classic editor plugin and large
 shortcodes such as large galleries.

 So, opting to remove the code. Commit: https://github.com/WordPress
 /wordpress-
 develop/pull/5056/commits/cfb32d01d58be96ffcef9fad778ed28e966713b9

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


More information about the wp-trac mailing list