CORDOVA/WEBAPP/HTML5 app replaces kernel with Corsswalk, optimizes Android WebView

Source: Internet
Author: User

  The difference between crosswalk and WebView

Why do you use Corsswalk? Since the Cordova application is running on Android, it is called mobile phone webview, and in different Andro, different versions of the system, WebView performance gap is very large. In addition, instant is 4. X's Android WebView, performance is not very good, and web App The biggest problem is slow, that is caused by this. By replacing the Cordova WebView kernel with the crosswalk kernel, the performance of the application can be greatly improved in rendering.

WebView components, such as iOS UIWebView, Android WebView, and so on, as the system comes with the Web engine, in the HTML5 ability compared to Safari for IOS, Chrome for Android is one cut. In addition, on the Android platform, due to the serious system fragmentation, different Android version of the WebView HTML5 ability also has a large difference, resulting in the corresponding HTML5 application consistency is difficult to guarantee. And crosswalk, as mentioned earlier, the independent engine as a third party has better HTML5 function and performance support, better platform consistency, and a system integration experience similar to native applications.

Crosswalk uses the chromium kernel and continues to evolve rapidly (six-week update), enabling crosswalk-based Web applications to fully enjoy chromium's functional and performance advantages, as well as better platform consistency. At the same time, crosswalk supports the latest HTML5 APIs, including Webgl,webaudio,webrtc,gamepad,websocket and more.

How to configure crosswalk:

1 Download Cordova Android (ARM) from Crosswalk official website, the latest 10. X also temporarily does not support Cordova3.6, only supports 3.5 or below.

2 Open on Win7: C:\Users\Administrator\.cordova\lib\npm_cache\cordova-android, this directory, if you installed a different version of Cordova, each version will have a folder.

3 Locate the 3.5.0 folder and replace the files in the package with the files inside the crosswalk

4 Then set up the project according to the usual Cordova.

5 Experience Speed Improvement (*^__^*) ...

CORDOVA/WEBAPP/HTML5 app replaces kernel with Corsswalk, optimizes Android WebView

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.