Piped icon indicating copy to clipboard operation
Piped copied to clipboard

Prevent automatic refresh after a new build

Open lbrdt opened this issue 2 years ago • 6 comments

Official Instance

Describe the bug

When a new build is finished, new static resources are generated. So when Piped tries to sync with the newly built resources, it refreshes the page automatically without warning. Sometimes when you're watching the video. There needs to be a warning prompt to allow user to refresh when it is convenient.

To Reproduce

  1. Visit a piped instance watch some videos for it to cache its resource in the browser.
  2. Start a build wwith a new commit is merged
  3. Go to the Piped instance
  4. Try waiting a while or view a video
  5. The page refreshes on it's own

Expected behavior

A litle prompt to allow user to refresh at their convenience

Logs/Errors

No logs

Browser, and OS with Version.

Chromium Browsers FIrefox Mobile

Additional context

It happens on both desktop and mobile browser

lbrdt avatar Jul 11 '22 04:07 lbrdt

I had the same behavior on the feed page -- when that page was working. All the screenshots on my feed would load, then right away the page would reload as I was about to click on a video. It never happened to me while watching a video ... but it's still very annoying.

lima46zulu avatar Jul 12 '22 11:07 lima46zulu

As discussed with Kavin on IRC: the way Element Web does it seems good. It shows a small notification in the corner alerting the user to a new update. It offers an Update button, which reloads the web app, as well as Dismiss.

opusforlife2 avatar Jun 15 '23 03:06 opusforlife2

@opusforlife2 That is not the current behaviour on iPad OS (Chrome). Sometimes, not all ways, when I go to piped the page first loads. Then it automatically reloads ... and will continue to reload every few seconds or so. In other words the site is unusable when this happens. I have never noticed the notification button (I don't have my iPad handy), but the page just reloads on its own.

lima46zulu avatar Jun 15 '23 17:06 lima46zulu

It doesn't seem like you read the comment fully? I'm talking about Element Web.

opusforlife2 avatar Jun 16 '23 17:06 opusforlife2

I was wondering why the first time every time I opened Piped after clearing cache and cookies (I had set this to automatically occur upon browser close), it would refresh after a few minutes, regardless of what I am doing (this often happens to me while watching a video, like just now, when it refreshed the page when I was 1 minute and 43 seconds into the video).

moriel5 avatar Nov 12 '23 22:11 moriel5

@opusforlife2 I agree, also Telegram and WhatsApp (not a WhatsApp user, but my family are) so something similar, where they offer a static overlay "Update Now" button to refresh (no option to dismiss).

moriel5 avatar Nov 12 '23 22:11 moriel5