[wp-trac] [WordPress Trac] #55491: Replace unload from heartbeat js

WordPress Trac noreply at wordpress.org
Thu Aug 10 19:08:37 UTC 2023


#55491: Replace unload from heartbeat js
----------------------------+--------------------------------------
 Reporter:  shawfactor      |       Owner:  westonruter
     Type:  enhancement     |      Status:  accepted
 Priority:  normal          |   Milestone:  6.4
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  javascript, performance
----------------------------+--------------------------------------

Comment (by adamsilverstein):

 Chrome recently announced they are deprecating the 'unload' event
 (https://developer.chrome.com/blog/deprecating-unload/) so this change is
 a bit more urgent.

 Looks like we have [https://github.com/search?q=repo%3AWordPress
 %2Fwordpress-develop+%27unload%27&type=code five use instances in core]
 that need updating. The article linked above offers suggested replacement
 approaches.

 @shawfactor thanks for opening this ticket! I am going to expand it
 slightly to remove all instances of `unload` from core rather than
 creating a new ticket.

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


More information about the wp-trac mailing list