ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Delays on changing state of app

Open netHitch opened this issue 12 years ago • 32 comments

Hi Ionic! I'm testing this framework on simulator, chrome emulation mode and iOS7 device (last iPad mini and iPhone 5) and noticed some delays during transitions between states. When I'm taped on "Back" button in Chrome emulation mode or mobile safari - everything is ok, delay is absent. But when application is running on device I noticed some delay before animation for transition starts. (Duration of delay in default application ~200-400 ms and duration of this delay increases proportionally number of HTMLElements in own application) I'm attaching two screenshots of timelines for 'back event' in the application and in the mobile safari on the device. It seems that transition on the device starts only after longest "touched event" dispatched and it's a problem for responsive application UI. This screenshots and description of behavior for default ionic application( "in CLI: ionic start hello").Could someone help me with this question for responsive? Should I send more information?

Timeline for app app_ionic

Timeline for mobile safari browser_ionic

netHitch avatar May 19 '14 08:05 netHitch

+1 for the delay on the state changes on iPhone 4 (while being perfect on chrome or ios-sim).

fkukuck avatar May 19 '14 08:05 fkukuck

+1 I am experiencing the same issues.

JrSchild avatar May 19 '14 11:05 JrSchild

+1 I am experiencing the same issues.

iOS 7.1.1 iPhone 5 Ionic 1.0.0-beta.b5

juliancesar avatar May 19 '14 18:05 juliancesar

+1 !

bengtweisse avatar May 21 '14 12:05 bengtweisse

+1 for the delay especially on older devices such as iPhone 4/4S

danr-machinescapes avatar May 21 '14 13:05 danr-machinescapes

+1, experiencing the same problems.

wiwong avatar May 21 '14 13:05 wiwong

+1 - exactly the issue I'm facing.

maartenhurkens avatar May 21 '14 13:05 maartenhurkens

+1 My hope is on beta.7 :angel:

Android 4.4.2 Moto X Ionic 1.0.0-beta.6 (And olders of course)

felquis avatar May 22 '14 04:05 felquis

+1 for fixing the delay.

robkuijpers avatar May 22 '14 06:05 robkuijpers

This is not an easy problem to fix in the browser, but we are working on a solution.

The browser has to compile a new page's HTML, then insert that into the DOM, then go to the new page. What takes time is compiling the new page's HTML.

We're working on a solution that will precompile and cache pages that are big, saving their elements in memory to be reused later when needed.

ajoslin avatar May 22 '14 12:05 ajoslin

Will this be ready for beta 7?

maartenhurkens avatar May 22 '14 13:05 maartenhurkens

I doubt it. We have paused work on it to focus on end to end tests and demos so we can be sure to release without bugs.

We should be done with this this week, then refocus on navigation next week. Give it a couple of weeks, I would say. On May 22, 2014 7:51 AM, "Maarten" [email protected] wrote:

Will this be ready for beta 7?

— Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ionic/issues/1434#issuecomment-43890243 .

ajoslin avatar May 22 '14 14:05 ajoslin

+1, but i'm glad to hear that you're working on it.

worm-emoji avatar May 23 '14 06:05 worm-emoji

+1 for this issue and making this a higher priority : for people (like me) comparing html mobile frameworks, this is a major drawback on such a common use case.

mbody avatar May 23 '14 07:05 mbody

@mbody yup, it's a really big deal. We'll focus on it as soon as we can.

It's also really important, though, for us to improve our testing infrastructure sooner than later. We're setting up some stuff that will make it very easy for us to know if anything in Ionic has broken.

We already have unit tests, but those only get you so far. You can't test your UI with unit tests.

And end-to-end tests take too long to write and are not easily maintainable.

We'll be taking a similar approach to Huxely.

ajoslin avatar May 23 '14 11:05 ajoslin

+1 having the same problem (in addition to some memory leak issues), and eagerly waiting for a solution. Other than these two, ionic is really awesome. After they fix these issue, I think this should be the preferred framework for hybrid mobile apps.

bappy004 avatar Jun 16 '14 05:06 bappy004

+1

ctaepper avatar Jul 07 '14 11:07 ctaepper

+1

tobbbe avatar Jul 24 '14 09:07 tobbbe

+1

akships avatar Jul 29 '14 16:07 akships

+1 :)

rbinksy avatar Aug 18 '14 16:08 rbinksy