Don't hide "Load More" button if infinite scrolling fails to load #380

Open
opened 2021-05-05 23:12:06 -04:00 by andrewguertin · 0 comments
andrewguertin commented 2021-05-05 23:12:06 -04:00 (Migrated from github.com)

If a service is overloaded or otherwise having problems, and the infinite scrolling returns a network error, the "Load More" button at the bottom of the page is removed. This makes it impossible to keep reading without refreshing and scrolling back to where you were (further overloading the server).

Simply not removing the button on a network error would let the user click it to continue reading where they left off. Something like this (barely tested) seems to work, although the section could be reworked to never remove it at all.

infinitescroll.js.patch.txt

If a service is overloaded or otherwise having problems, and the infinite scrolling returns a network error, the "Load More" button at the bottom of the page is removed. This makes it impossible to keep reading without refreshing and scrolling back to where you were (further overloading the server). Simply not removing the button on a network error would let the user click it to continue reading where they left off. Something like this (barely tested) seems to work, although the section could be reworked to never remove it at all. [infinitescroll.js.patch.txt](https://github.com/zedeus/nitter/files/6431503/infinitescroll.js.patch.txt)
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PAS/nitter#380
No description provided.