Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

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

Open
elboletaire opened this issue May 8, 2019 · 10 comments
Open

Comments

@elboletaire
Copy link
Contributor

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 elboletaire changed the title Sometimes page does not load, showing a "loading" message [minor] Sometimes page does not load, showing a "loading" message May 8, 2019
@indutny
Copy link
Contributor

indutny commented May 8, 2019

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

@elboletaire
Copy link
Contributor Author

elboletaire commented May 8, 2019

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.

@indutny
Copy link
Contributor

indutny commented May 8, 2019

Thank you! You're the best contributor 😀

@elboletaire
Copy link
Contributor Author

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
Copy link
Contributor Author

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).

@indutny
Copy link
Contributor

indutny commented May 9, 2019

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

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

@elboletaire
Copy link
Contributor Author

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
Copy link
Contributor Author

elboletaire commented May 9, 2019

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

@indutny
Copy link
Contributor

indutny commented May 9, 2019

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

@elboletaire
Copy link
Contributor Author

Done in #36

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants