Very bad performance. Help :( #3476
-
Hello, unfortunately my app has a very bad performance both on iOS and Android. The web version is very fast and powerful. I do not use any frameworks. What kind of tips could you give me? Should I include ionic locally or by the CDN? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hey there! There's not a lot of information to go off of from this. Can you please provide more details? "Bad performance" is pretty vague. |
Beta Was this translation helpful? Give feedback.
-
Ok, without going into tooo much detail, as there is a lot... here's what I got.
Your app is currently preloading just about everything when it doesn't need to. This could cause delays in start times and could be a bottle neck on lower end devices.
You're including fast click in your app, when you do not need to. Modern browser do not have a click delay, making fast-click not needed. In your video gestures and other delays in clicks/drags could just be related to fast click. Remove it.
You're mixing jquery into web component classes, which you shouldn't do IMO. Honestly, you probably don't need jquery as most modern browser run es6, which is more than capable these days. If you're seeing good performance on the desktop, it's not going to guarantee that the app will be performant on a real device. I honestly would suggest reworking your app to either use a framework like react or angular which provides best practices out of the box. Performance issues are related to your code, not capacitor. |
Beta Was this translation helpful? Give feedback.
-
You have mentioned the performance problems appear only on Android and not on iOS? I am just wondering how many different Android devices you have used to test the performance and what Android versions? |
Beta Was this translation helpful? Give feedback.
Ok, without going into tooo much detail, as there is a lot... here's what I got.
Your app is currently preloading just about everything when it doesn't need to. This could cause delays in start times and could be a bottle neck on lower end devices.
You're including fast click in your app, when you do not need to. Modern browser do not have a click delay, making fast-click not needed. In your video gestures and other delays in clicks/drags could just be related to fast click. Remove it.
You're mixing jquery into web component classes, which you shouldn't do IMO. Honestly, you probably don't need jquery as most mod…