# Running in Browser

**URL:** <https://discourse.processing.org/t/running-in-browser/25621>\
**Category:** Beginners\
**Created:** [November 22, 2020, 9:12pm UTC](https://discourse.processing.org/t/running-in-browser/25621 "2020-11-22T21:12:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpw](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cpw](https://discourse.processing.org/u/cpw)\
**Post date:** [November 22, 2020, 9:12pm UTC](https://discourse.processing.org/t/running-in-browser/25621/1 "2020-11-22T21:12:26Z")

</div>

Hi guys

I have some code running in p5.js fine. I thought all I needed to do was export and be able to open the index.html file with a browser to run on my desktop however I am getting just a loading message.

Any ideas?

Regards

Chris

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [November 22, 2020, 10:46pm UTC](https://discourse.processing.org/t/running-in-browser/25621/2 "2020-11-22T22:46:29Z")

</div>

Hi.  
If you load your sketch in the [p5.js web-editor](https://editor.p5js.org/) you can use the file tab and choose share, which will give you various options like “present”; the direct link to your sketch.  
Then you can also embed the sketch as an iframe in sites like f.e. Google’s Blogger etc.

---

<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 23, 2020, 1:30am UTC](https://discourse.processing.org/t/running-in-browser/25621/3 "2020-11-23T01:30:57Z")

</div>

> [@cpw](#):
>
> … and be able to open the “index.html” file with a browser to run on my desktop…

> [@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:** ![cpw](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@cpw](https://discourse.processing.org/u/cpw)\
**Post date:** [November 23, 2020, 11:20am UTC](https://discourse.processing.org/t/running-in-browser/25621/4 "2020-11-23T11:20:19Z")

</div>

Thanks will give that a try

![image001.jpg](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2485d26919316b1d80aa60f5ca8e2cb5bc0275fe.jpeg)
