# How to avoid the white screen when loading initially in ionic apps

**URL:** <https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398>\
**Category:** ionic-v3\
**Created:** [August 9, 2017, 10:13am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398 "2017-08-09T10:13:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabarinathen](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sabarinathen](https://forum.ionicframework.com/u/sabarinathen)\
**Post date:** [August 9, 2017, 10:13am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/1 "2017-08-09T10:13:32Z")

</div>

How can i hide the inital loading when i was running on the android device

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 9, 2017, 10:16am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/2 "2017-08-09T10:16:53Z")

</div>

1. Use `--prod` to build
2. Do less during startup (imports, constructors, non-lazy-loadded pages)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 10, 2017, 7:56am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/3 "2017-08-10T07:56:24Z")

</div>

Split this topic on August 10, 2017, 7:56am UTC

5 posts were split to a new topic: [Animated splash screen SplashPage shows Homepage first](https://forum.ionicframework.com/t/animated-splash-screen-splashpage-shows-homepage-first/101503)

---

<div class="post-metadata">

**Author:** ![sabarinathen](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sabarinathen](https://forum.ionicframework.com/u/sabarinathen)\
**Post date:** [August 10, 2017, 7:48am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/8 "2017-08-10T07:48:59Z")

</div>

How to do that as you mentioned less during startup i cant understand your suggesstions?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 10, 2017, 7:57am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/13 "2017-08-10T07:57:15Z")

</div>

When exactly do you see the white screen?  
Did you build with `--prod`?  
How are you testing?  
Also post your `ionic info` output please.

---

<div class="post-metadata">

**Author:** ![sabarinathen](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sabarinathen](https://forum.ionicframework.com/u/sabarinathen)\
**Post date:** [August 10, 2017, 7:59am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/14 "2017-08-10T07:59:31Z")

</div>

**cli packages: (C:\Users\Admin\sample\_locationAccuracy\node\_modules)**

```
@ionic/cli-plugin-cordova : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0

```

**global packages:**

```
Cordova CLI : 7.0.1

```

**local packages:**

```
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0

```

**System:**

```
Node : v8.1.4
OS : Windows 10
npm : 5.0.3
```

---

<div class="post-metadata">

**Author:** ![sabarinathen](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sabarinathen](https://forum.ionicframework.com/u/sabarinathen)\
**Post date:** [August 10, 2017, 10:35am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/15 "2017-08-10T10:35:37Z")

</div>

how to avoid the white screen is there any other way to use preference

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 10, 2017, 10:54am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/16 "2017-08-10T10:54:10Z")

</div>

Reply to my other 2 questions please.

> [@sabarinathen](#):
>
> is there any other way to use preference

What do you mean by that?

---

<div class="post-metadata">

**Author:** ![sabarinathen](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@sabarinathen](https://forum.ionicframework.com/u/sabarinathen)\
**Post date:** [August 10, 2017, 11:09am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/17 "2017-08-10T11:09:25Z")

</div>

No thanks @Sujan12 I found an answer

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [August 10, 2017, 11:09am UTC](https://forum.ionicframework.com/t/how-to-avoid-the-white-screen-when-loading-initially-in-ionic-apps/101398/18 "2017-08-10T11:09:53Z")

</div>

Please share the solution with us.
