Page offline loading method and device, equipment and storage medium

By providing the page offline loading method in the Hongmeng operating system, downloading and loading the local stored H5 offline package, the problem of slower loading speed and slow interface response of the web application page, which improves the user experience.

CN119336413APending Publication Date: 2025-01-21SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411524169.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The web applications developed in the Hongmeng operating system rely on network requests, resulting in slow page loading speed. Due to the limitations of web technology, the interface response is slow and cannot provide the same smooth user experience as native applications.

Method used

Provides a page offline loading method. By obtaining the data information of the latest H5 offline package stored on the server, it determines whether the locally stored versions are the same. If they are different, download the latest H5 offline package and open it through WebView loading to load the APP page.

Benefits of technology

By downloading and loading the offline packages stored locally, the loading speed of the APP page has been improved, the effect of network delay on interface response has been reduced, and the user experience is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336413A_ABST
    Figure CN119336413A_ABST
Patent Text Reader

Abstract

The invention discloses a page offline loading method, device and equipment and a storage medium, and relates to the technical field of computers.The method comprises the steps that data information of a newest H5 offline package stored in a server side is obtained, and the data information comprises first version information of the newest H5 offline package; judging whether the first version information is the same as second version information of an H5 offline package locally stored in the mobile terminal or not; if the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local; and loading and opening the H5 application in the newest H5 offline package through WebView so as to carry out APP page loading. According to the method and the device, the H5 offline package is downloaded locally from the server, so that the locally stored offline package can be loaded to open the H5 application page, and the effect of improving the APP page loading speed is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page offline loading method, device, equipment and storage medium. Background Art

[0002] At present, the development of HarmonyOS includes native development, hybrid development (flutter, etc.), and nested web development. Native applications usually provide the best performance and user experience, but the development time cost is high. Therefore, some Harmony APP applications choose to use hybrid development to reduce costs. However, hybrid development of Harmony applications also faces some challenges. For example, Web applications rely on network requests to load resources. These requests may be limited by network latency and bandwidth, resulting in slower page loading speeds for Web applications. In addition, due to the limitations of Web technology, for example, Web applications are usually written in HTML, CSS, and JavaScript, and rely on the browser's rendering engine; Web application data is usually loaded dynamically from the server, which means that every time a user interacts with the interface, network latency may cause the interface to respond slowly, which in turn causes nested Web applications to fail to provide the same smooth user experience as native applications. Summary of the invention

[0003] Based on this, it is necessary to provide a page offline loading method, device, equipment and storage medium for the above technical problems, so as to solve at least one of the above technical problems.

[0004] The present invention provides a page offline loading method, comprising:

[0005] Obtain data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package;

[0006] Determine whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal;

[0007] If the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local computer;

[0008] Open the H5 application in the latest H5 offline package through WebView to load the APP page.

[0009] Optionally, according to a page offline loading method provided by the present invention, downloading the latest H5 offline package of the server to the local computer includes:

[0010] Send a download request to the server, and receive the download address of the latest H5 offline package issued by the server;

[0011] According to the download address, the latest H5 offline package in the server is downloaded to the local sandbox file of the mobile terminal.

[0012] Optionally, according to a page offline loading method provided by the present invention, after downloading the latest H5 offline package in the server to the local sandbox file of the mobile terminal, the method further includes:

[0013] Delete the file download directory corresponding to the local H5 offline package;

[0014] Decompress the latest H5 offline package, and perform integrity check on the decompressed latest H5 offline package;

[0015] If the verification is successful, the latest H5 offline package after decompression is stored and the file directory corresponding to the latest H5 offline package is recorded, wherein the file directory refers to the local path for storing the latest H5 offline package file.

[0016] Optionally, according to a page offline loading method provided by the present invention, the step of loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page includes:

[0017] Determine whether the latest H5 offline package is associated with a forced refresh flag, wherein the forced refresh flag refers to a flag indicating whether the H5 application needs to be forcibly reloaded;

[0018] If the forced refresh flag exists, directly load and open the APP page corresponding to the latest H5 offline package stored locally;

[0019] If the forced refresh mark does not exist, the APP page corresponding to the latest H5 offline package stored locally is loaded and opened when the H5 application is started next time.

[0020] Optionally, according to a page offline loading method provided by the present invention, the loading and opening of the APP page corresponding to the latest H5 offline package stored locally includes:

[0021] Determine the file directory corresponding to the latest H5 offline package stored locally;

[0022] The APP page of the latest H5 offline package corresponding to the file directory is loaded through the WebView.

