In the last two years, front-end technology has been favoring small programs. What’s the difference between applets and traditional H5 web pages? Here’s a comparison:
Operating environment differences
- Applets: The running environment of applets is a built-in parser based on the complete reconstruction of the browser kernel, which has been optimized to match its own defined development language standards to improve the performance of applets. The window and Document objects commonly used in browsers cannot be used in scripts, avoiding DOM memory leaks at the source.
- H5: Can not control the DOM operation of developers, easy to appear memory leakage, SPA single-page application also has the problem of slow page loading.
Differences in development costs
- Applets: Applets, which define development standards, are much simpler. The common HTML and CSS in the front end have been changed into the WXML and WXSS customized by wechat, which avoids the various frameworks and increases the difficulty of maintenance for project receivers. Alipay small program may be AXML, ACSS; The headline applets might be TTML, TTSS, etc.
- H5: It involves development tools (VScode, Atom, etc.), front-end frameworks (Angular, React, etc.), module management tools (Webpack, Browserify, etc.), task management tools (Grunt, Gulp, etc.), There is also UI library selection, interface call tools (Ajax, Fetch Api, etc.), browser compatibility.
Differences in obtaining system-level permissions
- Applets: More system permissions, such as network traffic status and data caching capabilities, can be seamlessly integrated into applets.
- H5: Access to system permissions is mostly criticized by H5, which is also the reason why most application scenarios of H5 are positioned in simple business logic and single function.
The difference in running smoothness
- Small program: Small program, its code directly on the APP running, through a browser double thread UI rendering and business logic separation technologies, such as, therefore, the use of small programs in WeChat, much H5 smooth, open the need for the first time a few seconds of loading time, small program each page switching, jump experience is comparable to native APP, has the same effect with silky soft.
- H5: Actually open a web page that needs to be rendered in the browser. So the process of loading can feel “stuck”, especially in the face of complex business logic or rich page interactions.
Different operation and maintenance modes
- Small program: small program support grayscale release, AB test, in the case of abnormal circumstances can be real-time operation back on the management interface.
- H5: If an EXCEPTION occurs in H5, o&M personnel need to redeploy the rollback system in the production environment, which is risky.
Different user experience
- Small program: Because of the relation of WeChat, small application fires in recent years, user acceptance and recognition is very high, and the experience of small programs do much better than the h5, small program can be downloaded to a local cache, so the user experience is also more smooth, more to the point, the user operations such as collection of small programs can more natural, experience better, don’t worry about things not seek after the collection, and so on and so forth.
- H5: H5 traditionally gives people a feeling that loading is always slow, and once H5 clicks out, it is often difficult to find the corresponding entrance, especially the link depth is relatively deep, users click inside all the time, once users exit, it is difficult to find their attention.
And small programs are parasitic in the host App, ready to go, do not need to spend a long time to download and install the application, so small programs are now favored by users.
So in addition to putting small programs on wechat, Alipay, Baidu, Toutiao and other platforms, are there any other SDKS or technologies that can make our own applications also support small programs?
The answer is to have, that is fantai small program development platform.
Fantai small program development platform was originally planned to help the financial industry to do application upgrade, optimization, improve the user experience effect. Later, Fantai split and optimized the small program platform, and now it has supported the private deployment of the small program management platform, and also launched the iOS and Android small program SDK. The official website even launched a one-click deployment solution, you can deploy the experience in your own server faster.
Therefore, the use of fan Tai small program can let more mobile applications support small program, quickly replace the APPLICATION of H5 into small program!