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

WordPress Trac noreply at wordpress.org
Fri Oct 6 23:35:01 UTC 2023


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

Comment (by westonruter):

 I've been doing some [https://github.com/GoogleChromeLabs/wpp-
 research/pull/75 HTTP Archive queries] on bfcache on WordPress pages. I
 found that bfcache is disabled on a third of all WP pages indexed by HTTP
 Archive. And I found that "The page has an unload handler in the main
 frame" is the second most common reason for it being disabled.
 Nevertheless, I also found that the Heartbeat script is only present on
 0.25% of pages. Therefore, it doesn't seem that core is the primary reason
 for bfcache being disabled.

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


More information about the wp-trac mailing list