Describe the bug
This script disables bfcache because of its use of the deprecated unload event. Both unload and beforeuload are known to be unreliable, so why cause a performance hit and SEO ding on browsers?
window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function()
Reproduction Steps?
https://developer.chrome.com/docs/web-platform/deprecating-unload
SDK Versions
https://global.oktacdn.com/okta-auth-js/7.14.1/okta-auth-js.min.js
Additional Information?
No response
Describe the bug
This script disables bfcache because of its use of the deprecated unload event. Both unload and beforeuload are known to be unreliable, so why cause a performance hit and SEO ding on browsers?
window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function()Reproduction Steps?
https://developer.chrome.com/docs/web-platform/deprecating-unload
SDK Versions
https://global.oktacdn.com/okta-auth-js/7.14.1/okta-auth-js.min.js
Additional Information?
No response