Webpage offline package loading control method and device and electronic equipment

By downloading and transmitting offline webpage resource files through the management platform, the problems of untimely updates and large file sizes of offline packages in existing technologies are solved, achieving efficient and flexible webpage loading control.

CN122019020APending Publication Date: 2026-05-12HANGZHOU ROBAM APPLIANCES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU ROBAM APPLIANCES CO LTD
Filing Date
2024-11-12
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing offline webpage packages, the content is fixed and updates are not timely. Furthermore, when there is a large amount of content or a large number of items, it severely impacts the size of the application package, resulting in slow loading speed.

Method used

The management platform downloads the offline web package for authorized terminals from the web packaging platform and directly transmits the page resource files during loading. The offline package and the application package are managed separately and support real-time updates.

Benefits of technology

It achieves high efficiency and flexibility in webpage loading, ensuring that offline packages are updated at any time without affecting the size of the application package, thus improving loading speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122019020A_ABST
    Figure CN122019020A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a webpage offline package loading control method and device and electronic equipment. The method comprises the following steps: determining a first application to be loaded and controlled in an authorized terminal, and downloading webpage offline packages corresponding to first pages of the first application from a web packaging platform; and when a webpage loading instruction for the second page is detected, transmitting a page resource file in the first webpage offline package corresponding to the second page to a page component of the first application. According to the embodiment of the invention, while offline page loading is ensured, the webpage offline package is not bound with the application package and can be updated at any time according to needs, and the size of the application package when a user installs application software is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to web page loading technology in one or more embodiments, and more particularly to a method, apparatus and electronic device for controlling the loading of offline web page packages. Background Technology

[0002] In various applications, the use cases for HTML4 and HTML5 web pages (such as device control and event introductions) are increasing, and the loading speed of these web pages has become a major pain point for users. Currently, offline web page packages are generally used to improve loading speed. Existing offline web page package solutions typically bundle the offline package within the application software's application package and load it on demand during use. However, because the offline web page package is bundled within the application package, the content of the offline package is fixed, updates are not timely, and it severely impacts the size of the application package when the offline package content is large or there are many offline packages. Summary of the Invention

[0003] To address the aforementioned problems, this specification describes one or more embodiments of a method, apparatus, and electronic device for controlling the loading of offline web page packages.

[0004] According to the first aspect, a method for controlling the loading of offline webpage packages is provided, the method comprising:

[0005] The first application to be loaded and controlled in the authorized terminal is determined, and the offline web package corresponding to each first page of the first application is downloaded from the web packaging platform. The first page is the page with the offline package configuration enabled.

[0006] When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application, where the second page is the first page that needs to be loaded.

[0007] Preferably, after detecting the webpage loading instruction for the second page, the method further includes:

[0008] The web packaging platform checks for updates to the first offline webpage package and downloads the latest version of the first offline webpage package when updates are available.

[0009] Preferably, the method further includes:

[0010] Determine the third page and the second application corresponding to the third page, wherein the third page is the first page marked with real-time requirements;

[0011] When the second application starts, the web packaging platform checks the update information of the second offline webpage corresponding to the third page, and downloads the latest second offline webpage if the second offline webpage is updated.

[0012] Preferably, the method further includes:

[0013] Configure the online access links for each page of the first application from the web packaging platform;

[0014] When a webpage loading instruction for the fourth page is detected, the online access link is sent to the page component of the first application, wherein the fourth page is a page for which offline package configuration is not enabled.

[0015] Preferably, the method further includes:

[0016] When a webpage loading instruction for the second page is detected and the first offline webpage package does not exist, the online access link is sent to the page component of the first application.

[0017] Preferably, when a webpage loading instruction for the second page is detected and the first offline webpage package does not exist, sending the online access link to the page component of the first application includes:

[0018] When a webpage loading instruction for the second page is detected and the first webpage offline package does not exist, the forced refresh permission for the second page is determined;

[0019] When the second page has forced refresh permission, the page resource files in the downloaded first webpage offline package are transferred to the page component of the first application;

[0020] When the second page does not have forced refresh permission, the online access link is sent to the page component of the first application.

[0021] Preferably, the method further includes:

[0022] For any downloaded offline webpage package, clear the temporary folder corresponding to the first page, unzip the offline webpage package to the temporary folder, and query the currently loaded folder to be used in the next loading.

[0023] When the currently loaded folder exists, the temporary folder is renamed to the update folder. When the page is loaded again, the currently loaded folder is deleted and the update folder is renamed to the currently loaded folder.