[0023] Optionally, according to a page offline loading method provided by the present invention, before opening the H5 application in the latest H5 offline package through WebView to load the APP page, the method further includes:

[0024] Determine whether the H5 application is associated with a prohibition flag for loading offline packages, wherein the prohibition flag for loading offline packages refers to a flag indicating whether the mobile terminal is allowed to load the H5 offline package;

[0025] If there is a sign prohibiting the loading of offline packages, the latest H5 offline package stored locally will be deleted.

[0026] Optionally, according to a page offline loading method provided by the present invention, downloading the latest H5 offline package of the server to the local computer includes:

[0027] If there is a transmission interruption in the download process of the latest H5 offline package, the breakpoint position of the transmission interruption is recorded;

[0028] generating feedback information according to the breakpoint position;

[0029] The feedback information is sent to the server to resume the download process at the breakpoint position, so as to download the latest H5 offline package of the server to the local computer.

[0030] The present invention also provides a page offline loading device, comprising:

[0031] An acquisition module, used to acquire data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package;

[0032] A judgment module, used to judge whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal;

[0033] A download module, configured to download the latest H5 offline package of the server to a local device if the first version information is different from the second version information;

[0034] The page loading module is used to load and open the H5 application in the latest H5 offline package through WebView to load the APP page.

[0035] The present invention also provides a computer device, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-mentioned page offline loading method when executing the computer-readable instructions.

[0036] The present invention also provides one or more readable storage media storing computer-readable instructions, and the computer-readable instructions implement the above-mentioned page offline loading method when executed by a processor.

[0037] The above-mentioned page offline loading method, device, equipment and storage medium include: obtaining the data information of the latest H5 offline package stored on the server, wherein the data information includes the first version information of the latest H5 offline package; judging whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal; if the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local; loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page. The present invention achieves the effect of improving the APP page loading speed by downloading the H5 offline package locally from the server, so that the locally stored offline package can be loaded to open the H5 application page. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0039] Figure 1 is a flow chart of a method for offline page loading in one embodiment of the present invention;

[0040] Figure 2 It is a structural schematic diagram of a page offline loading device in one embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.

[0044] At present, the development of HarmonyOS includes native development, hybrid development (flutter, etc.), and nested web development. Native applications usually provide the best performance and user experience, but the development time cost is high. Therefore, some Harmony APP applications choose to use hybrid development to reduce costs. However, the hybrid development of Harmony applications also faces some challenges. For example, Web applications rely on network requests to load resources. These requests may be limited by network latency and bandwidth, resulting in slower page loading speeds for Web applications. In addition, due to the limitations of Web technology, for example, Web applications are usually written in HTML, CSS, and JavaScript, and rely on the browser's rendering engine; Web application data is usually loaded dynamically from the server, which means that every time a user interacts with the interface, network latency may cause the interface to respond slowly, resulting in nested Web applications that may not provide the same smooth user experience as native applications.

[0045] In view of the above problems, the present invention provides the following embodiments. Specifically, in one embodiment, Figure 1 As shown, Figure 1 1 is a flow chart of a method for offline page loading in an embodiment of the present invention. The present invention provides a method for offline page loading, comprising the following steps:

[0046] Step S11, obtaining data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package;

[0047] It should be noted that the H5 offline package refers to the packaging of the HTML5 application (H5 application) originally loaded through the network into an independent file or folder. The development of the H5 offline package mainly uses the technology in the H5 technology stack for packaging. Developers will use existing H5 technologies, such as HTML, CSS, and JavaScript, to create offline applications. During the development process, the H5 end will assign data information corresponding to the offline package, and the data information includes the first version information of the latest H5 offline package. In addition, the offline package provides an HTML entry page, which is the first page loaded when the application starts. By inlining CSS and JavaScript files into HTML, or merging these files when packaging, the number of resources that need to be loaded from the server can be reduced, thereby speeding up page loading.

[0048] In one embodiment, the mobile terminal sends a request to the server to obtain the version information, download address and other data information of the latest H5 offline package data information stored in the server. In other embodiments, the mobile terminal periodically sends a request to the server to check whether there is new version information.

[0049] Step S12, determining whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal;

[0050] Step S13: if the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local computer;

[0051] Specifically, the first version information is compared with the second version information of the H5 offline package stored locally in the mobile terminal to determine whether the first version information is the same as the second version information. If the first version information is the same as the second version information, there is no need to download the H5 offline package from the server. If the first version information is different from the second version information, a download request is sent to the server to download the latest H5 offline package of the server to the local. For example, the version information of the H5 offline package stored locally is v1.0, and the version information of the latest H5 offline package stored on the server is v1.1. After comparison, the version information is different, and the H5 offline package with version number v1.1 in the server is downloaded.

