metafizzy / metafizzy/infinite-scroll
Deprecating the unload event
- Dominant language
- HTML
- Stars
- 7.5k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Good day.
There is an "unload" event in the source code, chromium browsers are already complaining about it. Currently, I noticed that on mobile devices like chromium, unload does not fire or does not always fire, the return cache does not work correctly.
What is the correct way to replace it with “pagehide” or “beforeunload” or "visibilitychange"?
[Google Deprecating the unload event ](https://developer.chrome.com/docs/web-platform/deprecating-unload?hl=en&authuser=9)
Contributor guide
Research direction
Start by locating the existing "unload" event usage in the source code and read the linked Chrome deprecation guidance. Compare pagehide, beforeunload, and visibilitychange against the plugin's mobile and return-cache behavior. Done means the issue has a documented, justified replacement and the affected behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100