Skip to content
Discussion options

You must be logged in to vote

Hi @NicoBiagi,

It sounds like the hosting is configured to not allow <script> tags that are inline. So instead of something like...

<html>
<head>
	<script src="jspsych.js"></script>
</head>
<body></body>
<script>
const jsPsych = initJsPsych();
</script>
</html>

... you may need to move the script into its own file and load it:

const jsPsych = initJsPsych();
<html>
<head>
	<script src="jspsych.js"></script>
</head>
<body></body>
<script src="my-experiment.js"></script>
</html>

This isn't a jsPsych-specific problem, so you can probably find helpful info in places like StackOverflow too. Here's a relevant Q&A.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NicoBiagi
Comment options

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

This discussion was converted from issue #2688 on June 30, 2022 14:11.