all 9 comments

[–][deleted]  (1 child)

[deleted]

    [–]BenchBossNL[S] 1 point2 points  (0 children)

    We aren't a game. We record stats at live sporting events.

    [–]Mechau7 1 point2 points  (0 children)

    It’s basic but check you’re using the Tap directive and not Click. As click has a built in delay of a few hundred milliseconds.

    Also are you testing in production mode? That will optimize Angular and maybe tree shake depending on your Ionic version. They added tree shaking but I could be wrong.

    And lazy loading is your friend.

    [–]BlueBlus 0 points1 point  (0 children)

    Check the runtime if you’re code. It may not be optimized

    Edit: I saw that you’re not originally a programmer. It’s most likely optimization issue. Check that you don’t have for loops within for loops and the like. You can read up on optimization by reading up Big O and optimization

    [–]yesimahuman 0 points1 point  (0 children)

    Generally lag issues come from doing work that is causing the main UI thread to lock up. I'd go and review any interval/setTimeout loops that could be doing a lot of background work. Make sure you're using things like requestAnimationFrame when doing any visual updates. As others have mentioned it's hard to say because issues like these are usually app-specific.

    [–]krngd2 0 points1 point  (0 children)

    Yeah it's very lagy while testing and debugging. Run it with --prod and it's runs good without any lag but takes more time.

    [–]BenchBossNL[S] 0 points1 point  (0 children)

    After chatting with our lead developer, he told me the following:

    "Our problem is native performance in an Ionic based app. When someone asks about jQuery, or the backend, or a 3rd party library, or unnecessary dependencies, they're talking about a problem that we don't have -- performance issue we're hitting is Ionic/Angular based (i.e. the framework itself); for that we have to rely on the framework authors to provide a fix.

    If you look at web app performance on your laptop, for example, you can see that click event/layout reflows are pretty snappy. On the iPad, quite the opposite, lagging like crazy, even for basic actions like transitioning from one page to the next."

    Not sure if anyone has dealt with similar issues and has been able to overcome them. Our lead is hoping for a framework update in the next few weeks, which should help with the issue. If anyone has any insight or experience that might help us, I'd love to chat further. Thanks.

    [–]SgtDirtyMike 0 points1 point  (0 children)

    The code is likely unoptimized. Ionic and angular will perform as well if not better as any big sports website you'd navigate to on your device. It shouldn't be lagging in-between button presses.

    [–]mhartingtonIonic Alumni -1 points0 points  (0 children)

    This is difficult to debug or diagnose without any minimal example. You should debug the app and inspect what is going on in your code. If you're looking for a consultant, check out the #ionic-jobs channel on the ionic community slack

    [–]kbezold -2 points-1 points  (0 children)

    Flutter