Skip to content

Script disables bfcache because of deprecated use of unload #1626

@JasonUSC

Description

@JasonUSC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions