question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Q & A] Registers an unload listener

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mgolcommented, Jun 27, 2022

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.

0reactions
tranngocson1996commented, Jun 22, 2022

ok Thank you

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found