derivepass-vue icon indicating copy to clipboard operation
derivepass-vue copied to clipboard

[minor] Sometimes page does not load, showing a "loading" message

Open elboletaire opened this issue 6 years ago • 10 comments

Describe the bug From time to time, derivepass website does not load, showing a "loading" message in the middle. I need to refresh all the assets removing them from cache (ctrl + shift + r) to get it working again.

To Reproduce I'm not really sure how to reproduce this... but here's what I usually do:

  1. I usually pin the derivepass website, so I always have it loaded when I open firefox.
  2. It does not give any kind of problem when it's pinned.
  3. From time to time, I unpin it (mostly accidentally), and I think is after that when I get the message.
  4. I then close firefox, and when I open it again, if I try to access derivepass, it's in that moment when it shows the 'loading' message.

Expected behavior To properly load the page, under any case.

Screenshots imatge

Desktop (please complete the following information):

  • OS: Any, under desktop
  • Browser: Firefox
  • Version: happened with, at least, latest 3 versions; currently using 66.0.5

Smartphone (please complete the following information): Never experienced this under a mobile device.

elboletaire avatar May 08 '19 11:05 elboletaire

Looks like an issue with the service worker. Does it print anything to web inspector console?

indutny avatar May 08 '19 16:05 indutny

I'll check it the next time it happens to me; as said it does not happen very often, that's why I marked it as minor.

elboletaire avatar May 08 '19 18:05 elboletaire

Thank you! You're the best contributor 😀

indutny avatar May 08 '19 18:05 indutny

Here's what I can see in the console (note that I opened it after the page was showing the 'loading' message, there may be messages not printed here due to that):

imatge

elboletaire avatar May 09 '19 10:05 elboletaire

I found a way to properly reproduce it:

  1. Open derivevpass under firefox and pin the page.
  2. Close firefox
  3. Open firefox again, and un-pin derivepass.
  4. In a new tab, access to derivepass.

I'm always getting the "loading" message if I do these steps (and I can't see more messages in the log apart from those one above).

elboletaire avatar May 09 '19 10:05 elboletaire

Gosh, I think service worker might have gotten borked. Sorry!

Try going to about:serviceworkers and unregistering the worker for derivepass.com.

indutny avatar May 09 '19 10:05 indutny

Ok, step by step, I was editing my previous message before you posted, so here's what I was adding:

I was gonna edit previous message adding more information:

  • Chrome apparently works perfectly.
  • Microsoft Edge always shows the "Loading" message, although I guess it does not support service workers maybe?

Gosh, I think service worker might have gotten borked. Sorry!

Try going to about:serviceworkers and unregistering the worker for derivepass.com.

I tried to remove it, but seems to not make any change. In fact, if I remove it, the first time I access to derivepass it shows the "loading" message, so I still need to refresh all assets removing cache.

elboletaire avatar May 09 '19 10:05 elboletaire

Ok, apparently the Edge error is different. Based on "can I use" I see serviceworkers are supported; therefore I decided to open there the console, and here's what appears under microsoft Edge:

imatge

Do you want a different issue for this?

Edit: Apparently yes, are different issues. What is not supported is TextEncoder and TextDecoder: https://caniuse.com/#search=textencoder

elboletaire avatar May 09 '19 10:05 elboletaire

Oh gosh! This is different indeed. Could you open one, please?

indutny avatar May 09 '19 11:05 indutny

Done in #36

elboletaire avatar May 09 '19 12:05 elboletaire