Page processing method and device, electronic equipment, storage medium and product
By determining the current triggering time and object in the application and preprocessing the page to be displayed, the problem of insufficient device storage space is solved, page access speed is improved, and storage space balance is controlled.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2024-10-16
- Publication Date
- 2026-04-17
AI Technical Summary
While existing technologies improve page loading speed, they fail to effectively manage offline resources, leading to insufficient device storage space.
By determining the current triggering timing and triggering objects within the application, and combining this with configuration information, the pages to be displayed are pre-processed, including pre-downloading or activation operations, to ensure that page resources are in storage space, improve access speed, and control the balance of storage space.
This approach improves page loading speed while reducing storage space usage, increasing resource offline rate, and ensuring a balance between page loading performance and storage space.
Smart Images

Figure CN121880668A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to computer technology, and more particularly to a page processing method, apparatus, electronic device, storage medium, and product. Background Technology
[0002] Discretization technology involves pre-downloading page resources to the device. When the page is accessed, the local page resources are used directly for rendering, thereby improving the speed of the first screen display.
[0003] As the number of offline page resources in an application increases, the storage space occupied by the application will also increase accordingly. While this can improve page loading speed to some extent, if not managed properly, excessive offline resource storage may lead to problems such as insufficient device storage space.
[0004] Therefore, while considering using offline resources to improve page access efficiency, it is necessary to adopt effective strategies to increase the offline resource rate during page access, so as to achieve a better balance between improving access speed and controlling storage space. Summary of the Invention
[0005] This disclosure provides a page processing method, apparatus, electronic device, storage medium, and product to achieve a balance between improving the access speed of the page to be displayed and controlling storage space.
[0006] In a first aspect, embodiments of this disclosure provide a page processing method, including:
[0007] Determine the current triggering moment within the application and the current triggering object associated with the current triggering moment, wherein the current triggering moment indicates that there is a need to process subsequent pages, and the current triggering object includes the object that identifies the page to be displayed in the current triggering moment;
[0008] The configuration information includes operation information associated with the current triggering time and the current triggering object, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the application's storage space.
[0009] The page to be displayed is processed according to the operation information.
[0010] Secondly, embodiments of this disclosure also provide a page processing apparatus, including:
[0011] The first determining module is used to determine the current triggering time within the application and the current triggering object associated with the current triggering time. The current triggering time indicates that there is a need to process subsequent pages. The current triggering object includes the object that identifies the page to be displayed in the current triggering time.
[0012] The second determining module is used to determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the storage space of the application.
[0013] The processing module is used to process the page to be displayed based on the operation information.
[0014] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0015] One or more processing devices;
[0016] Storage device for storing one or more programs.
[0017] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the page processing method provided in the embodiments of this disclosure.
[0018] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the page processing method provided in embodiments of this disclosure.
[0019] Fifthly, embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the page processing method provided according to embodiments of this disclosure.
[0020] In this embodiment, the page to be displayed and operation information are determined by the current triggering time and the currently triggering object associated with the current triggering time within the application. Then, the page to be displayed is processed based on the operation information. Specifically, the operation information indicates that the page to be displayed should be stored in the application's storage space. This ensures that after processing the page based on the operation information, it can be stored in the application's storage space, thereby improving the access speed of the page to be displayed. When identifying the page to be displayed, the system indicates that there is a need to process subsequent pages; that is, it processes pages that have processing requirements, thus filtering the pages to be displayed and improving the application's resource offline rate. This achieves a balance between improving the access speed of the page to be displayed and controlling storage space. Attached Figure Description
[0021] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 This is a schematic flowchart of a page processing method provided in an embodiment of this disclosure;
[0023] Figure 2 This is a schematic flowchart of another page processing method provided in the embodiments of this disclosure;
[0024] Figure 3 This is a schematic flowchart of a preprocessing process for a page to be processed, provided in an embodiment of this disclosure.
[0025] Figure 4 This is a schematic diagram of the interface of a current page provided in an embodiment of this disclosure;
[0026] Figure 5 This is a schematic diagram of the structure of a page processing apparatus provided in an embodiment of this disclosure;
[0027] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] Figure 1 This is a schematic flowchart of a page processing method provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to the case of pre-downloading pages. The method can be executed by a page processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.
[0035] like Figure 1 As shown, the method includes:
[0036] S110. Determine the current triggering time within the application and the current triggering object associated with the current triggering time.
[0037] The current triggering moment indicates a current situation where there is a need to process subsequent pages, and the current triggering object includes the object that identifies the page to be displayed in the current triggering moment;
[0038] An application can be software designed to perform a specific function. For example, a video application is one that enables video publishing and viewing. The current triggering moment can be considered the application's current state, a moment where there is a need to process subsequent pages within the application; this need indicates the possibility that a subsequent page will be displayed. The page to be displayed can be considered the page to be displayed within the application, such as the front-end page. The front-end page can be considered the part of the client where the user directly interacts. Different current triggering moments can correspond to different current triggering objects. The specific content of the current triggering object can be determined based on the current triggering moment. The current triggering object can be considered an identifier used to identify the page to be displayed at the current triggering moment.
[0039] In one embodiment, the current triggering event can be the display of an anchor point. An anchor point can be a location marker that enables navigation. An anchor point can be an element on a page, allowing navigation to a specific part of the page or a new page. When an anchor point is displayed, clicking it enables page navigation. This disclosure uses anchor point display as the current triggering event. Correspondingly, the corresponding current triggering object can be the anchor point's identifier, indicating the location to which the user will navigate, such as the page to which they will navigate. This disclosure uniquely identifies the page to be displayed using the current triggering event and the current triggering object. The page to be displayed can be the page displayed after the current triggering object is clicked during the current triggering event.
[0040] This disclosure can determine the current triggering event within the application by detecting the current state of the application. After determining the current triggering event, the current triggering object associated with the current triggering event can be identified, so as to determine the page to be displayed.
[0041] Different current triggering times can be determined in different ways. The current triggering time can be determined by the application's state, and different current triggering times can be associated with different current triggering objects. After determining the current triggering time, the application can be further inspected to determine the current triggering object under the current triggering time.
[0042] If the current triggering event is an anchor point display, it can be determined whether the application is currently displaying an anchor point. If so, the current triggering object associated with the application under the anchor point display event can be further determined. For example, if the current triggering event is a homepage anchor point display, this operation can detect whether an anchor point has been displayed on the homepage. If so, it can iterate through the displayed anchor points and determine the identifier of the displayed anchor point as the current triggering object. Similarly, in a page displaying a video, the anchor point is a control that triggers navigation to the page to be displayed.
[0043] If the current triggering event is a functional module display, it can be determined whether the application is currently displaying a functional module. If so, the associated current triggering object can be further identified. This associated current triggering object uniquely identifies the currently displayed functional module. In other words, the current triggering event is used to determine if a functional module is currently being displayed. The current triggering object identifies the currently displayed functional module. A functional module can be considered a program unit with relatively independent functionality, capable of performing a specific task or implementing a specific function. For example, if the current triggering event is the display of a functional module on the homepage, the current triggering object identifies the first and second functional modules displayed on the homepage. Clicking on the first and second functional modules will respectively display different pages to be shown.
[0044] S120. Determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object.
[0045] Configuration information can be considered as pre-configured information associated with the current triggering time and the current triggering object. This associated information can indicate the pending page and operation information uniquely identified by the current triggering time and the current triggering object. Operation information can identify the operation on the pending page, such as activation or pre-download. Operation information indicates the operation of storing the page to be displayed in the application's storage space. The application's storage space can be a physical or virtual area used to store application-related data. It can be the capacity provided by physical devices such as hard drives, solid-state drives, and memory cards, or the storage capacity provided by virtual spaces such as cloud storage. Application-related data can include the application's own code and resource files.
[0046] After pre-downloading a page to be processed, it can be stored in the application's storage space. Once the page is activated, it can remain stored in storage, such as by extending its validity period.
[0047] Configuration information can be stored within the application. This configuration information can store different current trigger times, current trigger objects, operation information, and the relationships between the displayed page and the current trigger time. After determining the current trigger time and current trigger object, this operation can retrieve the operation information associated with the current trigger object and current trigger time, as well as the displayed page associated with the current trigger object and current trigger time from the configuration information.
[0048] S130. Process the page to be displayed according to the operation information.
[0049] After determining the operation information and the page to be displayed, this operation can perform the actions represented by the operation information on the page to be displayed. For example, it can pre-download or activate the page to be displayed so that it is stored in storage space when it is displayed.
[0050] This disclosure performs a judgment on the current triggering object when the application is in a situation where there is a need to process subsequent pages, thereby determining the operation information and the page to be processed. Then, based on the operation information, the page to be processed is processed. This enables operations on subsequent pages, such as pre-downloading or activation, to be performed when there is a need to process subsequent pages, ensuring that the page to be displayed exists in the storage space when it is displayed, thus improving the display speed of the page to be displayed. The page to be displayed can be a page determined from the current triggering time and the current triggering object among the subsequent pages.
[0051] The technical solution of this disclosure determines the page to be displayed and operation information by using the current triggering time and the currently triggering object associated with the current triggering time within the application. Then, the page to be displayed is processed based on the operation information. Specifically, the operation information indicates that the page to be displayed should be stored in the application's storage space. This ensures that after processing the page based on the operation information, it can be stored in the application's storage space, thereby improving the access speed of the page to be displayed. When identifying the page to be displayed, the system indicates that there is a need to process subsequent pages; that is, it processes pages that have processing needs, thus filtering the pages to be displayed and improving the application's resource offline rate. This achieves a balance between improving the access speed of the page to be displayed and controlling storage space.
[0052] Based on the above embodiments, modified embodiments of the above embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in the modified embodiments.
[0053] In one embodiment, the operation information includes pre-downloading, and the processing of the page to be displayed based on the operation information includes:
[0054] Determine whether the page resource for the page to be displayed exists in the storage space;
[0055] If it does not exist, download the page resource.
[0056] Pre-downloading can be considered as downloading the page resources for a page to be displayed in advance, before the page is actually shown. Page resources can be the elements and data required to construct the page. Page resources can include graphic elements, text content, and multimedia resources. Graphic elements can include background images, icons, button images, etc., of the page to be displayed. Text content can be the text on the page to be displayed, such as titles and prompts. Multimedia resources include audio, images, and video.
[0057] If the operation information is pre-download, the system first checks if the page resources for the page to be displayed exist in the current storage space. If they exist, the operation ends, and the page to be displayed is then shown based on the page resources stored in the storage space when it is displayed subsequently. If they do not exist, the page resources for the page to be displayed are downloaded (page resources can be downloaded using a queue-skipping update method), and the downloaded page resources are stored in the storage space. This allows the system to retrieve page resources from the storage space when the current triggering event and the current triggering object are frequently triggered.
[0058] In one embodiment, the operation information includes an activation operation, and the processing of the page to be displayed based on the operation information includes:
[0059] Simulate access to the page to be displayed;
[0060] Refresh the read history of the page to be displayed and update the remaining time of the page to be displayed stored in the storage space.
[0061] An activation operation can be considered as changing a page from an inactive state to an active state. When the operation information is an activation operation, this embodiment can simulate access to the page to be displayed without rendering the page.
[0062] Refresh the read history of the page to be displayed, that is, record the operation of this simulated access to the page to be displayed, to prevent the page from being cleared if the read history indicates that the page will not be displayed for a long time. The "long time" can be measured by a set duration threshold, which is not limited here.
[0063] The remaining time that the page to be displayed is stored in the storage space can be considered as the time that the page to be displayed can still be stored in the storage space.
[0064] After simulating access to the page to be displayed, update the remaining time to extend the time the page is stored in the storage space.
[0065] Page resources stored in the storage space can be cleaned up when they are not used for a long time. Pages that are to be displayed in this disclosure can be activated, thereby updating their remaining time. For example, before activation, if the remaining time of a page resource is 3 days, then after 3 days, the page resource can be considered to have been unused for a long time. After activation, the remaining time of the page resource is updated to 7 days, extending the time before the page resource is cleaned up.
[0066] In one embodiment, the simulated access to the page to be displayed includes:
[0067] Determine whether there is an activation record for the page to be displayed within the set time period;
[0068] If not, simulate access to the page to be displayed.
[0069] The set duration can be considered a pre-defined period for limiting the activation frequency. Within the set duration, the page to be displayed can be activated only once. Activation records can be considered records of information related to the activation of the page to be displayed. For example, when the page to be displayed is activated, a record can be made; the recorded content is not limited and can include the time the page to be displayed was activated.
[0070] When simulating access to a page to be displayed, you can first determine whether there is an activation record for the page to be displayed within the set time period.
[0071] If an activation record exists within the set time period, the operation ends and this activation is not performed. If no activation record exists for the page to be displayed within the set time period, it can be assumed that the page to be displayed has not been activated within the set time period, and this activation operation can be performed, i.e., simulating access to the page to be displayed.
[0072] This embodiment activates the cached activation status. If there is an activation record for a certain page within a set time period in memory, then activation will not be performed again.
[0073] For example, this disclosure can set access frequency control, allowing for activation or pre-downloading of a specific page resource within a set time period. The set time period can be the same or different for different operating systems.
[0074] In one embodiment, the page processing method provided in this disclosure further includes:
[0075] If access to the page to be displayed fails during the simulated access, the pre-downloaded information will be determined as the operation information when the operation information associated with the current triggering time and the current triggering object is determined in the configuration information in the next time it is determined.
[0076] If the page resources for the page to be displayed do not exist in the storage space, simulating access to the page to be displayed can lead to access failure, thus causing the activation of the page resources to fail. Therefore, in this embodiment, during the next polling, that is, when determining the operation information associated with the current triggering time and the current triggering object in the configuration information, the pre-download can be directly determined as the operation information to facilitate the pre-download of the page resources for the page to be displayed.
[0077] Figure 2 This is a flowchart illustrating another page processing method provided in this disclosure embodiment. This embodiment refines the operations for determining the current triggering timing and the current triggering object. See [link to relevant documentation]. Figure 2 This embodiment includes the following operations:
[0078] S210. Determine the current triggering time within the current page of the application.
[0079] In this embodiment, the current triggering time is the triggering time within the current page. The current page can be the page currently displayed by the application. In this embodiment, when displaying the current page, subsequent pages can be preprocessed to achieve preprocessing based on the operation path. The operation path can be considered as the path for operating the application, such as the path from the current page to the page to be displayed.
[0080] This operation can detect the current page and determine its current triggering state. Different triggering states correspond to different detection methods, and this operation can determine the current triggering state of the current page based on the different adaptability of the current triggering state.
[0081] In one embodiment, the current triggering timing includes one of the following:
[0082] When the anchor point is displayed on the current page, that is, when the anchor point is visible on the current page, clicking the anchor point will redirect to the page to be displayed;
[0083] When the functional modules on the current page are displayed, that is, when the functional modules on the current page are visible, clicking on the functional module will jump to the corresponding page to be displayed.
[0084] When the front-end container loads.
[0085] The loading of the front-end container can be considered the moment when the container carrying various content and functions begins to load. The current triggering object corresponding to the loading of the front-end container can be the Uniform Resource Locator (URL) of the page to be displayed. When a functional module is displayed on the current page, the corresponding current triggering object can be the identifier of the functional module.
[0086] If the current triggering time is when the anchor point is displayed on the current page, this operation can determine whether the current page is in the time to display the anchor point.
[0087] If the current triggering time is when a functional module is displayed on the current page, this operation can determine whether the current page is in the timing of a functional module display.
[0088] If the current triggering time is when the front-end container is loading, this operation can detect whether the current page is loading the front-end container.
[0089] S220. Determine the current triggering object associated with the current page under the current triggering time, wherein the page to be displayed includes the page to be displayed after the current page is displayed.
[0090] After determining the current triggering time, this operation can detect the current triggering object associated with that time on the current page. Different current triggering times correspond to different current triggering objects. Based on this correspondence, this operation can determine the current triggering object. For example, if the current triggering time is when an anchor is displayed on the current page, the operation can identify the anchor displayed on the current page and use its identifier as the current triggering object. Similarly, if the current triggering time is when a functional module is displayed on the current page, the operation can identify the functional module displayed on the current page and use its identifier as the current triggering object. Furthermore, if the current triggering time is when the front-end container is loaded, the operation can use the Uniform Resource Locator (URL) of the page carried by the loaded front-end container as the current triggering object.
[0091] S230. Determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object.
[0092] S240. Process the page to be displayed according to the operation information.
[0093] In this embodiment, the page to be processed and the processing operation are determined based on the current triggering time and the current triggering object of the current page in the application. The page to be displayed is preprocessed based on the path between pages, which improves the speed at which the page to be displayed is displayed.
[0094] The page processing method disclosed herein can be considered a resource preprocessing solution. For mobile web applications, offline rendering technology is often used to pre-download page resources to the device. When a page is accessed, local page resources are used directly for rendering, thus improving the speed of the first screen display. When various applications frequently use this method, the number of offline page resources on the device becomes very large, causing the application's storage space usage to gradually increase. Therefore, for global considerations, resource cleanup is performed (e.g., if a page has not been used for seven days, its resources are cleaned up), resulting in a lack of offline resources on the device when accessing the front-end page, leading to very poor page performance. The front-end page can refer to the interface portion directly presented on the device. The front-end typically refers to the part that the user directly interacts with, primarily responsible for presenting the interface and handling user actions.
[0095] A global cleanup strategy is not entirely reasonable for localized applications. Increased traffic to some new pages takes time, and continuously cleaning up resources during this period can cause a drop in business metrics, prolonging the cycle for increased traffic. Balancing individual page loading performance with the overall application's storage space usage is a problem that needs to be solved.
[0096] This disclosure filters pages to be displayed based on the current triggering time and the current triggering object during preprocessing, identifying those pages that are likely to be displayed, i.e., pages requiring preprocessing. Compared to preprocessing all pages within the application, this reduces storage space usage. Preprocessing the pages to be displayed also speeds up the display process when those pages are actually displayed.
[0097] This disclosure improves the resource offline rate during page access within the context of page resource cleanup. In the context of page access, the resource offline rate refers to the proportion of resources that can be retrieved locally (from storage available in an offline state) rather than from the network when accessing a page. A higher resource offline rate means potentially faster page loading speeds, as reading resources from the local cache is generally faster than requesting them over the network (affected by factors such as network bandwidth and server response time).
[0098] This disclosure improves resource offline rate through the following two methods:
[0099] 1. Pre-emptive timing for acquiring page resources: When accessing the current page, the page resources of the subsequent pages to be displayed are acquired; that is, the page resources of the pages to be displayed are acquired when there is both the need and the ability to access the pages to be displayed. The current triggering timing in this disclosure can be considered as a pre-emptive timing, that is, a timing where pre-processing can be performed as soon as there is a need.
[0100] 2. If there is no demand or ability to access the page to be displayed for x days, clean up the page resources of the page to be displayed.
[0101] Figure 3 This is a flowchart illustrating a preprocessing process for a page to be processed, as provided in an embodiment of this disclosure. See also... Figure 3 The current triggering timing can be when an anchor point is displayed on the page, when a functional module is displayed on the page, or when the front-end container loads. When the current triggering timing occurs on the current page, the application's configuration information can be retrieved. Based on the current triggering timing and the current triggering object, the configuration information is queried to determine if a configuration match has occurred, such as whether the operation information corresponding to the current triggering timing and the current triggering object, and the page to be displayed, are present in the configuration information. If the operation information found in the configuration information is an activation operation, resources can be activated, i.e., simulating access to the page to be displayed, refreshing the reading record of the page to be displayed, and updating the remaining time of the page to be displayed stored in the storage space. If the operation information found in the configuration information is a pre-download operation, it is necessary to determine whether a resource package for the page has been matched, i.e., whether the page resources for the page to be displayed exist in the storage space. If not, the resources are downloaded, i.e., the page resources for the page to be displayed are downloaded. If they exist, the process ends.
[0102] The above approach allows for preprocessing of pages to be displayed during anchor point display, functional module display, and front-end container loading. The configuration information can be determined based on the conversion rate between pages. Operations for infrequently accessed scenarios between pages are set to "activate," while operations for frequently accessed scenarios are set to "pre-download." For example, if page A frequently redirects to page B via anchor points (i.e., the conversion rate from page A to page B exceeds a set conversion threshold), then the anchor point display on page A is used as the current trigger, the anchor point's identifier is used as the current trigger object, the corresponding operation is "pre-download," and the page to be displayed is page B. Conversely, if the conversion rate from page A to page B (a functional module on page A redirects to page B after being clicked) is below the set conversion threshold but still has a certain probability of being displayed, then the functional module display on page A can be used as the current trigger, the functional module's identifier is used as the current trigger object, and the corresponding operation is "activate."
[0103] The conversion threshold is a pre-set value used to measure the conversion rate between two pages. The page conversion rate can be considered as the probability of being redirected from the current page to the page to be displayed.
[0104] In this disclosure, the activation operation can be considered as simulating a single access, refreshing the page resource reading record of the page to be displayed, without rendering the page. The activation operation can renew page resources; the renewal time can be the same or different across different operating systems. When performing the activation operation, if there are no page resources locally, they will be downloaded in the next polling, that is, when determining the operation information associated with the current triggering time and the current triggering object in the configuration information, the pre-downloaded information will be determined as the operation information. This disclosure achieves minimal page resource cleanup through the activation operation.
[0105] In this disclosure, during pre-downloading, if it is determined that there are no page resources locally, the download will proceed immediately, without needing to wait for the operation of displaying the page to be displayed to occur before downloading. This achieves pre-downloading of page resources.
[0106] With the above-mentioned preprocessing method for page resources, even if the page resources are cleaned up due to long-term inactivity, the page can still be displayed relatively quickly.
[0107] Figure 4 This is a schematic diagram of the interface of a current page provided in an embodiment of this disclosure. See also: Figure 4The current page 1 displays functional modules, including tag 2 (a) and tag 3 (b). The current page 1 is at the current trigger point for the functional module corresponding to the tag tab. Tag 2 and tag 3 are the current trigger objects. Based on the current trigger point and the current trigger object, configuration information is queried. Assuming the current trigger point and the current trigger object of tag 2 match successfully, the corresponding operation information and the page to be displayed are obtained. Then, the page to be processed corresponding to tag 2 is preprocessed. The page to be processed corresponding to tag 2 is the page displayed after tag 2 is clicked.
[0108] The current triggering event provided in this disclosure can be considered a type of triggering event, such as anchor display, container display, or anchor click. The current triggering object can identify a specific instance within a type of current triggering event. Each different functional module can define a current triggering event; for example, the display of a functional module corresponding to a tag on the homepage is a current triggering event. For the same functional module, different entry points or forms can be defined as different current triggering objects. For example, different tags correspond to different current triggering objects, and different Uniform Resource Locators (URLs) correspond to different current triggering objects. The current triggering event and the current triggering object can uniquely identify the entry point of a pre-processed page resource.
[0109] Figure 5 This is a schematic diagram of the structure of a page processing apparatus provided in an embodiment of this disclosure, as shown below. Figure 5 As shown, the page processing device includes:
[0110] The first determining module 510 is used to determine the current triggering time within the application and the current triggering object associated with the current triggering time. The current triggering time indicates that there is a need to process subsequent pages. The current triggering object includes the object that identifies the page to be displayed in the current triggering time.
[0111] The second determining module 520 is used to determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the storage space of the application.
[0112] The processing module 530 is used to process the page to be displayed based on the operation information.
[0113] The technical solution provided in this disclosure determines the current triggering time and the currently triggering object associated with the current triggering time within the application through a first determining module, and determines the page to be displayed and operation information through a second determining module. Then, a processing module processes the page to be displayed based on the operation information. Specifically, the operation information indicates that the page to be displayed should be stored in the application's storage space. This ensures that after processing the page based on the operation information, it can be stored in the application's storage space, thereby improving the access speed of the page to be displayed. When identifying the page to be displayed, the system indicates that there is a need to process subsequent pages; that is, it processes pages that have processing needs, thus filtering the pages to be displayed and improving the application's resource offline rate. This achieves a balance between improving the access speed of the page to be displayed and controlling storage space.
[0114] In one embodiment, the first determining module 510 is specifically used for:
[0115] Determine the current triggering event within the current page of the application;
[0116] Determine the current triggering object associated with the current page at the current triggering time, wherein the page to be displayed includes the page to be displayed after the current page is displayed.
[0117] In one embodiment, the current triggering timing includes one of the following:
[0118] When the anchor point is displayed on the current page;
[0119] When the functional modules on the current page are displayed;
[0120] When the front-end container loads.
[0121] In one embodiment, the operation information includes pre-downloading, and the processing module 530 is specifically used for:
[0122] Determine whether the page resource for the page to be displayed exists in the storage space;
[0123] If it does not exist, download the page resource.
[0124] In one embodiment, the operation information includes an activation operation, and the processing module 530 includes:
[0125] A simulation unit is used to simulate access to the page to be displayed;
[0126] The refresh unit is used to refresh the read record of the page to be displayed and update the remaining time of the page to be displayed stored in the storage space.
[0127] In one embodiment, the simulation unit is specifically used for:
[0128] Determine whether there is an activation record for the page to be displayed within the set time period;
[0129] If not, simulate access to the page to be displayed.
[0130] In one embodiment, the page processing apparatus further includes a determining module, configured to:
[0131] If access to the page to be displayed fails during the simulated access, the pre-downloaded information will be determined as the operation information when the operation information associated with the current triggering time and the current triggering object is determined in the configuration information in the next time it is determined.
[0132] The page processing apparatus provided in this disclosure can execute the page processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0133] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0134] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Refer to the following... Figure 6 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 6 A structural diagram of the terminal device or server in the 500.
[0135] Electronic equipment 500, including:
[0136] One or more processing devices 501;
[0137] Storage device 508, for storing one or more programs,
[0138] When the one or more programs are executed by the one or more processing devices 501, the one or more processing devices 501 implement any of the methods provided in this disclosure.
[0139] The terminal devices in this disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0140] like Figure 6 As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.
[0141] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0142] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0143] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0144] The electronic device provided in this embodiment and the page processing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0145] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the page processing method provided in the above embodiments.
[0146] It should be noted that the computer-readable medium described above in this disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination thereof.
[0147] The computer storage medium may be a storage medium for computer-executable instructions, which, when executed by a computer processor, are used to perform the methods provided in this disclosure.
[0148] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0149] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0150] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0151] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: determine a current triggering moment within the application and a current triggering object associated with the current triggering moment, wherein the current triggering moment indicates a current moment where there is a need to process subsequent pages, and the current triggering object includes an object in the current triggering moment that identifies a page to be displayed;
[0152] The configuration information includes operation information associated with the current triggering time and the current triggering object, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the application's storage space.
[0153] The page to be displayed is processed according to the operation information.
[0154] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0155] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0156] The modules or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules or units do not necessarily limit the specific unit; for example, the first determining module can also be described as the "current triggering object determining module".
[0157] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0158] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0159] A computer program product includes a computer program that, when executed by a processor, implements the page processing method provided according to embodiments of this disclosure. It possesses the corresponding functional modules and beneficial effects for implementing the method.
[0160] According to one or more embodiments of this disclosure, [Example 1] provides a page processing method, including:
[0161] Determine the current triggering moment within the application and the current triggering object associated with the current triggering moment, wherein the current triggering moment indicates that there is a need to process subsequent pages, and the current triggering object includes the object that identifies the page to be displayed in the current triggering moment;
[0162] The configuration information includes operation information associated with the current triggering time and the current triggering object, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the application's storage space.
[0163] The page to be displayed is processed according to the operation information.
[0164] According to one or more embodiments of this disclosure, [Example 2] provides the method described in Example 1, wherein determining the current triggering timing within the application and the current triggering object associated with the current triggering timing includes:
[0165] Determine the current triggering event within the current page of the application;
[0166] Determine the current triggering object associated with the current page at the current triggering time, wherein the page to be displayed includes the page to be displayed after the current page is displayed.
[0167] According to one or more embodiments of this disclosure, [Example 3] provides the method described in Example 2, wherein the current triggering timing includes one of the following:
[0168] When the anchor point is displayed on the current page;
[0169] When the functional modules on the current page are displayed;
[0170] When the front-end container loads.
[0171] According to one or more embodiments of this disclosure, [Example 4] provides the method of Example 1, wherein the operation information includes pre-downloading, and the step of processing the page to be displayed according to the operation information includes:
[0172] Determine whether the page resource for the page to be displayed exists in the storage space;
[0173] If it does not exist, download the page resource.
[0174] According to one or more embodiments of this disclosure, [Example 5] provides the method of Example 1, wherein the operation information includes an activation operation, and the step of processing the page to be displayed according to the operation information includes:
[0175] Simulate access to the page to be displayed;
[0176] Refresh the read history of the page to be displayed and update the remaining time of the page to be displayed stored in the storage space.
[0177] According to one or more embodiments of this disclosure, [Example 6] provides the method of Example 5, wherein the simulated access to the page to be displayed includes:
[0178] Determine whether there is an activation record for the page to be displayed within the set time period;
[0179] If not, simulate access to the page to be displayed.
[0180] According to one or more embodiments of this disclosure, Example 7 provides the method described in Example 5, further comprising:
[0181] If access to the page to be displayed fails during the simulated access, the pre-downloaded information will be determined as the operation information when the operation information associated with the current triggering time and the current triggering object is determined in the configuration information in the next time it is determined.
[0182] According to one or more embodiments of this disclosure, [Example 8] provides a page processing apparatus, including:
[0183] The first determining module is used to determine the current triggering time within the application and the current triggering object associated with the current triggering time. The current triggering time indicates that there is a need to process subsequent pages. The current triggering object includes the object that identifies the page to be displayed in the current triggering time.
[0184] The second determining module is used to determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the storage space of the application.
[0185] The processing module is used to process the page to be displayed based on the operation information.
[0186] According to one or more embodiments of this disclosure, [Example 9] an electronic device is provided, the electronic device comprising:
[0187] One or more processing devices;
[0188] Storage device for storing one or more programs.
[0189] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the page processing method as described in any of Examples 1-7.
[0190] According to one or more embodiments of this disclosure, [Example 10] provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform a page processing method as described in any of Examples 1-7.
[0191] According to one or more embodiments of this disclosure, [Example 11] provides a computer program product including a computer program that, when executed by a processor, implements the page processing method according to any one of Examples 1-7.
[0192] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0193] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0194] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A page processing method, characterized in that, include: Determine the current triggering moment within the application and the current triggering object associated with the current triggering moment, wherein the current triggering moment indicates that there is a need to process subsequent pages, and the current triggering object includes the object that identifies the page to be displayed in the current triggering moment; The configuration information includes operation information associated with the current triggering time and the current triggering object, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the application's storage space. The page to be displayed is processed according to the operation information.
2. The method according to claim 1, characterized in that, Determining the current triggering time within the application and the current triggering object associated with the current triggering time includes: Determine the current triggering event within the current page of the application; Determine the current triggering object associated with the current page at the current triggering time, wherein the page to be displayed includes the page to be displayed after the current page is displayed.
3. The method according to claim 1, characterized in that, The operation information includes pre-downloading, and the processing of the page to be displayed based on the operation information includes: Determine whether the page resource for the page to be displayed exists in the storage space; If it does not exist, download the page resource.
4. The method according to claim 1, characterized in that, The operation information includes an activation operation, and the processing of the page to be displayed based on the operation information includes: Simulate access to the page to be displayed; Refresh the read history of the page to be displayed and update the remaining time of the page to be displayed stored in the storage space.
5. The method according to claim 4, characterized in that, The simulated access to the page to be displayed includes: Determine whether there is an activation record for the page to be displayed within the set time period; If not, simulate access to the page to be displayed.
6. The method according to claim 4, characterized in that, Also includes: If access to the page to be displayed fails during the simulated access, the pre-downloaded information will be determined as the operation information when the operation information associated with the current triggering time and the current triggering object is determined in the configuration information in the next time it is determined.
7. A page processing apparatus, characterized in that, include: The first determining module is used to determine the current triggering time within the application and the current triggering object associated with the current triggering time. The current triggering time indicates that there is a need to process subsequent pages. The current triggering object includes the object that identifies the page to be displayed in the current triggering time. The second determining module is used to determine the operation information associated with the current triggering time and the current triggering object in the configuration information, as well as the page to be displayed that is jointly identified by the current triggering time and the current triggering object. The operation information indicates the operation of storing the page to be displayed in the storage space of the application. The processing module is used to process the page to be displayed based on the operation information.
8. An electronic device, characterized in that, The electronic device includes: One or more processing devices; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the page processing method as described in any one of claims 1-6.
9. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the page processing method as described in any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the page processing method according to any one of claims 1-6.