Skip to content

Replaced unload with pagehide#85

Open
Vishala230531 wants to merge 1 commit into
krakenjs:mainfrom
Vishala230531:feature/2854
Open

Replaced unload with pagehide#85
Vishala230531 wants to merge 1 commit into
krakenjs:mainfrom
Vishala230531:feature/2854

Conversation

@Vishala230531

@Vishala230531 Vishala230531 commented Nov 17, 2025

Copy link
Copy Markdown

This PR implements BFCache (Back/Forward Cache) compatibility for smart payment buttons by replacing blocking beforeunload and unload event listeners with BFCache-compatible pagehide events. This enables instant back/forward navigation for users, improving the browsing experience by allowing browsers to cache entire pages in memory.

https://paypal.atlassian.net/browse/DTPPCPSDK-2854

@gusveloso gusveloso left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants