Comments (3)
Hi,
I think you've nailed what the problem is and why it is anim-in-out
doesn't suffer the problem so much. Generally I've found performance to be similar except in these instances where there is a significant amount of processing/DOM manipulation happening, unfortunately this is exaggerated on less performant devices.
My workaround for this has been to delay the transition so that it (hopefully) occurs after the DOM has been built etc. Alternatively you can delay the rendering of the heavier elements in your page by using events to trigger them after transitions are finished.
Of course using transform instead of position (left, right, top, bottom) helps. You may like to try the CSS will-change
property.
I use the profiles section of dev tools to figure out where and why some frames exceed the 16ms threshold, this might provide some clarity on where to focus your optimisations.
Hope this helps
James
from angular-gsapify-router.
FWIW I've seen this now occurs in OSX Safari too. I'll investigate when I have a moment, let me know if you managed to resolve somehow. Thanks
from angular-gsapify-router.
As a partial fix for this I've added an option to delay the transition until a trigger event is fired on the $rootScope
.
Add the following to your route configuration (in the data.gsapifyRouter[VIEW_NAME][enter|leave][in|out]
:
// add event listener to $rootScope to trigger transition
trigger: 'viewInitialised'
Then in your view controller:
// broadcast event when view has been initialised
// eg. when expensive layout components/directives have done their thing
$rootScope.$broadcast('viewInitialised');
from angular-gsapify-router.
Related Issues (20)
- Set animation with state.go HOT 2
- Angular 1.3.7 HOT 1
- Modal hidden HOT 3
- Page (state?) moves down when clicking HOT 6
- What's the src file? HOT 2
- Issues with transitions and ui-view HOT 1
- transition on first load of state, no previous state HOT 8
- Where can I see a list of the animation names that this comes with? HOT 12
- TweenMax not defined HOT 1
- Could not resolve '' from state 'gsapifyRouterBlankState' HOT 8
- Using resolve inside the router gives gsapifyRouterBlankState error HOT 1
- Slider previous and next HOT 2
- Not working with angular material HOT 3
- State not re-resolved properly by forced initial transition
- Missing content on page after transition HOT 3
- Leave blocks and priority not honored with ui-router 1.0 HOT 3
- Angular Type Checking not the same as previous logic HOT 2
- not firing gsapify router on initial app load HOT 5
- Get Error: undefined is not an object (evaluating 'state.data') HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-gsapify-router.