framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Choppy JS animation between pages in v2

Open ocean89 opened this issue 9 years ago • 5 comments

This is a (multiple allowed):

  • [x] bug

  • [ ] enhancement

  • [ ] feature-discussion (RFC)

  • Framework7 Version: v2 beta 17

  • Platform and Target: cordova iOS

What you did

Load a second page with large DOM, in this case a couple of tables with data and images (weather data). The page is "stacked" and pre rendered.

Expected Behavior

Fast smooth transition to second (next) page, like in v1.

Actual Behavior

Choppy and slow JS transition.

I know the removal of the stacked class will cause a reflow that takes some time due to the new page is large, but the choppy transition makes the experience really bad. I have tried setting the animateWithJS=false on the router and the transition then gets very smooth, but i'm experiencing other problems like the page does respond to interaction for some time after the transition is completed.

ocean89 avatar Nov 30 '17 08:11 ocean89

Do you use WkWebView or default. UIWebView?

nolimits4web avatar Nov 30 '17 14:11 nolimits4web

I have tried WkWebView, but I can't notice any improvement in performance.

ocean89 avatar Nov 30 '17 15:11 ocean89

animateWithJS=false is the correct way. As for page doesn't respond after transition, F7 doesn't do much after transition, just changing page classes. So it is more likely up to iOS, especially if you do some heavy operations after page in. You can try to use some lazy loading technics like hiding heavy content during transition and show it after page transition, or/and hiding content which is below the screen, etc.

P.S. it is still highly recommended to use WKWebView as it a way more better and bugless than UIWebView

nolimits4web avatar Nov 30 '17 15:11 nolimits4web

Ok, I was afraid of this.. thanks anyway!

ocean89 avatar Nov 30 '17 15:11 ocean89

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 24 '18 19:06 lock[bot]