I have a production project compiled for web, android and ios and in the last update made to the latest versions of ionic, capacitor and plugins I have noticed that the pages are painted much slower than before.
For example, in a page with a list of 44 elements, it has gone from being painted in about 130 milliseconds, to being painted in about 3000 milliseconds, that is, now the painting is about 30 times slower.
Are there any known bugs for the configuration I’m giving you, in terms of performance?
I don’t know if it’s a problem with the ionic core, angular, etc., or the way I have implemented the application, but it seems very strange to me that the same code takes 30 more times to execute now (with the latest version everything) than with previous versions.
Any ideas?
You can check the problem by accessing these two websites, and clicking on the group called ‘New Year’s Eve dinner 2021’. Then you can check the slowness by clicking on the tab called ‘Balances’ and then on the one called ‘Notes’, where you can see that in the old version this transition is very fast and in the new version this transition is very slow. With the debugger we can see the loading time, when this warning appears:
[Violation]‘requestAnimationFrame’ handler took 3070ms
Fast version (old version):
https://app.splittheticket.com/#/invitacion/OU8xMk9OZXc=
Slow version (latest version):
https://splittheticket.iriscrea.com/#/invitacion/OU8xMk9OZXc=
Regards.
Fast version info
Ionic:
Ionic CLI : 6.20.4 (C:\Users\juanc\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.0.1
@angular-devkit/build-angular : 13.0.4
@angular-devkit/schematics : 13.0.4
@angular/cli : 13.0.4
@ionic/angular-toolkit : 5.0.3
Capacitor:
Capacitor CLI : 3.3.3
@capacitor/android : not installed
@capacitor/core : 3.3.3
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run (update available: 1.7.1) : 1.6.0
System:
NodeJS : v16.13.1 (C:\Program Files\nodejs\node.exe)
npm : 8.3.0
OS : Windows 10
Slow version info
Ionic:
Ionic CLI : 6.20.4 (C:\Users\juanc\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.4.0
@angular-devkit/build-angular : 15.0.3
@angular-devkit/schematics : 15.0.3
@angular/cli : 15.0.3
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 4.6.1
@capacitor/android : not installed
@capacitor/core : 4.6.1
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
NodeJS : v16.13.1 (C:\Program Files\nodejs\node.exe)
npm : 8.3.0
OS : Windows 10