I'm setting up a web page that will have space for 3 different p5 sketches. The problem is when I try to load a p5 sketch into an index.html page, it does not load properly or work properly. However, when I attempted the same thing with a p5 sketch that did not include an image, it worked perfectly fine.
I have tried using the <script src= script src="sketch.js"></script>
and this has worked for p5 sketches that do not include images, however it did not work for any sketches that have images with them.
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.js"></script;
<script src="sketch.js"></script>