Method, device, electronic device and storage medium for rendering interface of applet

A small program and interface technology, applied in the computer field, can solve the problems of long user interface update time, etc., to achieve the effect of improving interactive experience, improving display efficiency, and reducing time
CN109375918APending Publication Date: 2019-02-22TIANJIN BYTEDANCE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TIANJIN BYTEDANCE TECH CO LTD
Publication Date
2019-02-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

A method for rendering an interface of a applet is disclosed, DEVICE, ELECTRONIC DEVICE AND STORAGE MEDIUM, The method comprises the following steps: generating target page data according to the historical page data of the user interface and the new page data of the user interface sent by the server through a JavaScript engine, and determining node change data in a virtual DOM book of the user interface according to the target page data; The node change data is sent to the interface rendering component so that the interface rendering component renders the user interface according to the node change data to obtain the updated user interface. Thus, when the user interface is refreshed, it is not necessary to transmit all page data of the user interface, and the virtual DOM tree is not required to be constructed by the interface rendering component, so that the display efficiency of the user interface is improved, and thus the degree of interaction experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for rendering an interface of a small program. Background technique

[0002] A small program refers to a mobile APP that is developed based on a specific programming language and can be used without downloading and installing. The biggest feature of small programs is that they are easy to use and do not need to be manually installed in the operating system of the mobile terminal. Usually, small programs rely on large APPs as carriers for use.

[0003] In related technologies, the general process of rendering the user interface of a small program applied to a platform-level App is that the JavaScript engine directly sends the entire page data corresponding to the user interface to the page rendering WebView component through the bridging function provided by the system, and then the WebView component Generate a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More