[0052] It should be noted that for the mobile version of the Hongmeng system, the Hongmeng system can adopt a sandbox mechanism, which can download the latest H5 offline package to the local sandbox file. Storing the offline package in the sandbox file can prevent malicious applications from accessing or modifying system files, thereby protecting user data and system security.

[0053] Step S14, loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page.

[0054] It should be noted that WebView is a web browser component that can be embedded in an application. It allows the application to load and display web content, and can also execute network technologies such as JavaScript and CSS, so that the application can access network resources. Specifically, the file directory corresponding to the latest H5 offline package stored locally is determined, the latest H5 offline package corresponding to the file directory is loaded through the WebView, and the APP page corresponding to the application is rendered.

[0055] The embodiment of the present invention adopts the above scheme, including: obtaining the data information of the latest H5 offline package stored on the server, wherein the data information includes the first version information of the latest H5 offline package; judging whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal; if the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local; loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page. The embodiment of the present invention achieves the effect of improving the loading speed of the APP page by downloading the H5 offline package locally from the server, so that the locally stored offline package can be loaded to open the H5 application page.

[0056] In one embodiment of the present invention, downloading the latest H5 offline package of the server to the local computer includes:

[0057] Send a download request to the server, and receive the download address of the latest H5 offline package issued by the server; according to the download address, download the latest H5 offline package in the server to the local sandbox file of the mobile terminal.

[0058] In one embodiment, after downloading the latest H5 offline package in the server to the local sandbox file of the mobile terminal, it also includes:

[0059] Delete the file download directory corresponding to the original local H5 offline package; decompress the latest H5 offline package, and perform integrity check on the decompressed latest H5 offline package; if the check is successful, store the decompressed latest H5 offline package and record the file directory corresponding to the latest H5 offline package, wherein the file directory refers to the local path for storing the latest H5 offline package file.

[0060] Specifically, the generated download request is sent to the server to receive the download address of the latest H5 offline package issued by the server. Further, according to the download address, the latest H5 offline package in the server is downloaded to the local sandbox file of the mobile terminal. A sandbox is an isolated environment that limits the application's access to system resources and increases the security of files. After downloading and storing the latest version of the offline package, the old version of the H5 offline package stored locally needs to be deleted. For example, directly deleting the file download directory corresponding to the original local H5 offline package effectively avoids the existence of multiple versions of offline packages on the device, which may cause version conflicts or waste of space.

[0061] Furthermore, the latest H5 offline package is decompressed so that WebView can access and load the HTML, CSS, JavaScript and other files therein. The integrity of the decompressed latest H5 offline package is checked. It should be noted that the data information of the H5 offline package includes a checksum, which can be a hash value such as MD5, SHA-1 or SHA-256, which is used to verify the integrity of the file and that it has not been tampered with. If the check is successful, the decompressed latest H5 offline package is stored, and the file directory corresponding to the latest H5 offline package is recorded, where the file directory refers to the local path where the latest H5 offline package file is stored.

[0062] The embodiment of the present invention adopts the above scheme, including: sending a download request to the server, and receiving the download address of the latest H5 offline package issued by the server; according to the download address, downloading the latest H5 offline package in the server to the local sandbox file of the mobile terminal. The offline package is stored through the sandbox mechanism, which can protect the mobile terminal device from the influence of malicious software. In addition, deleting the old version of the offline package can ensure that the latest version of the local offline package is subsequently loaded to open the H5 application page.

[0063] In one embodiment of the present invention, the step of loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page includes:

[0064] Determine whether the latest H5 offline package is associated with a forced refresh flag; if the forced refresh flag exists, directly load and open the APP page corresponding to the latest H5 offline package stored locally; if the forced refresh flag does not exist, load and open the APP page corresponding to the latest H5 offline package stored locally when the H5 application is started next time.

[0065] Specifically, determine whether the latest H5 offline package is associated with a forced refresh flag, wherein the forced refresh flag refers to an identifier of whether the H5 application needs to be forcibly reloaded. If there is a forced refresh flag, the APP page corresponding to the latest H5 offline package stored locally is directly loaded and opened. This means that the application needs to update the content or status immediately. If there is no forced refresh flag, the APP page corresponding to the latest H5 offline package stored locally is automatically loaded and opened when the H5 application is started next time. During the loading process, the file directory corresponding to the latest H5 offline package stored locally is determined; and then the APP page of the latest H5 offline package corresponding to the file directory is loaded through the WebView.

