We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b6656d commit 3a578edCopy full SHA for 3a578ed
src/app/pages/tasks/task-playables/face-name-association/face-name-association.component.ts
@@ -150,9 +150,19 @@ export class FaceNameAssociationComponent extends AbstractBaseTaskComponent {
150
// store in cache for next block
151
this.config.setCacheValue(FaceNameAssociationCache.STIMULI, this.stimuli);
152
}
153
+
154
+ this.stimuli.forEach((stimulus) => {
155
+ this.preload(stimulus.imagePath);
156
+ });
157
158
super.start();
159
160
161
+ private preload(url: string) {
162
+ const img = new Image();
163
+ img.src = url;
164
+ }
165
166
private getActualAnswer(stimulus: FaceNameAssociationStimulus): UserResponse {
167
if (this.phase === 'learning-phase') {
168
return UserResponse.NA;
0 commit comments