Ionic router on the JavaScript API is slow

I been using the ionic/core using JavaScript on StencilJS. When going from page to page and opening any modal the app is really slow to start at first on the web. The same doesn’t happen when running locally.
If you go to my app at you will see that at first going from page to page and opening the create modal it last a long time. Once it does the first time the speed is faster. But if you clear the cache the same things happens. Any info about this?

1 Like

Same issue here with the same setting (stencil, ionic-pwa). In my case route transitions are much slower than modals (using ion-router). On dev-server transitions between routes are amazing fast, on prod-server they are dramatically slow. This only happens for initial loads (when the app hasn’t been cached). But I’m not talking about 1-2 seconds…

@bandito Did you find any solution meanwhile?

1 Like

Nope. I don’t know what to do either. I killed that project in my link though, I am doing a different one but when I release a web demo I’ll post back if the same thing happens.

Sharing some code always helps :smiley:

Do you have any examples (src code) that we can look at?

I killed the app that was in the question and reused the code on the current one. The old project was supposed to only run locally and this one is using Firebase as the backend but for now the same error is not happening, so I am going to mark it as the old one just had shitty coding.