[0066] In one embodiment of the present invention, before opening the H5 application in the latest H5 offline package through WebView to load the APP page, the method further includes:

[0067] It is determined whether the H5 application is associated with a prohibition mark for loading offline packages; if there is a prohibition mark for loading offline packages, the latest H5 offline package stored locally is deleted.

[0068] Specifically, the background can automatically enable the function of disabling offline packages and determine whether the H5 application is associated with a flag prohibiting the loading of offline packages, where the flag prohibiting the loading of offline packages refers to an indicator of whether the mobile terminal is allowed to load the H5 offline package. If there is a flag prohibiting the loading of offline packages, the file directory of the latest H5 offline package in the local storage is determined, and then the latest H5 offline package corresponding to the file directory is deleted.

[0069] In one embodiment of the present invention, downloading the latest H5 offline package of the server to the local computer includes:

[0070] If there is a transmission interruption in the download process of the latest H5 offline package, the breakpoint position of the transmission interruption is recorded; feedback information is generated according to the breakpoint position; the feedback information is sent to the server to resume the download process at the breakpoint position, so as to download the latest H5 offline package of the server to the local computer.

[0071] Specifically, during the download process, the progress and status of the download are continuously monitored. Once a download interruption is detected (for example, the download process is interrupted due to network problems, application closure, etc.), the current download breakpoint position is recorded. Optionally, the download progress and breakpoint position information during the interruption can also be saved to local storage for subsequent use when resuming the download. In addition, feedback information is generated based on the recorded breakpoint position. Optionally, the feedback information includes information such as the breakpoint position (which may be a file offset), file size, download status, and the feedback information is then sent to the server. After the server receives the feedback information, it sends the remaining H5 offline package content to the client starting from the breakpoint position based on the provided breakpoint position and file information. After the client receives the response from the server, it continues to download the H5 offline package until the entire H5 offline package file is downloaded, thereby ensuring that the latest H5 offline package of the server can be completely downloaded to the local computer.

[0072] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0073] In one embodiment, a page offline loading device is provided, and the page offline loading device corresponds to the page offline loading method in the above embodiment. Figure 2 As shown, Figure 2 : is a schematic diagram of a structure of a page offline loading device in an embodiment of the present invention, the page offline loading device comprises:

[0074] The acquisition module 21 is used to acquire data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package;

[0075] A judgment module 22, used to judge whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal;

[0076] A download module 23, configured to download the latest H5 offline package of the server to a local device if the first version information is different from the second version information;

[0077] The page loading module 24 is used to load and open the H5 application in the latest H5 offline package through WebView to load the APP page.

[0078] The download module 23 is also used for:

[0079] Send a download request to the server, and receive the download address of the latest H5 offline package issued by the server;

[0080] According to the download address, the latest H5 offline package in the server is downloaded to the local sandbox file of the mobile terminal.

[0081] The download module 23 is also used for:

[0082] Delete the file download directory corresponding to the local H5 offline package;

[0083] Decompress the latest H5 offline package, and perform integrity check on the decompressed latest H5 offline package;

[0084] If the verification is successful, the latest H5 offline package after decompression is stored and the file directory corresponding to the latest H5 offline package is recorded, wherein the file directory refers to the local path for storing the latest H5 offline package file.

[0085] The page loading module 24 is also used for:

[0086] Determine whether the latest H5 offline package is associated with a forced refresh flag, wherein the forced refresh flag refers to a flag indicating whether the H5 application needs to be forcibly reloaded;

[0087] If the forced refresh flag exists, directly load and open the APP page corresponding to the latest H5 offline package stored locally;

[0088] If the forced refresh mark does not exist, the APP page corresponding to the latest H5 offline package stored locally is loaded and opened when the H5 application is started next time.

[0089] The page loading module 24 is also used for:

[0090] Determine the file directory corresponding to the latest H5 offline package stored locally;

[0091] The APP page of the latest H5 offline package corresponding to the file directory is loaded through the WebView.

[0092] The page offline loading device comprises:

[0093] Determine whether the H5 application is associated with a prohibition flag for loading offline packages, wherein the prohibition flag for loading offline packages refers to a flag indicating whether the mobile terminal is allowed to load the H5 offline package;

[0094] If there is a sign prohibiting the loading of offline packages, the latest H5 offline package stored locally will be deleted.

[0095] The page offline loading device comprises:

[0096] If there is a transmission interruption in the download process of the latest H5 offline package, the breakpoint position of the transmission interruption is recorded;

[0097] generating feedback information according to the breakpoint position;

