Skip to content

Replacing unload with pagehide#125

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

Replacing unload with pagehide#125
Vishala230531 wants to merge 1 commit intokrakenjs:mainfrom
Vishala230531:feature/2854

Conversation

@Vishala230531
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

@Vishala230531 Vishala230531 requested a review from a team as a code owner November 17, 2025 19:35
Copy link
Copy Markdown

@gusveloso gusveloso left a comment

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.

3 participants