A
A
a_rocky2017-08-08 19:50:17
JavaScript
a_rocky, 2017-08-08 19:50:17

Angular 2 and PHONEGAP for android, why so slow?

Project on Angular 2 + PHONEGAP.
The problem is that even the simplest application, after compiling with Angular Cli, weighs about a megabyte and takes a very long time to load on a mobile device.
Nothing special is done on my part, I just compile ng build --prod Is
this Angular 2 + PHONEGAP bundle so bad, or do I need to somehow build the project in a special way?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Varakosov, 2017-08-08
@a_rocky

Angular is one of the worst options to choose from. PhoneGap is a webview wrapper that is itself heavy and slow, and an extensive JS framework (by the way, did you connect it locally?) completely kills performance and this thing barely moves on an average device.

X
xmoonlight, 2017-08-09
@xmoonlight

Look here

R
Raphael™, 2017-08-09
@maxminimus

PhoneGap application is just a working system browser
such an application works at the speed of the system browser the
speed of mob browsers will constantly grow rapidly
in theory js program in the browser is one and a half times inferior to a similar native program
PhoneGap application this js program
will soon add WebAssembly and WebGPU - everything will fly
the problem is that you use heavy braking frameworks
write the code yourself to make it work faster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question