# Sketch is displayed twice inside my index.html page

**URL:** <https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335>\
**Category:** Beginners\
**Created:** [November 8, 2019, 2:29pm UTC](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335 "2019-11-08T14:29:14Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 8, 2019, 3:58pm UTC](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335/14 "2019-11-08T15:58:02Z")

</div>

> [@kll](#):
>
> insofar @GoToLoop tip is better you would get the very new version automatically.  
> [https://Unpkg.com/p5](https://Unpkg.com/p5)

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

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

```auto
<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>

```

---

_[View the full topic](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335)._
