[Q & A] Registers an unload listener
See original GitHub issueDescription
Hi everyone, I used https://pagespeed.web.dev to check speed my website. I have one problem for js, specifically it is with jquery.
It’s Registers an unload listener
Note: The most important way to optimize for bfcache in all browsers is to never use the unload event. Ever!
I see with jquery is still using unload
, Do you have any idea ?
Thank you
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Registers an unload listener after run Lighthouse with Angular ...
I performed a test using Lighthouse and returned the issue -> Registers an unload listener. The unload event ...
Read more >Unload listener error - WordPress.org
Unload listener error · 1. Disable all plugins except for NexGEN Gallery. · 2. Temporarily switch your theme to a WordPress default one...
Read more >Registers an unload listener - Invision Community
Hello. To fix the unload listener, find and replace "unload" by "pagehide" or "visibilitychange" on your source file.
Read more >Lighthouse: Avoid unload event listeners - GTmetrix
Avoiding unload event listeners is necessary to gain the benefits of the bfcache - an in-memory browser cache that stores a complete snapshot...
Read more >'Registers an unload listener' web.dev audit
When using web.dev/measure to test Google metrics, it appears that the New Relic's code results in 'Registers an unload listener' web.dev ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW, jQuery 4+ will have this code scoped to IE only. We can’t do the same for jQuery 3.x as we can’t detect Edge Legacy that easily without using userAgent which we avoid. jQuery 4+ won’t support Edge Legacy.
ok Thank you