Describe the bug
There is a noticeable delay/lag when navigating back from the menu to the main route.
To Reproduce
- Enable Power Saving mode on a PC or use a lower-end/older device.
- Create multiple habits.
- Open the menu.
- Click Back to return to the main screen.
- Notice the delay before the menu exit animation begins.
Expected behavior
The navigation and exit animation should start immediately without a blocking delay. Heavy calendar calculations should be optimized or deferred.
Additional context
In the browser console it triggers a warning: [Violation] 'popstate' handler took ***ms. The lag scales with the number of habits. We need to find a solution, like lazy loading calendars or delaying their render until the animation finishes.
Describe the bug
There is a noticeable delay/lag when navigating back from the menu to the main route.
To Reproduce
Expected behavior
The navigation and exit animation should start immediately without a blocking delay. Heavy calendar calculations should be optimized or deferred.
Additional context
In the browser console it triggers a warning:
[Violation] 'popstate' handler took ***ms. The lag scales with the number of habits. We need to find a solution, like lazy loading calendars or delaying their render until the animation finishes.