OBrink / DECIMER.ai

This repository contains the code for https://decimer.ai
MIT License
35 stars 8 forks source link

Firefox browser loading errors #16

Closed Iagea closed 2 years ago

Iagea commented 2 years ago

When a pdf is dropped, the loading images move until the text below is written: "The document has been uploaded and converted. Detecting chemical structures. This may take a few minutes. "

Then, there is no more loading GIF, which gives the impression that the webpage has frozen plus the DECIMER logo disappears momentarily.

OBrink commented 2 years ago

I can replicate the problem and have added a warning for Firefox users to switch to a different browser for the best user experience. Unfortunately, I do not know where to start to fix this issue.

OBrink commented 2 years ago

After solving the other issues with Safari, I realised that the same issue appears here, too.

OBrink commented 2 years ago

The issues with Firefox have been solved by adding a short timeout before sending the requests to the backend. What happened was that the request was sent before the website could load completely. Chrome/Opera/Edge appear to handle this is a better way. Here, whole parts of the website were not loading while the requests were handled.

I have come to the conclusion that the issues in Safari are a different issue. Here, the website is loading completely, but the gifs are simply not moving while a request is handled. I will open a separate issue for this problem.

The issue in Firefox is solved.