osm-search / Nominatim-Data-Analyser-Frontend

Frontend of the QA Tool for Nominatim. Helps to improve the OpenStreetMap data quality and therefore the Nominatim search results.
GNU General Public License v2.0
3 stars 3 forks source link

Page does not always load correctly on first try #2

Closed lonvia closed 3 years ago

lonvia commented 3 years ago

When going to the page, it sometimes shows text place holders at the place of the arrow and cross icons and the layer list has the wrong format. This looks like a race condition when some of the resources takes to long to read. The behaviour is unfortunately not reproducable but I've seen it a couple of times now.

AntoJvlt commented 3 years ago

What browser are you using when experiencing this behavior?

lonvia commented 3 years ago

Firefox 78.13 on Linux.

lonvia commented 3 years ago

Hmm, it is reproducible. Always happens when loading the page for the first time after starting Firefox. There is no issue with Chromium.

AntoJvlt commented 3 years ago

I tried to reproduce on my ubuntu and on my windows with firefox and I can't. I also tried to downgrade to firefox 78.13 and it doesn't change anything.

This is really weird especially because the layer list is only displayed when all the json layers have been loaded.

lonvia commented 3 years ago

I've tried in safe mode to make sure it isn't an issue with the extensions but the issue shows up there, too, although less reliably. To make debugging more fun, it won't appear when the debug console is open. Maybe it's a react bug.

Now that I know how to reproduce it, I can offer a screenshot:

broken_frontend

Reloading always fixes the issue.

lonvia commented 3 years ago

The issue is gone now. Not sure if a Firefox update did the trick or one of the recent commits. I'll close this for now.