# Sublime \> my P5.js sketch not running in localhost

**URL:** <https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071>\
**Category:** Beginners\
**Created:** [January 15, 2021, 1:11am UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071 "2021-01-15T01:11:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maneschka](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@maneschka](https://discourse.processing.org/u/maneschka)\
**Post date:** [January 15, 2021, 1:11am UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071/1 "2021-01-15T01:11:45Z")

</div>

![sublime-not-loading](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9a644ae1c5414c9069b10ed66991e3a50ccd8d33.jpeg)

Hi! I just installed p5.js on my Laptop. However, when I run the code, it freezes and it shows only “loading”

I’m working on windows. Does anyone know why?

Thanks

---

<div class="post-metadata">

**Author:** ![ReyzArtz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/reyzartz/32/11750_2.png) [@ReyzArtz](https://discourse.processing.org/u/ReyzArtz)\
**Post date:** [January 15, 2021, 9:52am UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071/2 "2021-01-15T09:52:38Z")

</div>

looks like u tried to preload something and it got stuck can u share the code of how u tried to import the library

---

<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:** [January 15, 2021, 4:56pm UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071/3 "2021-01-15T16:56:11Z")

</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)

> [@Help! Why I cannot use the P5JS](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/2):
>
> For an absolute beginner, my advice is to start on some p5js online editor, such as this 1: man_student[OpenProcessing.org/sketch/create](http://OpenProcessing.org/sketch/create) Some sketches I’ve got there btW: grinning By using such specialized p5js online resources we don’t need to make our own “index.html” file. wink When you decide it’s time to learn how to code your own “index.html” file, you can use more generic JS online editors, such as these 2 below: sunglasses You can also take a look at my sketches I…

---

<div class="post-metadata">

**Author:** ![maneschka](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@maneschka](https://discourse.processing.org/u/maneschka)\
**Post date:** [January 17, 2021, 2:50am UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071/4 "2021-01-17T02:50:35Z")

</div>

Hi! Thanks for your answer. I followed all the instructions on P5js for the installation and for the local server I installed Browser Sync…

However, Im now working on Brackets, and that works perfectly.

---

<div class="post-metadata">

**Author:** ![maneschka](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@maneschka](https://discourse.processing.org/u/maneschka)\
**Post date:** [January 17, 2021, 3:02am UTC](https://discourse.processing.org/t/sublime-my-p5-js-sketch-not-running-in-localhost/27071/5 "2021-01-17T03:02:29Z")

</div>

Thank you for your answers!
