Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFCache is never used when plugin active #387

Open
cuchac opened this issue Nov 2, 2023 · 0 comments
Open

BFCache is never used when plugin active #387

cuchac opened this issue Nov 2, 2023 · 0 comments

Comments

@cuchac
Copy link

cuchac commented Nov 2, 2023

Hello,
I'm using this plugin for many years in all my Firefox installations and I love it!

Lately I was experimenting with bfcache support for webpage we develop and I was not able to make bfcache work in Firefox. Chrome/Safari was working well.

After many hours of debugging I've found that FoxyGestures are the cause. When plugin is deactivated, bfcache started to work and many web pages suddenly become so much faster to browse.

The problem is this unload event handler that disables bfcache:

window.addEventListener('unload', onUnload);

Do you think it is possible to change this to onbeforeunload? Or use pagehide event? It is recommended solution.

These are explanations of bfcache and its benefits/limitations:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/1.5/Using_Firefox_1.5_caching
https://web.dev/articles/bfcache

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

No branches or pull requests

1 participant