Unload event is blocking bfcache
kevinfarrugia opened this issue · 5 comments
The unload
event at https://github.com/sockjs/sockjs-client/blob/main/lib/utils/event.js#L72 is preventing back/forward cache from working. As a result, it negatively affects performance.
Is it possible to utilise the visibilitychange
or pagehide
events instead? Or perhaps have a legacy and modern build?
Read more: https://web.dev/bfcache/#never-use-the-unload-event
This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.
Should I go ahead and create a PR please?
This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.
Chrome will be deprecating the unload
listener starting from Chrome 117: https://developer.chrome.com/blog/deprecating-unload/
came here cuz lighthouse gave me a lower score.