metafizzy / metafizzy/infinite-scroll

Deprecating the unload event

Open
#980 4 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.