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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com