# Ionic 2 - App opening really slow

**URL:** <https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533>\
**Category:** ionic-v3\
**Created:** [December 7, 2016, 2:45pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533 "2016-12-07T14:45:45Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyfittizio](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johnnyfittizio](https://forum.ionicframework.com/u/johnnyfittizio)\
**Post date:** [December 7, 2016, 2:45pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/1 "2016-12-07T14:45:45Z")

</div>

Hello guys!

I really like Ionic 2 - but I have some issues regarding performances.

After installing Crosswalk is a bit better.  
That means that once I am inside the app it goes kind of smoothly.

The real problem is the opening of the app.

Testing on Android 4.4 it takes 22 seconds to open it.  
And about 12-13 seconds to call it from the background.

Is this a general issue?  
Do you have similar time for opening the app?

---

<div class="post-metadata">

**Author:** ![pwespi](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pwespi](https://forum.ionicframework.com/u/pwespi)\
**Post date:** [December 7, 2016, 3:02pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/2 "2016-12-07T15:02:36Z")

</div>

Which version of ionic are you using? I have experienced a lot of improvement in boot time with the release candidates (currently 2.0.0-rc.3) compared to some of the older beta versions.

For more information see:

> [@Ionic 2 speed up boot time?](https://forum.ionicframework.com/t/ionic-2-speed-up-boot-time/46372):
>
> Boot time is something i see hasn’t improved even with webpack, Angular 2 and ionic 2 versions, i have tested ionic 1 and 2 sidemenu starters and the difference is of 2 secs in favor of Ionic 1, ionic 1 boot time is 3 sec while ionic 2 boot time is 5 secs, not so big of a deal, but when it comes to a more complex app, that time doubles for ionic 2. My app has some complicated stuff, SplashScreen plugin, SqlStorage database usage, Charts with ng2-charts and a few other small things, i think all …

---

<div class="post-metadata">

**Author:** ![johnnyfittizio](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johnnyfittizio](https://forum.ionicframework.com/u/johnnyfittizio)\
**Post date:** [December 7, 2016, 3:32pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/3 "2016-12-07T15:32:51Z")

</div>

I have just upgraded to rc3.

The opening time remains the same unfortunately.

---

<div class="post-metadata">

**Author:** ![bsampica](https://avatars.discourse-cdn.com/v4/letter/b/bbce88/32.png) [@bsampica](https://forum.ionicframework.com/u/bsampica)\
**Post date:** [December 7, 2016, 3:53pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/4 "2016-12-07T15:53:55Z")

</div>

Make sure on android, that you’re not seeing a blank splash screen. We thought we were having problems with boot up times for the app on Android versions, and it turned out it was the splash screen playing, but the splash had no content.

---

<div class="post-metadata">

**Author:** ![johnnyfittizio](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johnnyfittizio](https://forum.ionicframework.com/u/johnnyfittizio)\
**Post date:** [December 8, 2016, 10:49am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/5 "2016-12-08T10:49:24Z")

</div>

Thanks @bsampica. Very good hint!  
It may be that main if not the whole cause of the problem.

By now I have reduced the opening time but it is still slow: around 17 seconds.  
If restored from background it opens it instantly.  
But I think I can manage to reduce it further.

How do how manage to remove that white splashscreen?

This is my code concerning the splashscreen:

App.component:

`import { StatusBar, Splashscreen } from 'ionic-native';`

```
hideSplashScreen() 
{
	if (Splashscreen) 
	{
		setTimeout(() => {
			Splashscreen.hide();
		}, 100);
	}
}

```

Config.xml:

```
  <preference name="ShowSplashScreen" value="true"/>
  <preference name="AutoHideSplashScreen" value="true"/>
  <preference name="SplashScreen" value="screen"/>
  <preference name="SplashScreenDelay" value="3000"/>
  <preference name="SplashShowOnlyFirstTime" value="false"/>
  <preference name="SplashMaintainAspectRatio" value="true"/>
  <preference name="FadeSplashScreenDuration" value="300"/>
  <feature name="SplashScreen">
    <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen"/>
    <param name="onload" value="true" />
  </feature>

```

What do you think?

---

<div class="post-metadata">

**Author:** ![johnnyfittizio](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johnnyfittizio](https://forum.ionicframework.com/u/johnnyfittizio)\
**Post date:** [December 8, 2016, 2:25pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/6 "2016-12-08T14:25:56Z")

</div>

I have actually tried a blank app with rc3 and the opening time is 15 seconds on android 4

---

<div class="post-metadata">

**Author:** ![chanphillip](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chanphillip/32/105478_2.png) [@chanphillip](https://forum.ionicframework.com/u/chanphillip)\
**Post date:** [December 14, 2016, 3:39am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/7 "2016-12-14T03:39:21Z")

</div>

Hi I have the same problem now. My app was running properly with rc3 until I upgraded all of my packages including ionic-app-scripts, angular and typescript.

---

<div class="post-metadata">

**Author:** ![antoinedupont](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@antoinedupont](https://forum.ionicframework.com/u/antoinedupont)\
**Post date:** [December 23, 2016, 4:34am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/8 "2016-12-23T04:34:33Z")

</div>

Same issue, the opening time is 15sec also on ios. It appeared since I upgraded to ionic rc4 with its related packages. Does anyone know the reason why?

---

<div class="post-metadata">

**Author:** ![chanphillip](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chanphillip/32/105478_2.png) [@chanphillip](https://forum.ionicframework.com/u/chanphillip)\
**Post date:** [December 23, 2016, 6:06am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/9 "2016-12-23T06:06:12Z")

</div>

You can try building with `--prod`  
It does work for me.

See another post about the same issue.

> [@RC4 seems slower to load the app](https://forum.ionicframework.com/t/rc4-seems-slower-to-load-the-app/73495/):
>
> Hello. I’ve updated my app to use ionic v2 RC4 today, and when I’ve run the app on my Android device, the app’s loading time has increased a bit in comparison with the previous ionic 2 version. Now, after the splashscreen fades, the app still spends about 2 seconds more in a blank screen before showing the app. Is anyone else experiencing this issue? Any advice about what can I do?

---

<div class="post-metadata">

**Author:** ![antoinedupont](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@antoinedupont](https://forum.ionicframework.com/u/antoinedupont)\
**Post date:** [December 23, 2016, 2:01pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/10 "2016-12-23T14:01:01Z")

</div>

Thanks, it does the trick!

---

<div class="post-metadata">

**Author:** ![r7sy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/r7sy/32/105602_2.png) [@r7sy](https://forum.ionicframework.com/u/r7sy)\
**Post date:** [December 23, 2016, 6:50pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/11 "2016-12-23T18:50:45Z")

</div>

As of ionic-app-scripts version 0.0.47 , build commands does not use AoT ( Ahead of time compilation ) by default ,  
you have to use --prod to build in production mode that uses AoT.  
You can see this mentioned in the [ChangeLog](https://github.com/driftyco/ionic-app-scripts/blob/master/CHANGELOG.md)

It’s good to keep any eye for major changes when updating .

---

<div class="post-metadata">

**Author:** ![ytanwar](https://avatars.discourse-cdn.com/v4/letter/y/278dde/32.png) [@ytanwar](https://forum.ionicframework.com/u/ytanwar)\
**Post date:** [February 13, 2017, 10:49am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/12 "2017-02-13T10:49:58Z")

</div>

Any luck in improvimg app launch time ?

---

<div class="post-metadata">

**Author:** ![johnnyfittizio](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@johnnyfittizio](https://forum.ionicframework.com/u/johnnyfittizio)\
**Post date:** [February 13, 2017, 11:04am UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/13 "2017-02-13T11:04:17Z")

</div>

Great question!  
I postponed to work on this issue to concentrate on other stuff - But as I can see so far even with Ionic 2.0.0 the opening time is slow.

---

<div class="post-metadata">

**Author:** ![alexb](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexb](https://forum.ionicframework.com/u/alexb)\
**Post date:** [February 13, 2017, 9:34pm UTC](https://forum.ionicframework.com/t/ionic-2-app-opening-really-slow/72533/14 "2017-02-13T21:34:16Z")

</div>

Have you tried any of the new optimisations? [https://github.com/driftyco/ionic-app-scripts/releases/tag/v1.1.0](https://github.com/driftyco/ionic-app-scripts/releases/tag/v1.1.0)

I am sure Ionic would love your feedback on this!
