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

WordPress Trac noreply at wordpress.org
Thu Mar 31 02:35:08 UTC 2022


#55491: Replace unload from heartbeat js
-------------------------+-----------------------------
 Reporter:  shawfactor   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  5.9
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Right now the heartbeat javascript library uses an unload handler, this
 means that where ever it is used the page is not elgible for the bfcache
 in many browsers.

 https://web.dev/bfcache/


 Wordpress could get a significant performance improvement if this listener
 was replaced by using the page visibility api or a combination of pagehide
 handlers. Which i assume are possible in jquery

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


More information about the wp-trac mailing list