Skip to content

Pre-loading stimuli #3139

Answered by jodeleeuw
keijiota asked this question in Q&A
Sep 27, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @keijiota,

You can use a URL as a path for any image. This should work just fine:

const preload = {
	type: jsPsychPreload,
	images: ['https://mystimuli.org/img1.png']
}

The examples in our docs use relative paths, so if the website is hosted online it'll just grab the files from the same machine that is acting as the webserver.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hadarMenahem
Comment options

@Shaobin-Jiang
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3138 on September 27, 2023 12:44.