# I'm trying to run 5p.js code from the example files but it is stuck at "loading..."

**URL:** <https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794>\
**Category:** Beginners\
**Created:** [October 21, 2020, 2:39pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794 "2020-10-21T14:39:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaf000olaf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/olaf000olaf/32/11295_2.png) [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Post date:** [October 21, 2020, 2:39pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794/1 "2020-10-21T14:39:07Z")

</div>

I’ve double-clicked the index.html file in the example folder that you can download from the p5js website and it’s stuck at loading. I have copy-pasted 51 lines of code from a project I made in open processing into the sketch.js file in the sublime text editor and it won’t load, I have no idea what to do.

---

<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:** [October 21, 2020, 2:43pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794/2 "2020-10-21T14:43:39Z")

</div>

> [@Maximum size of a method in Processing](https://discourse.processing.org/t/maximum-size-of-a-method-in-processing/17136/29):
>
> Another workaround: [Chrome-allow-file-access-from-file.com](http://Chrome-allow-file-access-from-file.com) A more complete solution: More solutions: [GitHub.com/processing/p5.js/wiki/Local-server](http://GitHub.com/processing/p5.js/wiki/Local-server)

---

<div class="post-metadata">

**Author:** ![olaf000olaf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/olaf000olaf/32/11295_2.png) [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Post date:** [October 21, 2020, 2:56pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794/3 "2020-10-21T14:56:23Z")

</div>

Is there a way to solve it on chrome on a mac? I can always do it on my home windows computer but I like to code on my school mac computer because the keys are easier to reach.

---

<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:** [October 21, 2020, 3:05pm UTC](https://discourse.processing.org/t/im-trying-to-run-5p-js-code-from-the-example-files-but-it-is-stuck-at-loading/24794/4 "2020-10-21T15:05:36Z")

</div>

> [@olaf000olaf](#):
>
> Is there a way to solve it on chrome on a mac?

I’m a Windows user, so I dunno how to change app shortcuts on a Mac.

You should try out the other options as well.