[0024] If the currently loaded folder does not exist, rename the temporary folder to the currently loaded folder.

[0025] According to a second aspect, a loading control device for offline webpage packages is provided, the device comprising:

[0026] The first determining module is used to determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform. The first page is a page with the offline package configuration enabled.

[0027] The transmission module is used to transmit the page resource file in the first offline webpage package corresponding to the second page to the page component of the first application when a webpage loading instruction for the second page is detected. The second page is the first page that needs to be loaded at the moment.

[0028] According to a third aspect, an electronic device is provided, including a processor and a memory;

[0029] The processor is connected to the memory;

[0030] The memory is used to store executable program code;

[0031] The processor runs a program corresponding to the executable program code stored in the memory to perform the steps of the method provided as in the first aspect or any possible implementation thereof.

[0032] According to a fourth aspect, a computer-readable storage medium is provided having a computer program stored thereon, the computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the method provided as in the first aspect or any possible implementation thereof.

[0033] The solution provided in this specification does not bundle the offline webpage package with the application software package. Instead, it uses a management platform to download the offline webpage packages for each first page of the authorized terminal's first application from a web packaging platform. When the authorized terminal's first application needs to launch a second page, the management platform directly transmits the page resource files of the corresponding offline webpage package to the page component of the first application according to the webpage loading instruction, allowing the first application to open the second page directly without downloading. This method ensures offline page loading while keeping the offline webpage package separate from the application package, allowing it to be updated as needed, and reducing the size of the application package when the user installs the application software. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram of the system architecture of a method for controlling the loading of offline web page packages, provided as an embodiment of this specification.

[0036] Figure 2 This is a flowchart illustrating a method for controlling the loading of offline webpage packages according to one embodiment of this specification.

[0037] Figure 3 This is a flowchart illustrating another method for controlling the loading of offline webpage packages, provided in one embodiment of this specification.

[0038] Figure 4 This is a flowchart illustrating another method for controlling the loading of offline webpage packages, provided as an embodiment of this specification.

[0039] Figure 5 This is a schematic diagram of a webpage offline package loading control device provided in one embodiment of this specification.

[0040] Figure 6 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this specification. Detailed Implementation

[0041] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0042] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0043] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0044] Please see Figure 1 , Figure 1 This document illustrates a system architecture diagram of a webpage offline package loading control method provided in an embodiment of this specification.

[0045] like Figure 1 As shown, the system architecture of this method for loading offline web packages can include at least a web packaging platform 10, a management platform 20, and an authorized terminal 30.

[0046] Web packaging platform 10 can be a unified packaging management platform that provides offline packages and online access links for each webpage, and provides resources for management platform 20 to download offline packages and online access links as needed. Web packaging platform 10 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0047] The management platform 20 can configure authenticated authorized terminals according to actual needs. Based on the first application and its corresponding first page within the authorized terminal, it downloads the corresponding offline webpage package and online access link from the web packaging platform 10. When the authorized terminal needs to launch a page, it transmits the relevant page resources to the authorized terminal for its use. The management platform 20 can be adjusted according to different needs and application scenarios. Specifically, the management platform 20 can be a dedicated server connected to each authorized terminal via a local area network (LAN) for interaction with authorized terminals within a specified area. In this case, one management platform 20 can authenticate multiple authorized terminals to manage the page loading process of multiple authorized terminals simultaneously. The local LAN connection allows the management platform 20 to quickly transmit the corresponding page resources to the authorized terminal when they need to be loaded, without requiring the authorized terminal to download them online. Alternatively, the management platform 20 can be a dedicated application or database within the authorized terminal for storing offline webpage packages. In this case, one management platform 20 corresponds to only one authorized terminal, and the downloaded offline webpage package is stored locally on the authorized terminal. Therefore, the first application can directly obtain the relevant resources from the local storage when loading a page.

[0048] The authorized terminal 30 can be a terminal, including but not limited to electronic devices such as smartphones, desktop computers, tablets, laptops, smart speakers, digital assistants, and smart wearable devices, or software running on the aforementioned electronic devices, such as applications. Optionally, the operating system running on the electronic device can include but is not limited to Android, iOS, Linux, and Windows.

[0049] In addition, it should be noted that, Figure 1 The system shown is only one example of the system provided in this disclosure. In practical applications, other systems may also be included, such as more terminals, more management platforms 20, etc.

