W
W
WEWMEGADUV2016-06-22 11:08:16
JavaScript
WEWMEGADUV, 2016-06-22 11:08:16

How does ionic/cordova work?

On the Internet I found the source code for the 2048 game, it is written in html / css / js via cordova created an apk file and installed it on the phone, but it works very slowly (and compared with the original 2048) I want to know how it creates apk or ipa from html / css / js for iPhones (or whatever it has) what works under the soot? how to speed up (if possible)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Zelensky, 2016-06-22
@SergeyZelensky-Rostov

Optimize js code, try to reduce the number of html elements (the fewer of them, the faster it renders), cordova bcgjkmpetn web-view (web browser engine) of the device, in fact, you pack a web application written in html, css, js into an executable file, it is better to learn more advanced tools for mobile development,
such as xamarin, it does not differ in speed from native applications

A
Alexander, 2016-06-22
@aspetek

Experiments have shown that the speed of cordova is greatly affected by the amount of code. For starters, you can try to minify css and js

_
_ _, 2016-06-22
@AMar4enko

The speed of the system WebView on Android leaves much to be desired, plus on different versions of Android and different devices (more importantly), versions of the system WebView differ.
Therefore, in the case of Cordova + Android, you need to install the cordova-plugin-crosswalk-webview, which integrates into the WebView package based on the latest version of mobile Chrome, which gives predictable behavior on different OS versions and device types.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question