End of experiment issues: the page reload on Safari/Mac
I built two experiments with OSWeb 1.3.5 hosted on a server with JATOS 3.5.1. I pre-tested the experiments myself on different browsers (except Safari) and it worked fine. I now have students piloting the experiments and I had a lot of issues.
First, I have to mention that, in order to avoid experiencing data loss during the experiment (it happened some trials were missing during pre-testing phases), I use jatos.submitResultData instead of jatos.appendResultData (https://github.com/kristian-lange/opensesame-extension-osweb/blob/345b528b6cad40a6bade0b48bb9ffc6f36702add/osweb/src/js/jatos.js).
So far, I collected overall 50 results on JATOS. Nearly half are participants who tried to start the experiments but their page got stuck on OSWeb loading (a survey pointed out that those participants did not update their browser so it is not an issue). I only had 4 participants who finished the experiment without any problem. However, they said that it took a long time to get redirected to the "endPage" (~30 seconds). I had the same during my own pre-tests but I thought it was because I tested the experiment on four browsers at the same time and that a lot of windows were open. Finally, I had around 15 participants who seemed to end the experiment (they apparently got all the trials) but their page reloaded automatically due to an error before showing the endPage.html file. The automatic reload then led to the experiment to fail. I surveyed the students and it looks like when that problem occurred it was always when using Safari and/or MacOS, and those who finished the experiment without any problem have a system operating under Windows and used Chrome or Firefox.
Also, as the size of the data file is around 2MB, maybe it takes a lot of time to send the data at once and that, for a reason I don't know, it crashes with Safari/Mac and it works with Windows/Non-Safari browsers (but after some delay).
Finally, I asked some students using Safari to do the task again but with only 2 trials instead of around 150 and it worked.
Any help would be verry appreciated.