Trying loading media in thimbleproject

Trying to follow this post: (also )

I tried to use but I gave up as it doesn't allow me to load mp3 files to their assets folder.

The idea is to load a sound file but I am having issues accessing the files from the assets source as demo by @GoToLoop in previous posts. I am not sure what I am doing wrong or what I am missing. I am trying images and no success. What I am missing?

This is what I have:

"use strict";

const SUBFOLDER = 'assets/';
let original;

function preload(){
  original = loadImage('http://"+"');}

  //NOTICE I also tried to loaded from hte resource folder
  //original = loadImage(SUBFOLDER + 'original.jpg');

function setup() {

  createCanvas(original.width, original.height);


function draw() {

My html file is like this:

<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Made with Thimble</title>
  <link rel="stylesheet" href="style.css">

    <script async src=""></script>

  <!--<script language="javascript" type="text/javascript" src="https://"+""></script>
<script async language="javascript" type="text/javascript"  src="https://"+""></script>-->

  <script defer src="sketch.js"> </script>

  <h1>Welcome to Thimble</h1>
  <div id="supercanvas"></div>
  <p>Make something <strong>amazing</strong> with the web!</p>

So when I try running the js + html, I get a "Loading..." but nothing happens. Is this CORS related despite I am running in thimbleproject?

CORS relate comment:


Additional but not relevant:


Sign In or Register to comment.