URL of experiment: https://pavlovia.org/chm/mst
Description of the problem:
I’m working with @dgfitch on an experiment that uses several stimulus sets with hundreds of small stimuli in each set.
Right now, we have resource preloading working (thanks to your help!) but! It’s pretty slow — we’re loading 384 little (~30k) image stimuli for one set and it takes a bit over two minutes to get everything loaded. And if we put all the stimulus sets in there, it’ll preload all of them, even though we’ll only show any given ppt one set.
Watching in my browser dev tools, it looks like the requests are being made sequentially rather than in parallel. Also, there are a couple 301 redirects in each resource’s request, each of which involves a round-trip to run.pavlovia.org, which is about 6000 km from here and hence adds about 100ms latency to each request.
So, a few questions:
- Is there a way to preload only a subset of stimuli from /resources into an experiment?
- Is there a way to parallelize loading stimuli?
- Can we escape the 301 redirect in request loading somehow?
- Is there a way to load resources from somewhere other than pavlovia — say, a CDN?