[0050] In the embodiments described in this specification, the web packaging platform 10 and the management platform 20 can be directly or indirectly connected via wired or wireless communication. The management platform 20 and the authorized terminal 30 can be locally connected via a local area network or other means. This disclosure does not impose any restrictions on these aspects.

[0051] See Figure 2 , Figure 2 This is a flowchart illustrating a method for controlling the loading of an offline webpage package according to an embodiment of this application. In this embodiment, the method includes:

[0052] S201. Determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform.

[0053] The first page is the page where offline package configuration is enabled.

[0054] The entity implementing this application may be a management platform.

[0055] In the embodiments described in this specification, the management platform registers authorized terminals, which are terminals that require offline management of page resources by the management platform. Since not every application software within an authorized terminal requires offline page loading management, and not every page requiring loading within an application software may have offline package configuration enabled, and only pages with offline package configuration enabled can be controlled for offline loading, the registration information of each authorized terminal also includes the first application within the authorized terminal that requires offline loading control management, and the specific first page within that first application that requires offline loading control. After determining the specific first application and first page through the registration information, the management platform interacts with the web packaging platform to download the corresponding offline webpage packages for these first pages. The offline webpage package is a compressed file that packages static resources such as HTML, JS, CSS, and images, and / or dynamic resources such as GIFs. After downloading the offline webpage package, the management platform decompresses it and stores the corresponding page resources, awaiting their use.

[0056] S202. When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application.

[0057] The second page is the first page that needs to be loaded.

[0058] In the embodiments described in this specification, when a user opens the second page of the first application on the authorized terminal, the authorized terminal sends a webpage loading instruction for the second page to the management platform. Upon receiving the webpage loading instruction, the management platform determines the page resource file of the first offline webpage package corresponding to the second page from its stored resources and transmits the page resource file to the WebView container of the first application's page component, enabling the page component to quickly generate a displayable page using the page resource file. Since the management platform and the authorized terminal interact via a local connection, and the page resource file can be directly obtained by decompressing the offline package, the authorized terminal can quickly access and directly launch the page resource file without needing to download and decompress the corresponding resources over the network as in online page loading, resulting in higher loading efficiency. Furthermore, this method separates the offline webpage package from the application package, allowing the offline webpage package to be updated at any time without affecting the size of the application package.

[0059] In one possible implementation, after detecting the webpage loading instruction for the second page, the method further includes:

[0060] The web packaging platform checks for updates to the first offline webpage package and downloads the latest version of the first offline webpage package when updates are available.

[0061] In the embodiments described in this specification, after detecting a webpage loading instruction for the second page, the management platform, in addition to transmitting the corresponding page resource files for the authorized terminal to load, also checks the update information of the first webpage offline package. If the update information indicates that the first webpage offline package in the web packaging platform has been updated, the management platform will download the latest version of the first webpage offline package from the web packaging platform and replace the currently stored first webpage offline package with this new version, so that the new page resource files can be transmitted to the authorized terminal the next time the page is launched. In this way, the update status of the corresponding offline package for each page is automatically queried each time the page is launched, and the offline package is updated accordingly, so that the changes take effect the next time the page is opened.

[0062] In one possible implementation, the method further includes:

[0063] Determine the third page and the second application corresponding to the third page, wherein the third page is the first page marked with real-time requirements;

[0064] When the second application starts, the web packaging platform checks the update information of the second offline webpage corresponding to the third page, and downloads the latest second offline webpage if the second offline webpage is updated.

[0065] In the embodiments of this specification, for certain third pages with high real-time requirements, it is generally desirable to display the updated page interface immediately upon user launch. The management platform first determines the corresponding third page from the first page and then determines the corresponding second application. When the second application launches, the management platform checks the offline package update information of the third page from the web packaging platform and downloads the update if available. In this way, as soon as the user opens the second application, even before the user clicks to launch the third page, the management platform has already begun the process of updating and downloading the offline package. By the time the user opens the third page, the management platform has already completed the update and can directly transmit the latest page resource file to the authorized terminal, ensuring that the page content displayed when the user opens the third page is the latest page content.

[0066] See Figure 3 , Figure 3This is a flowchart illustrating another method for controlling the loading of offline webpage packages provided in this application. In this application embodiment, the method includes:

[0067] S301. Determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform.

[0068] The first page is the page where offline package configuration is enabled.

[0069] The entity implementing this application may be a management platform.

[0070] In the embodiments of this specification, step 301 can be referred to step 201, and will not be repeated here.

