-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @VL914 ,
The preloading method attempts to download all of the images needed in the experiment prior to starting the experiment. So it'll be downloading all 20,000 images in this case. The goal is to get the browser to cache these files so that during the experiment the files are loaded from memory and not the server.
20,000 images is a lot. Unfortunately web pages don't have a whole lot of control over the browser's cache of preloaded content. jsPsych can make a request to preload 20,000 images, but at some point the browser will probably conclude that it doesn't really need to save all 20,000 images. I haven't found good information about how browsers decide what to cache and what to ignore, so I don't know what the exact limits are for any particular browser. And the limits are customizable by the user, so while default information might be informative it wouldn't be a guarantee of success.
#724 talks about ways to preload images in smaller batches. Are you showing each of the 20,000 images to participants? Another option would be to only preload the images needed for a particular subject. |
Beta Was this translation helpful? Give feedback.
Hi @VL914 ,
The preloading method attempts to download all of the images needed in the experiment prior to starting the experiment. So it'll be downloading all 20,000 images in this case. The goal is to get the browser to cache these files so that during the experiment the files are loaded from memory and not the server.
20,000 images is a lot. Unfortunately…