Weex page rendering method, device, terminal and storage medium

A page configuration and page technology, applied in the computer field, can solve the problems of reducing page access speed and user experience, low access efficiency, waste of system resources, etc., to achieve the effect of improving acquisition efficiency and improving access speed and user access experience.

Inactive Publication Date: 2018-11-20
深圳鼎盛电脑科技有限公司
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the access efficiency of Weex pages in the prior art is low, and repetitive loading occupies a large rate of system resources of the mobile platform carrying mobile applications, wastes system resources, and reduces page access speed and user experience

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Weex page rendering method, device, terminal and storage medium
  • Weex page rendering method, device, terminal and storage medium
  • Weex page rendering method, device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of a Weex page rendering method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the JS Bundle file is loaded after the Weex page is updated, and the method can be executed by a Weex page rendering device. The method specifically includes the following steps:

[0026] Step 110, in response to the user's application start instruction, pre-download the JS Bundle file corresponding to the Weex page configured in the system configuration file, and save it in the local storage.

[0027] In a specific embodiment of the present invention, the user's application startup instruction refers to the user's active startup of the application program in the terminal. A system configuration file refers to a related system file configured when accessing a page in an application, and may include page jump relationship configuration in the application, preloading configuration of the application page, and ...

Embodiment 2

[0038] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the Weex page rendering method, which can preload the updated JS Bundle file when the application starts. figure 2 The flow chart of the preloaded JS Bundle file provided for Embodiment 2 of the present invention, such as figure 2 As shown, the method includes the following specific steps:

[0039] Step 210: Responding to the user's application start instruction, start fetching and preloading.

[0040] In a specific embodiment of the present invention, the running state of the application can be monitored in real time. When the user's application startup command is detected, the pull preloading is started, and the system configuration file related to page loading can be obtained, which can include the A preloaded configuration file uniquely identified by the page, and a Weex page configuration file used to indicate page configuration information.

[0041] Step 220, obt...

Embodiment 3

[0058] On the basis of the first embodiment above, this embodiment provides a preferred implementation of the Weex page rendering method, which can check and obtain the JS Bundle file in the local storage when the user accesses the Weex page. image 3 The flowchart for accessing the Weex page provided by Embodiment 3 of the present invention, such as image 3 As shown, the method includes the following specific steps:

[0059] Step 310: If it is detected that the JS Bundle file associated with the page access request does not exist in the local storage, or it is determined that the JS Bundle file associated with the page access request in the local storage has been updated, then check the download queue.

[0060]In the specific embodiment of the present invention, it takes a certain amount of time to preload the JS Bundle file when the application starts, and the initiation time of the page access request is unpredictable, so in this embodiment, the preloading of the JS Bundle...

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

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a Weex page rendering method, device, terminal and storage medium. The method comprises the following steps: pre-downloading a JS Bundle file corresponding toa configured Weex page in a system configuration file in response to an application starting instruction of a user, and saving in local storage; acquiring the JS Bundle file associated with a page access request initiated by the user from the local storage, and rendering the access page according to the acquired JS Bundle file. By pre-downloading the JS Bundle file corresponding to a Weex page ofa mobile application, the local caching of the JS Bundle file is realized, the acquisition efficiency of the JS Bundle file and the rendering efficiency of the page are improved, thereby improving the access speed and user access experience after the mobile application page is updated.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a Weex page rendering method, device, terminal and storage medium. Background technique [0002] Weex is an open source cross-platform page rendering solution. The mobile platform integrated with Weex SDK generates a JS Bundle file to render and generate a native interface according to the platform-independent page rendering rules defined by Weex. The rest of the mobile applications load and execute the JS Bundle file to dynamically generate the native controls of the corresponding mobile platform to achieve the same page rendering effect as the native interface, thereby updating the page rendering method. [0003] In the prior art, every time a mobile application accesses a Weex page, it needs to reload the JS Bundle file corresponding to the accessed page through the server; and the JS Bundle file is relatively public, and can be directly execute...

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 王希朋
Owner 深圳鼎盛电脑科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products