[0071] S302. When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application.

[0072] The second page is the first page that needs to be loaded.

[0073] In the embodiments of this specification, step 302 can be referred to step 202, and will not be repeated here.

[0074] S303. Configure the online access links corresponding to each page of the first application from the web packaging platform.

[0075] In the embodiments of this specification, in addition to offline loading, pages can also be loaded online. The management platform can also configure and store online access links for each page from the web packaging platform. Compared to offline loading, where the corresponding resource files are already downloaded and only need to be locally transferred and accessed by the authorized terminal when needed, online loading simply provides an online access link to the authorized terminal. The authorized terminal still needs to access and download the corresponding resources through the link before the page can be displayed, which takes longer. Since online loading takes longer than offline loading, offline loading will be preferred when the page supports offline loading.

[0076] S304. When a webpage loading instruction for the fourth page is detected, the online access link is sent to the page component of the first application.

[0077] The fourth page is the page where offline package configuration is not enabled.

[0078] In the embodiments of this specification, for the fourth page where offline package configuration is not enabled, the management platform will send an online access link to the page component after detecting the webpage loading instruction of the fourth page, so that the page can be downloaded and displayed online.

[0079] In one possible implementation, the method further includes:

[0080] When a webpage loading instruction for the second page is detected and the first offline webpage package does not exist, the online access link is sent to the page component of the first application.

[0081] In certain special cases (e.g., a page has just enabled offline package configuration, but the page has not yet been launched, so the corresponding offline package has not been downloaded), the management platform may not have downloaded the page resource files for the second page that needs to be launched. Although the management platform will check the corresponding update information and download the offline package after detecting the webpage loading instruction, the downloaded offline package can only guarantee use on the next launch, resulting in a blank screen during the current loading process and affecting the user experience. Therefore, if the management platform finds that the second page needs to be loaded but the offline package for the first webpage does not exist, in addition to checking for updates to download the offline package for the next use, the management platform will also downgrade the current offline loading process to an online loading process, sending an online access link to the page components so that the corresponding interface can be displayed at a slightly slower speed when the page is launched.

[0082] In one possible implementation, the step of sending the online access link to the page component of the first application when a webpage loading instruction for the second page is detected and the first offline webpage package does not exist includes:

[0083] When a webpage loading instruction for the second page is detected and the first webpage offline package does not exist, the forced refresh permission for the second page is determined;

[0084] When the second page has forced refresh permission, the page resource files in the downloaded first webpage offline package are transferred to the page component of the first application;

[0085] When the second page does not have forced refresh permission, the online access link is sent to the page component of the first application.

[0086] In the embodiments described in this specification, some pages may also support forced refresh after updating the offline package. Therefore, the management platform will first determine the forced refresh permission of the second page. If it has forced refresh permission, after downloading the offline package of the first webpage, it will still use the offline loading method to transfer the page resource file to the page component, so that the page component will force refresh the page according to the page resource file. If the second page does not have forced refresh permission, it will still use the online loading method to send an online access link to the page component.

[0087] See Figure 4 , Figure 4 This is a flowchart illustrating another method for controlling the loading of offline webpage packages provided in this application. In this application embodiment, the method includes:

[0088] S401. Determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform.

[0089] The first page is the page where offline package configuration is enabled.

[0090] The entity implementing this application may be a management platform.

[0091] In the embodiments of this specification, step 401 can be referred to step 201, and will not be repeated here.

[0092] S402. When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application.

[0093] The second page is the first page that needs to be loaded.

[0094] In the embodiments of this specification, step 402 can be referred to step 202, and will not be repeated here.

[0095] S403. For any downloaded offline webpage package, clear the temporary folder corresponding to the first page, decompress the offline webpage package to the temporary folder, and query the currently loaded folder to be used in the next loading.

[0096] In the embodiments of this specification, the management platform only decompresses the corresponding offline package to obtain the page resource files for transmission when the page needs to be loaded. File decompression takes a relatively long time (approximately 30ms). If the user closes or exits the application directly during the decompression process, the management platform's decompression process will be interrupted, resulting in only partial decompression and affecting the subsequent use logic of the offline package. Therefore, this application also designs a decompression process where resources corresponding to each page are stored in a separate path. Each path contains a temporary folder. When a downloaded offline package needs to be decompressed, the data stored in the previous decompression in the temporary folder is first cleared, and the webpage offline package is decompressed to the temporary folder. Then, it checks whether a currently loaded folder exists. Different processing is performed based on the existence of the currently loaded folder, which can be understood as the folder that specifically calls the page resource files during page loading.