[0098] The feedback information is sent to the server to resume the download process at the breakpoint position, so as to download the latest H5 offline package of the server to the local computer.

[0099] For the specific definition of the page offline loading device, please refer to the definition of the page offline loading method above, which will not be repeated here. Each module in the above-mentioned page offline loading device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0100] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown, Figure 3 : is a schematic diagram of a computer device in one embodiment of the present invention. The computer device includes a processor, a memory, a network interface and a database connected by a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating device, a computer-readable instruction and a database. The internal memory provides an environment for the operation of the operating device and the computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the page offline loading method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instruction is executed by the processor, a page offline loading method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0101] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, and a network interface connected through a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a page offline loading method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0102] In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and when the processor executes the computer-readable instructions, the steps of the above-mentioned page offline loading method are implemented. The method includes: obtaining the data information of the latest H5 offline package stored on the server, wherein the data information includes the first version information of the latest H5 offline package; determining whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal; if the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local; and opening the H5 application in the latest H5 offline package through WebView to load the APP page.

[0103] In one embodiment, a readable storage medium is provided, the readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by the processor to implement the steps of the above-mentioned page offline loading method. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0104] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0105] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A page offline loading method, characterized in that: include: Obtain data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package; Determine whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal; If the first version information is different from the second version information, downloading the latest H5 offline package of the server to the local computer; Open the H5 application in the latest H5 offline package through WebView to load the APP page.

2. The page offline loading method according to claim 1, characterized in that: The downloading of the latest H5 offline package of the server to the local computer includes: Send a download request to the server, and receive the download address of the latest H5 offline package issued by the server; According to the download address, the latest H5 offline package in the server is downloaded to the local sandbox file of the mobile terminal.

3. The page offline loading method according to claim 2, characterized in that: After downloading the latest H5 offline package in the server to the local sandbox file of the mobile terminal, it also includes: Delete the file download directory corresponding to the local H5 offline package; Decompress the latest H5 offline package, and perform integrity check on the decompressed latest H5 offline package; If the verification is successful, the latest H5 offline package after decompression is stored and the file directory corresponding to the latest H5 offline package is recorded, wherein the file directory refers to the local path for storing the latest H5 offline package file.

4. The page offline loading method according to claim 1, characterized in that: The method of loading and opening the H5 application in the latest H5 offline package through WebView to load the APP page includes: Determine whether the latest H5 offline package is associated with a forced refresh flag, wherein the forced refresh flag refers to a flag indicating whether the H5 application needs to be forcibly reloaded; If the forced refresh flag exists, directly load and open the APP page corresponding to the latest H5 offline package stored locally; If the forced refresh mark does not exist, the APP page corresponding to the latest H5 offline package stored locally is loaded and opened when the H5 application is started next time.

5. The page offline loading method according to claim 4, characterized in that: The loading and opening of the APP page corresponding to the latest H5 offline package stored locally includes: Determine the file directory corresponding to the latest H5 offline package stored locally; The APP page of the latest H5 offline package corresponding to the file directory is loaded through the WebView.

6. The page offline loading method according to claim 1, characterized in that: Before opening the H5 application in the latest H5 offline package through WebView to load the APP page, the method further includes: Determine whether the H5 application is associated with a prohibition flag for loading offline packages, wherein the prohibition flag for loading offline packages refers to a flag indicating whether the mobile terminal is allowed to load the H5 offline package; If there is a sign prohibiting the loading of offline packages, the latest H5 offline package stored locally will be deleted.

7. The page offline loading method according to claim 1, characterized in that: The downloading of the latest H5 offline package of the server to the local computer includes: If there is a transmission interruption in the download process of the latest H5 offline package, the breakpoint position of the transmission interruption is recorded; generating feedback information according to the breakpoint position; The feedback information is sent to the server to resume the download process at the breakpoint position, so as to download the latest H5 offline package of the server to the local computer.

8. A page offline loading device, characterized in that: include: An acquisition module, used to acquire data information of the latest H5 offline package stored on the server, wherein the data information includes first version information of the latest H5 offline package; A judgment module, used to judge whether the first version information is the same as the second version information of the H5 offline package stored locally in the mobile terminal; A download module, configured to download the latest H5 offline package of the server to a local device if the first version information is different from the second version information; The page loading module is used to load and open the H5 application in the latest H5 offline package through WebView to load the APP page.

9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executed on the processor, characterized in that: When the processor executes the computer-readable instructions, the page offline loading method according to any one of claims 1 to 7 is implemented.

10. A readable storage medium having computer readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the page offline loading method according to any one of claims 1 to 7 is implemented.