Page 1 of 1

Ionic 4 Published app - initial load very slow

Posted: Mon Mar 30, 2020 12:07 pm
by Dupdroid

My Ionic 4 published app takes forever to load on the first run.

Is this normal? If so, why? and what can be done about it?

I have PWA enabled, could this have something to do with it perhaps?

Any ideas would be greatly appreciated.

Thanks in advance.


Ionic 4 Published app - initial load very slow

Posted: Mon Mar 30, 2020 4:26 pm
by Serhii Kulibaba

Hello,

Have you published it using Appery.io hosting or your own?
Please check if there are any errors in the browser console. You can learn here: https://docs.appery.io/docs/using-bro... how to open the console.


Ionic 4 Published app - initial load very slow

Posted: Mon Mar 30, 2020 5:43 pm
by Dupdroid

Hi Serhii,

I'm using Appery.io hosting, and there are no errors. The app works fine once loaded.


Ionic 4 Published app - initial load very slow

Posted: Mon Mar 30, 2020 7:29 pm
by Serhii Kulibaba

Please share (https://docs.appery.io/docs/teams-sha...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the app name and a link to the published version


Ionic 4 Published app - initial load very slow

Posted: Tue Mar 31, 2020 8:28 am
by Dupdroid

Hi Serhii, I have done so.

Thank you.


Ionic 4 Published app - initial load very slow

Posted: Tue Mar 31, 2020 4:37 pm
by Serhii Kulibaba

Thank you. Unfortunately, this is a default Ionic behavior, which uploads all libraries/images at the first call. After that it uses cached values, that is why you see the speed up


Ionic 4 Published app - initial load very slow

Posted: Wed Apr 01, 2020 5:13 am
by Dupdroid

So it there any way of streamlining this?

Also, I have enabled PWA but when I publish a new release I can't get to refresh the app in any way without having to delete the app's stored data in Chrome's Site settings. I'm not 100% sure what settings to use that would work best. Kan you please advise?

Thanks in advance.


Ionic 4 Published app - initial load very slow

Posted: Wed Apr 01, 2020 8:06 pm
by Serhii Kulibaba

You are right, this is how the PWA works.
You can change the live time for all libraries by changing strategy. Please see the example here: https://blog.appery.io/2019/06/some-u...