[0097] S404. When the currently loaded folder exists, rename the temporary folder to the update folder, delete the currently loaded folder the next time the page is loaded, and rename the update folder to the currently loaded folder.

[0098] In the embodiments described in this specification, if a currently loaded folder exists, it indicates that resource loading operations may be underway in that folder. Directly renaming or replacing it might affect the current page loading process. Therefore, after the resources in the offline package are decompressed to a temporary folder, the management platform renames the temporary folder to an update folder and creates a new temporary folder. Upon the next startup, the update folder will be renamed to the currently loaded folder to ensure that the latest decompressed resource files are loaded on the next startup.

[0099] S405. If the currently loaded folder does not exist, rename the temporary folder to the currently loaded folder.

[0100] In the embodiments described in this specification, if a currently loaded folder does not exist, the temporary folder will be renamed to the currently loaded folder after the resources in the offline package have been decompressed to a temporary folder, so that the complete page resource files can be directly accessed. In this way, even if the decompression process is interrupted, only the data in the temporary folder is affected, and the data in the temporary folder will be cleared during the next decompression, so it will not cause any impact. Only when the data in the temporary folder has been completely decompressed can the temporary folder become the currently loaded folder and be loaded, thus ensuring the integrity and normality of the actually loaded data.

[0101] The following will be combined with the appendix Figure 5This application provides a detailed description of the webpage offline package loading control device provided in its embodiments. It should be noted that... Figure 5 The webpage offline package loading control device shown is used to execute this application. Figure 5 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figure 1 The example shown.

[0102] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a webpage offline package loading control device provided in an embodiment of this application. Figure 5 As shown, the device includes:

[0103] The first determining module 501 is used to determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform. The first page is a page with the offline package configuration enabled.

[0104] The transmission module 502 is used to transmit the page resource file in the first offline webpage package corresponding to the second page to the page component of the first application when a webpage loading instruction for the second page is detected, wherein the second page is the first page to be loaded.

[0105] In one possible implementation, the transmission module 502 is further configured to:

[0106] The web packaging platform checks for updates to the first offline webpage package and downloads the latest version of the first offline webpage package when updates are available.

[0107] In one possible implementation, the device further includes:

[0108] The second determining module is used to determine the third page and the second application corresponding to the third page, wherein the third page is the first page marked with real-time requirements;

[0109] The update module is used to check the update information of the second offline webpage corresponding to the third page on the web packaging platform when the second application starts, and to download the latest second offline webpage if the second offline webpage is updated.

[0110] In one possible implementation, the device further includes:

[0111] The configuration module is used to configure the online access links corresponding to each page of the first application from the web packaging platform;

[0112] The sending module is used to send the online access link to the page component of the first application when a webpage loading instruction for the fourth page is detected, wherein the fourth page is a page where the offline package configuration is not enabled.

[0113] In one possible implementation, the sending module is further configured to:

[0114] When a webpage loading instruction for the second page is detected and the first offline webpage package does not exist, the online access link is sent to the page component of the first application.

[0115] In one possible implementation, the sending module is further configured to:

[0116] When a webpage loading instruction for the second page is detected and the first webpage offline package does not exist, the forced refresh permission for the second page is determined;

[0117] When the second page has forced refresh permission, the page resource files in the downloaded first webpage offline package are transferred to the page component of the first application;

[0118] When the second page does not have forced refresh permission, the online access link is sent to the page component of the first application.

[0119] In one possible implementation, the device further includes:

[0120] The decompression module is used to clear the temporary folder corresponding to the first page for any downloaded offline webpage package, decompress the offline webpage package to the temporary folder, and query the currently loaded folder to be used in the next loading.

[0121] The first judgment module is used to rename the temporary folder to the update folder when the currently loaded folder exists, delete the currently loaded folder when the page is loaded again, and rename the update folder to the currently loaded folder.

[0122] The second judgment module is used to rename the temporary folder to the current loading folder when the current loading folder does not exist.

[0123] Those skilled in the art will clearly understand that the technical solutions of the embodiments of this application can be implemented by means of software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware capable of independently completing or cooperating with other components to complete a specific function, wherein the hardware may be, for example, a Field-Programmable Gate Array (FPGA), an Integrated Circuit (IC), etc.

[0124] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.

