URL of experiment: https://pavlovia.org/langlab/panreal (which should be publicly visible)
Description of the problem: When trying to pilot this experiment, both Chrome and Firefox get stuck on initialising the experiment. Using CTRL+SHIFT+J, I can see several different errors. A few errors reference a problem loading a favicon.ico (an issue I’ve seen in a few other posts), but others reference an NS_ERROR_FAILURE.
(The experiment is relatively simple. It presents a sentence followed by a picture, to which participants must respond with an arrow key. There’s not much more to it.)
I can pinpoint (maybe) the likely source of the problem. In an earlier version of this experiment, I did not have a variable initialized called condition in a code snippet in an early routine (in the Begin Experiment tab) and it ran smoothly. But since I added that variable, for counterbalancing purposes, it runs fine on PsychoPy on my Windows machine, but not online on Pavlovia. I know that this means that there is probably an issue in the JS version of the experiment.
Here’s the code snippet in Python:
import random
condition = random.choice(('a','b','c','d','e','f','g','h'))
And here it is in JS
import * as random from 'random';
var condition;
condition = random.choice(["a", "b", "c", "d", "e", "f", "g", "h"]);
If it’s of help, here is the URL for the code, html, stim, and other files, which should be public:
https://gitlab.pavlovia.org/langlab/panreal
I appreciate any help that anyone can provide, be it other forum posts to read through or a clear diagnosis that I’m missing.
Many thanks!