Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Ionic 4 Published app - initial load very slow

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic 4 Published app - initial load very slow

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.

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Ionic 4 Published app - initial load very slow

Hi Serhii,

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic 4 Published app - initial load very slow

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

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Ionic 4 Published app - initial load very slow

Hi Serhii, I have done so.

Thank you.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic 4 Published app - initial load very slow

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

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Ionic 4 Published app - initial load very slow

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Ionic 4 Published app - initial load very slow

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...

Return to “Issues”