Choppy JS animation between pages in v2
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.
Do you use WkWebView or default. UIWebView?
I have tried WkWebView, but I can't notice any improvement in performance.
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
Ok, I was afraid of this.. thanks anyway!
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.