Sketch is displayed twice inside my index.html page

However, https://Unpkg.com/p5 would grab the full version, which is useful only when we’re in the debugging phase. :bug:

For deploying, https://cdn.JsDelivr.net/npm/p5 is a much better fit, b/c it grabs the minified version: :cowboy_hat_face:

<script defer src=https://cdn.JsDelivr.net/npm/p5></script>
<!--<script defer src=https://Unpkg.com/p5/lib/addons/p5.sound.min.js></script>-->
<script defer src=sketch.js></script>
1 Like