Mobile End Combat Summary

Source: Internet
Author: User

Overview

Operating system: Now divided into two major camps: iOS and Android, the basic situation is set.

Based on these two operating systems, web development has a common denominator:

1. Two system browsers are WebKit cores, the so--mobile Web development is mainly for the WebKit kernel browser development, regardless of IE and other browsers.

2. The browser on the mobile side is ideal for HTML5 support and can use the HTML5 feature.

The mobile browser can be divided into the following categories according to the existence form:

    • Built-in browser
    • User Install Browser
    • WebView
    • Proxy browser
Built-in browser

The built-in browser is installed in the system firmware, typically developed by the system vendor, such as IOS safari,android Android WebKit or Chrome.

Built-in browsers generally cannot be upgraded individually and need to be upgraded to update the system. So, sometimes the old and rotten built-in browser stall development hind legs, especially the Android platform. So when it comes to a built-in browser, focus on the system version.

User Install Browser

There are many browsers that users can download and install themselves, such as Chrome, Firefox, Opera, UC, QQ and so on.

It is important to note that the same user installs the browser, the different platform will have the essential difference, such as iOS (including Windows Phone) does not allow the use of other rendering engines, so Chrome on iOS is not its Blink kernel, Firefox kernel is not gecko.

The user-installed browser can be updated to get the latest features and a better experience, which is different from the system's own browser.

users are accustomed to regional differences :

    • Abroad (e.g., USA): Few users install other browsers-even if they know they can be installed;
    • China: Users will download (sometimes "family bucket" or the like) to install a variety of browsers, such as QQ, UC browser.
WebView

The WebView is a built-in browser interface that the system provides to native applications. For example, the third-party browser on IOS is based on system WebView development.

WebView is generally a standalone program that uses the underlying components of the built-in browser (such as the rendering engine, JavaScript engine), but some aspects may vary, such as performance limitations. From a practical point of view, there are times when it is true that the webview is not the same as the system's own browser. The browser is a webview.

Proxy browser

The proxy browser renders HTML, CSS on its server, executes JavaScript, and returns the results to the browser. such as Opera Mini, the early UC browser, Nokia Express and so on.

Corresponding to the proxy browser is the full browser, which is to download the resources to the client rendering, execution of the browser.

Different for iOS VS android:

1. For browsers, the Android vendor is fragmented, and then the WebKit browser is open source, so there are many versions of the WebKit kernel browser on the market. Manufacturers always modify the WebKit browser according to their preferences, which results in HTML5 fragmentation is very serious. Android 4.4 before Android system browser kernel is webkit,android4.4 system browser switch to chromium, kernel is WebKit branch Blink.

(example, need actual equipment test) For example, to input type= "date" implementation, some vendors to achieve this standard, some are not implemented, and for the implementation of this standard browser, interface display and interaction is different. And remove the system comes with the browser, there are webview,6.1 version of the app's Android users, are using the X5 kernel of the QQ browser, 5.4-6.1 version, if the user installed QQ browser is the use of the X5 kernel, if the user does not install a browser, The system kernel is used.

2. From a system point of view, the fragmentation of the Android version is also serious, and it is now up to 6.0. Before the main 2. X and 4.X phases (3.X mainly for TV and other devices), of which 2. x version of the browser is the webkit533.x version, this version of the browser is Google for mobile phone, is a lite version, the implementation of HTML5 is not particularly thorough. With the 2.3 version as the limit, the previous version of 2.3 for HTML5 support is not very good, after the 2.3 version began porting the PC's Chrome code, has a leap. As of March 2016, there may be an extra-user version of Android 2.3, such as 3% users using Android 2.3 and below.

3.ios is closed and Apple does not allow the use of other rendering engines. And Apple's implementation of the HTML5 standard is good, so iOS HTML5 support is better. This closeness may be binding on browser vendors, which is good for users and WEB developers, maintaining a consistent user experience and reducing development and testing costs.

However, although the same based on IOS provides Webview,chrome, Firefox, WebView, QQ browser, UC browser, etc. there will be subtle differences, the normal function on Safari, these user agents may not be.

4.ios and Android for the specification implementation of HTML5 in the interface layer and the implementation of the interaction layer is different, take the above example of the type date control, iOS and Android Interactive implementation, not quite the same. Although they have been implemented according to the standards of the standard. The implementation of select is also different, with a variety of UI.

Mobile-Device performance

The difference between mobile and desktop-side development is also the performance of mobile devices. Need to understand the performance characteristics of the mobile device.

The hardware development of mobile devices is still very rapid, but it is still different from desktop devices. So on the mobile side, performance and functionality require a balance point. Some complex animations, for example, look cool, but when you run a Web page, you'll find that your phone is a bit hot and the battery is burning quickly, and it's going to charge again. Therefore, the Mobile Web page, performance will be subject to certain restrictions. The impact of the web on performance is larger than native, because the web is not a compiled language, can only be run on the device, plus the WebKit kernel occupies a large amount of memory, and is a single-process application, so the CPU, memory is more affected.

Page rendering

Mobile web in the performance of the larger impact is the rendering problem, JS problem is not so prominent, because Android uses the V8 engine, relatively large increase in script execution performance. Mobile page rendering and PC side is a big difference, because the desktop in the page rendering, there are high-performance hardware, coupled with a strong graphics card, the performance of the mobile end of a few streets. The limited hardware performance of the mobile side, plus no special graphics card, so that all page rendering work is performed by the CPU, the CPU itself is limited in frequency of execution, resulting in slow page rendering. So on the phone, when the page a lot of rendering, prone to lag, such as rendering a very long list, sliding when it is easy to card. There are also such as page switch, also easy card. So when it comes to page rendering, it needs to be handled with care.

Keyboard

There are many differences between the keyboard and the desktop side.

Mobile uses a soft keyboard, when the soft keyboard is aroused, the layout will be subtle changes, may affect the layout of the page. Since the phone has a very small interface, the keyboard will occupy a lot of space. The handling of the keyboard layout is also different for iOS and Android.

Mobile End Combat summary

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.