# Random reloads of javascript

**URL:** <https://forums.fusetools.com/t/random-reloads-of-javascript/6055>\
**Category:** Bug Reports\
**Created:** [April 21, 2016, 3:09pm UTC](https://forums.fusetools.com/t/random-reloads-of-javascript/6055 "2016-04-21T15:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozef](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jozef](https://forums.fusetools.com/u/Jozef)\
**Post date:** [April 21, 2016, 3:09pm UTC](https://forums.fusetools.com/t/random-reloads-of-javascript/6055/1 "2016-04-21T15:09:59Z")

</div>

Hi,

I am having this issue where my app randomly reloads my JavaScript.

At the top of my js file I print `javascript init` so i csn see when my script starts running. Sometimes when I run the app the console shows `javascript init` two or more times without me saving or reloading my script.

After the initial start up I show a login screen where a user can log into my app. On iOS there is no (visible) problem and the user can log in. On Android my app crashes and says the request has already been completed.

I think that this is because the script executes multiple times.=

To filter out my problem I commented out my entire script and added each function one by one. Then I noticed that the script sometimes randomly reloads after the initial running of my code

Is there any know issue about this?

---

<div class="post-metadata">

**Author:** ![Jozef](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jozef](https://forums.fusetools.com/u/Jozef)\
**Post date:** [April 21, 2016, 4:12pm UTC](https://forums.fusetools.com/t/random-reloads-of-javascript/6055/2 "2016-04-21T16:12:32Z")

</div>

I tried to create a new project with just a MainView.ux and a MainView.js and I got the same issues.

Sometimes I see INIT only once and sometimes i see it two or more times.

Here is my code:

MainView.ux

```auto
<App Theme="Basic">
    <JavaScript File="MainView.js" />
</App>

```

MainView.js

```auto
console.log("INIT");

```

I’m using the latest version of fuse: 0.12.1

---

<div class="post-metadata">

**Author:** ![Jozef](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jozef](https://forums.fusetools.com/u/Jozef)\
**Post date:** [April 25, 2016, 8:56pm UTC](https://forums.fusetools.com/t/random-reloads-of-javascript/6055/3 "2016-04-25T20:56:45Z")

</div>

This also occured when testing with example apps (Newsfeed sample provided by Fuse)

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [April 26, 2016, 2:46pm UTC](https://forums.fusetools.com/t/random-reloads-of-javascript/6055/4 "2016-04-26T14:46:38Z")

</div>

Hi Jozef, we chatted on slack a little.

I’ll keep you psoted here on progress. thanks for reporting this.
