# Shows loading when i run index.html on browser

**URL:** <https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485>\
**Category:** Beginners\
**Created:** [August 25, 2020, 1:47pm UTC](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485 "2020-08-25T13:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamgsshetty](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Post date:** [August 25, 2020, 1:47pm UTC](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485/1 "2020-08-25T13:47:08Z")

</div>

function setup() {

createCanvas(400, 400);

video=createCapture(VIDEO);

video.hide();

}

function draw() {

background(220);

image(video,0,0);

}

output:-

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a3e440107b96857cf7453e5931dc7781a62f4fce.png)

---

<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:** [August 25, 2020, 6:04pm UTC](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485/2 "2020-08-25T18:04:01Z")

</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:** ![yhlaskerimov](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/yhlaskerimov/32/9725_2.png) [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Post date:** [August 26, 2020, 11:12am UTC](https://discourse.processing.org/t/shows-loading-when-i-run-index-html-on-browser/23485/3 "2020-08-26T11:12:34Z")

</div>

Hi, it seem that it can’t load your libraries…

[Here](https://www.youtube.com/watch?v=vj9nDja8ZdQ&ab_channel=timrodenbr%C3%B6kercreativecoding) is the best way using p5.js editor offline.

Best Regards,  
Yhlas Kerimov.
