angular-meteor icon indicating copy to clipboard operation
angular-meteor copied to clipboard

Long initial loading times on Android

Open ghost opened this issue 9 years ago • 4 comments

Hi there,

I am experiencing long loading times of the tutorial apps on Android. Reading and trying out different posts on SO and github did not really solve the problem. Specifically when I just take the meteor create test app and deploy it, it loads in about 2 seconds, adding just the necessary meteor- and npm-packages for angular-meteor from the socially tutorial (angular 1.5) will yield a loading time of 8-12 seconds on Android 5. Also the meteor-angular2.0-socially app takes 8 seconds without the launch-screenpackage that lengthens the loading time. On an iPhone it seems to be more user friendly, only 4-7 seconds. Also this probably leads to the deviceready has not fired after 5 seconds. log-output. Is it because the packages (angular and angular-meteor npm and pbastowski:angular-babel and urigo:static-templates) need longer loading time or some initialization delay?

Can anyone help me with this issue?

Also other sources (e.g. https://forums.meteor.com/t/meteor-cordova-startup-time/6266/3 or https://forums.meteor.com/t/ridiculously-slow-startup-time-on-meteor-ios-cordova-application-localmarket/22718) could not help.

I posted here since the loading times slowed down when I added angular.

ghost avatar Feb 07 '17 07:02 ghost

Any words on this one? We have the same problem. Our angular2+meteor prokect load time on android os around 15s! It is impossible to use it.

kombadzomba avatar May 06 '17 12:05 kombadzomba

There should be lazy loading and asynchronous Imports now in meteor 1.5 but we switched to react native actually. Eg oclazyload etc

Miloš Micić [email protected] schrieb am Sa. 6. Mai 2017 um 14:22:

Any words on this one? We have the same problem. Our angular2+meteor prokect load time on android os around 15s! It is impossible to use it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Urigo/angular-meteor/issues/1559#issuecomment-299636328, or mute the thread https://github.com/notifications/unsubscribe-auth/AHwdRyIEjaCW7k_ZcUqs78utX7L1iAwQks5r3GYPgaJpZM4L5KFq .

ghost avatar May 06 '17 12:05 ghost

no solution ?? same boat

sephiroth56 avatar Jul 10 '17 17:07 sephiroth56

Check out the new examples for using lazy loading the dynamic imports here - https://github.com/Urigo/angular-meteor/tree/master/examples/MeteorCLI

https://github.com/Urigo/angular-meteor/tree/master/examples

we've also published new angular-compilers package. It supports:

  • Typescript compilation
  • Assets compilation (HTML, styles)
  • Angular's AoT compilation
  • Rollup's bundling with Tree Shaking

Please open a new issue if you encountered one.

Urigo avatar Oct 31 '17 12:10 Urigo