[0125] See Figure 6 It shows a schematic diagram of the structure of an electronic device according to an embodiment of this application, which can be used to implement... Figure 1 The method in the illustrated embodiment. (As shown) Figure 6 As shown, the electronic device 600 may include: at least one processor 601, at least one network interface 604, a user interface 603, a memory 605, and at least one communication bus 602.

[0126] The communication bus 602 is used to enable communication between these components.

[0127] The user interface 603 may include a display screen and a camera. Optionally, the user interface 603 may also include a standard wired interface and a wireless interface.

[0128] The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0129] The processor 601 may include one or more processing cores. The processor 601 connects to various parts within the electronic device 600 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 605, and by calling data stored in the memory 605. Optionally, the processor 601 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 601 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 601.

[0130] The memory 605 may include random access memory (RAM) or read-only memory. Optionally, the memory 605 may include a non-transitory computer-readable storage medium. The memory 605 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 605 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 605 may also be at least one storage device located remotely from the aforementioned processor 601. Figure 6 As shown, the memory 605, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.

[0131] exist Figure 6 In the illustrated electronic device 600, the user interface 603 is mainly used to provide an input interface for the user and to obtain user input data; while the processor 601 can be used to call the loading control application of the offline web page package stored in the memory 605, and specifically perform the following operations:

[0132] The first application to be loaded and controlled in the authorized terminal is determined, and the offline web package corresponding to each first page of the first application is downloaded from the web packaging platform. The first page is the page with the offline package configuration enabled.

[0133] When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application, where the second page is the first page that needs to be loaded.

[0134] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0135] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0136] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0137] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0138] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0139] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0140] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0141] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0142] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A method for controlling the loading of offline webpage packages, characterized in that, The method includes: The first application to be loaded and controlled in the authorized terminal is determined, and the offline web package corresponding to each first page of the first application is downloaded from the web packaging platform. The first page is the page with the offline package configuration enabled. When a webpage loading instruction for the second page is detected, the page resource file in the first offline webpage package corresponding to the second page is transferred to the page component of the first application, where the second page is the first page that needs to be loaded.

2. The method according to claim 1, characterized in that, After detecting the webpage loading instruction for the second page, the process further includes: The web packaging platform checks for updates to the first offline webpage package and downloads the latest version of the first offline webpage package when updates are available.

3. The method according to claim 1, characterized in that, The method further includes: Determine the third page and the second application corresponding to the third page, wherein the third page is the first page marked with real-time requirements; When the second application starts, the web packaging platform checks the update information of the second offline webpage corresponding to the third page, and downloads the latest second offline webpage if the second offline webpage is updated.

4. The method according to claim 1, characterized in that, The method further includes: Configure the online access links for each page of the first application from the web packaging platform; When a webpage loading instruction for the fourth page is detected, the online access link is sent to the page component of the first application, wherein the fourth page is a page for which offline package configuration is not enabled.

5. The method according to claim 4, characterized in that, The method further includes: When a webpage loading instruction for the second page is detected and the first offline webpage package does not exist, the online access link is sent to the page component of the first application.

6. The method according to claim 5, characterized in that, The step of sending the online access link to the page component of the first application when a webpage loading instruction for the second page is detected and the first offline webpage package does not exist includes: When a webpage loading instruction for the second page is detected and the first webpage offline package does not exist, the forced refresh permission for the second page is determined; When the second page has forced refresh permission, the page resource files in the downloaded first webpage offline package are transferred to the page component of the first application; When the second page does not have forced refresh permission, the online access link is sent to the page component of the first application.

7. The method according to claim 1, characterized in that, The method further includes: For any downloaded offline webpage package, clear the temporary folder corresponding to the first page, unzip the offline webpage package to the temporary folder, and query the currently loaded folder to be used in the next loading. When the currently loaded folder exists, the temporary folder is renamed to the update folder. When the page is loaded again, the currently loaded folder is deleted and the update folder is renamed to the currently loaded folder. If the currently loaded folder does not exist, rename the temporary folder to the currently loaded folder.

8. A loading control device for offline webpage packages, characterized in that, The device includes: The first determining module is used to determine the first application to be loaded and controlled in the authorized terminal, and download the offline web package corresponding to each first page of the first application from the web packaging platform. The first page is a page with the offline package configuration enabled. The transmission module is used to transmit the page resource file in the first offline webpage package corresponding to the second page to the page component of the first application when a webpage loading instruction for the second page is detected. The second page is the first page that needs to be loaded at the moment.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, the computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform the steps of the method as claimed in any one of claims 1-7.