Page loading method, apparatus, device, and medium

By estimating the loading time of secondary pages and setting thresholds, it is possible to accurately determine whether to preload, thus solving the problem of resource waste in existing technologies and achieving more efficient preloading and improved user experience.

CN113886746BActive Publication Date: 2026-07-21BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2021-09-30
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing technologies, when a user browses the content of a secondary page of the current page, the preloading process fails to accurately determine the user's needs, resulting in a waste of traffic and bandwidth resources.

Method used

By estimating the loading time of secondary pages and setting a threshold, preloading is only performed when the loading time exceeds the threshold, reducing unnecessary preloading operations.

Benefits of technology

It improves the accuracy and efficiency of preloading, saves network and memory resources, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886746B_ABST
    Figure CN113886746B_ABST
Patent Text Reader

Abstract

The present disclosure provides a page loading method and device, electronic equipment and medium, relates to the technical field of computers, in particular to the field of page configuration. The implementation scheme is: in response to the display of the current page, the loading time of the secondary page of the current page is estimated to obtain a first estimated value; and in response to determining that the first estimated value exceeds a threshold value, a preloading operation is performed on the secondary page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more particularly to the field of page configuration, specifically to a page loading method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] A feed is a content display method that presents users with content they are interested in in a streaming format. With the rapid development of applications, feeds have become the mainstream content display method in various applications. Feeds typically contain various types of articles and videos, and support clicking through to secondary pages corresponding to articles and videos to view more content. To improve user experience, the content of secondary pages can be preloaded while the user is browsing the current page, allowing the content of the secondary pages to be displayed to the user quickly.

[0003] The methods described in this section are not necessarily methods that had been previously conceived or adopted. Unless otherwise specified, no method described in this section should be assumed to be prior art simply because it is included in this section. Similarly, unless otherwise specified, the issues mentioned in this section should not be considered to be accepted in any prior art. Summary of the Invention

[0004] This disclosure provides a page loading method, apparatus, electronic device, computer-readable storage medium, and computer program product.

[0005] According to one aspect of this disclosure, a page loading method is provided, comprising: in response to the display of a current page, estimating the loading time of a secondary page of the current page to obtain a first estimated value; and in response to determining that the first estimated value exceeds a threshold, performing a preloading operation on the secondary page.

[0006] According to another aspect of this disclosure, a page loading apparatus is provided, comprising: an estimation module configured to estimate the loading time of a secondary page of the current page in response to the display of the current page, to obtain a first estimated value; and a preloading module configured to perform a preloading operation on the secondary page in response to determining that the first estimated value exceeds a threshold.

[0007] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the page loading method described above.

[0008] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the page loading method described above.

[0009] According to another aspect of this disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above-described page loading method when executed by a processor.

[0010] According to one or more embodiments of this disclosure, this disclosure determines whether to preload secondary pages based on an estimate of the loading time of the secondary pages, so that the preloading function is more accurate and efficient. It should be understood that the content described in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0011] The accompanying drawings exemplify embodiments and form part of the specification, serving together with the textual description to explain exemplary implementations of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0012] Figure 1 A flowchart of a page loading method according to an exemplary embodiment of the present disclosure is shown;

[0013] Figure 2 A flowchart of a page loading method according to an exemplary embodiment of the present disclosure is shown;

[0014] Figure 3 A structural block diagram of a page loading apparatus according to an exemplary embodiment of the present disclosure is shown; and

[0015] Figure 4 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation

[0016] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0017] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, an element and a second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.

[0018] The terminology used in the description of the various examples described in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.

[0019] In related technologies, when a user browses the content of the current page, the data for each subpage of the current page is preloaded at a certain point. However, it cannot be guaranteed that the user will browse every subpage of the current page. Content that has been preloaded but not viewed by the user wastes some bandwidth for the user and a significant amount of bandwidth resources for the server.

[0020] To address one or more of the aforementioned issues, this disclosure determines whether to preload the secondary page based on an estimate of its loading time, thereby making the preloading function more accurate and efficient.

[0021] The page loading method of this disclosure will be further described below with reference to the accompanying drawings.

[0022] Figure 1 A flowchart of a page loading method according to an exemplary embodiment of the present disclosure is shown.

[0023] like Figure 1 As shown, the page loading method 100 may include: step S101, in response to the display of the current page, estimating the loading time of the secondary page of the current page to obtain a first estimated value; and step S102, in response to determining that the first estimated value exceeds a threshold, performing a preloading operation on the secondary page.

[0024] Based on the above scheme, an adjustable threshold can be set. When the estimated loading time of the secondary page is less than this threshold, it means that users can quickly browse the secondary page and obtain a good user experience without preloading. Preloading of the secondary page is only performed when the estimated loading time exceeds the threshold, so that users can also quickly browse the content of the secondary page when clicking on it. Therefore, determining whether to preload the secondary page based on the estimated loading time makes the preloading function more accurate and efficient, while saving network and memory resources.

[0025] According to some embodiments, step S101 includes: in response to the display of the current page, making multiple estimates of the loading time of the secondary pages of the current page; and calculating an average value based on the results of the multiple estimates, as the first estimated value. Since network conditions are usually fluctuating, making multiple estimates of the loading time of the secondary pages and using the calculated average value as the estimated value helps to more accurately assess the network conditions at the time, and further makes the preloading function more accurate.

[0026] According to some embodiments, the method further includes: in response to determining that the first estimated value does not exceed the threshold, waiting to receive a periodic instruction to estimate the loading time of the secondary page; and in response to receiving the instruction, estimating the loading time of the secondary page to obtain an updated first estimated value for comparison with the threshold. Thus, by continuously estimating the loading time of the secondary page, the accuracy and efficiency of the preloading operation are ensured.

[0027] Understandably, when the first estimated value does not exceed the threshold, it means that after clicking on the secondary page, the user can browse the content of the secondary page in a very short time without having to preload the secondary page to save network and memory resources.

[0028] In one example, the estimation of the loading time of a secondary page is performed periodically in response to periodic instructions. In the current estimation period, if the initial estimated value does not exceed a threshold, it indicates that the network conditions are good, and the user can view the content of the secondary page very quickly after clicking on it. The user only needs to wait for the periodic instruction to estimate the loading time of the secondary page to proceed to the next period for continuous estimation, without needing to preload the secondary page. In each period, the initial estimated value is updated to the average of the loading times of the secondary page obtained from multiple estimations within that period. This initial estimated value is compared with a threshold, and the comparison result determines whether to preload the secondary page.

[0029] According to some embodiments, the method further includes: in response to determining that the first estimated value does not exceed the threshold, suspending the ongoing preloading operation of the secondary page. This stops the preloading operation of the secondary page when it can be quickly viewed, saving network resources. In one example, the method may also suspend the ongoing preloading operation of the secondary page in response to determining that the first estimated value does not exceed the threshold in multiple estimation periods and that the secondary page is consistently preloaded in multiple estimation periods. This reduces the frequency of preloading and suspending preloading operations under fluctuating network conditions, while still ensuring that users can quickly view the content of the secondary page, guaranteeing a good user experience.

[0030] According to some embodiments, the method further includes: in response to a network switch used to access the current page, calculating a second estimated value of the loading time of the secondary page after the network switch; and in response to the second estimated value exceeding the threshold, performing a preloading operation on the secondary page.

[0031] Network switching can refer to a change in the type of network used, such as switching from WiFi to 4G. Network switching usually results in changes in network speed. Therefore, after detecting a network switch, it's necessary to estimate the loading time of the secondary page after the switch. Based on this estimated value, a preloading strategy can be determined, ensuring users can quickly browse the secondary page even after a network switch, resulting in a better user experience.

[0032] According to some embodiments, the method further includes: when exiting the current page, recording the network state and preloading strategy at the time of exit, wherein the preloading strategy indicates whether to preload the secondary page. The recorded information is used to determine the preloading strategy for the secondary page when the current page is accessed again, so that the preloading of the secondary page is more accurate and efficient when the current page is accessed again.

[0033] According to some embodiments, the method further includes: in response to revisiting the current page, before estimating the loading time of the secondary page, determining whether the current network state is the same as the network state when the current page was last exited; and in response to the current network state being the same as the network state when the current page was last exited, determining whether to perform a preloading operation on the secondary page based on the preloading strategy used when the current page was last exited. Thus, determining the current loading strategy for the secondary page based on the network state when the current page was last exited makes the preloading of the secondary page more accurate and efficient.

[0034] Figure 2 A flowchart of a page loading method according to an exemplary embodiment of this disclosure is shown. Figure 2 As shown, in response to the display of the current page, the loading time of the second-level pages of the current page is periodically estimated, and the number of estimations is recorded. On the first visit to the current page, the second-level pages are not preloaded by default. In each period, the number of estimations should be the second preset value. After estimating the second preset value number of times, the period number is incremented by one, thus entering the next estimation period.

[0035] In response to the condition that the number of cycles equals a first preset value and the second-level page is always preloaded within the first preset value period, the first preset value is compared with a threshold. If the first preset value exceeds the threshold, it indicates that the current loading time is relatively long. In order to ensure user experience, the preloading operation of the second-level page is still maintained, and the number of cycles is reset to zero. If the first preset value does not exceed the threshold, it indicates that the current loading time is relatively short. Users can browse the second-level page in a shorter time without preloading. The preloading operation of the second-level page is stopped to save network resources, and the number of cycles is reset to zero.

[0036] In response to a period number not equal to a first preset value or the condition that the second-level page is consistently preloaded within the first preset period not being met, it is determined whether the estimated number of times is equal to a second preset value, where the second preset value is the estimated number of times to be performed within an estimated period. In response to an estimated number of times equal to the second preset value, a first estimated value is calculated, and it is determined whether the first estimated value exceeds a threshold. Similarly, if the first estimated value exceeds the threshold, it indicates that the current loading time is long; to improve user experience, the second-level page is preloaded, and the estimated number of times is reset to zero, indicating that the current estimated period is complete. If the first estimated value does not exceed the threshold, it indicates that the current loading time is short; the user can browse the second-level page in a short time without preloading, and the system waits to receive the instruction to enter the next estimated period, and the estimated number of times is reset to zero.

[0037] When the estimated number of attempts is not equal to the second preset value, in response to determining that a network switch has occurred, a second estimated value for the loading time of the secondary page after the network switch is calculated. It is then determined whether the second estimated value exceeds a threshold, and a preloading strategy for the secondary page is determined based on the comparison between the second estimated value and the threshold.

[0038] According to another aspect of this disclosure, a page loading device is provided. For example... Figure 3 As shown, the page loading device 300 includes: an estimation module 301 configured to estimate the loading time of a secondary page of the current page in response to the display of the current page, so as to obtain a first estimated value; and a first preloading module 302 configured to perform a preloading operation on the secondary page in response to determining that the first estimated value exceeds a threshold.

[0039] The page loading device 300 is configured to perform the following operations: in response to the display of the current page, the estimation module 301 estimates the loading time of the secondary page of the current page to obtain a first estimated value; and in response to determining that the first estimated value exceeds a threshold, the first preloading module 302 performs a preloading operation on the secondary page.

[0040] Understandably, an adjustable threshold can be set. When the estimated loading time of the secondary page by the estimation module 301 is less than this threshold, it means that the user can quickly browse the secondary page and obtain a good user experience without preloading. Only when the estimated loading time by the estimation module 301 is greater than the threshold will the first preloading module 302 preload the secondary page, so that the user can also quickly browse the content of the secondary page when clicking on it. Thus, determining whether to preload the secondary page based on the estimated loading time makes the preloading function more accurate and efficient, while saving network and memory resources.

[0041] According to some embodiments, the estimation module 301 includes: an estimation unit configured to, in response to the display of the current page, perform multiple estimations of the loading time of the secondary pages of the current page; and a calculation unit configured to calculate an average value based on the results of the multiple estimations, as the first estimated value. Since network conditions are typically fluctuating, the estimation unit performing multiple estimations of the loading time of the secondary pages and the calculation unit calculating the average value as the estimated value helps to more accurately assess the current network condition and further makes the preloading function more accurate.

[0042] According to some embodiments, the apparatus further includes: a waiting receiving module configured to wait to receive a periodic instruction to estimate the loading time of the secondary page in response to determining that the first estimated value does not exceed the threshold; and an updating module configured to estimate the loading time of the secondary page in response to receiving the instruction, to obtain an updated first estimated value for comparison with the threshold. Thus, by continuously estimating the loading time of the secondary page, the accuracy and efficiency of the preloading operation are ensured.

[0043] Understandably, when the first estimated value does not exceed the threshold, it means that after clicking on the secondary page, the user can browse the content of the secondary page in a very short time without having to preload the secondary page to save network and memory resources.

[0044] In one example, the estimation module estimates the loading time of a secondary page in response to periodic instructions. In the current cycle, if the first estimated value does not exceed a threshold, it indicates good network conditions, meaning the user can view the content of the secondary page quickly after clicking it. The receiving module then waits for periodic instructions to estimate the loading time of the secondary page before proceeding to the next cycle to continuously estimate the loading time without preloading the secondary page. In each cycle, the updating module updates the first estimated value to the average loading time of the secondary page obtained from multiple estimates within that cycle. This is compared with the threshold, and the first preloading module determines whether to preload the secondary page based on the comparison result.

[0045] According to some embodiments, the apparatus further includes a stop module configured to stop the ongoing preloading operation of the secondary page in response to determining that the first estimated value does not exceed the threshold. Thus, when the secondary page can be quickly viewed, the stop module stops the preloading operation of the secondary page to save network resources. In one example, the stop module may also be configured to stop the ongoing preloading operation of the secondary page in response to determining that the first estimated value does not exceed the threshold in multiple estimation periods and that the secondary page is always preloaded in the multiple estimation periods. This reduces the frequency of preloading and stopping preloading operations under fluctuating network conditions, while also ensuring that users can quickly view the content of the secondary page, guaranteeing a good user experience.

[0046] According to some embodiments, the apparatus further includes: a calculation module configured to calculate a second estimated value of the loading time of the secondary page after the network switch occurs in response to a network switch used to access the current page; and a second preloading module configured to perform a preloading operation on the secondary page in response to the second estimated value exceeding the threshold.

[0047] Network switching can refer to a change in the type of network used, such as switching from WiFi to 4G. Network switching usually results in changes in network speed. Therefore, upon detecting a network switch, the computing module estimates the loading time of the secondary page after the network switch. Based on this second estimated value, it determines whether the second preloading module should preload the secondary page. Thus, by estimating the loading time of the secondary page after a network switch, a preloading strategy is determined, ensuring that users can quickly browse the secondary page even after switching networks, resulting in a better user experience.

[0048] According to some embodiments, the apparatus further includes a recording module configured to record the network state and preloading strategy when exiting the current page, wherein the preloading strategy indicates whether to preload the secondary page. The information recorded by the recording module is used to determine the preloading strategy for the secondary page when the current page is accessed again, so that the preloading of the secondary page is more accurate and efficient when the current page is accessed again.

[0049] According to some embodiments, the apparatus further includes: a determining module configured to, in response to revisiting the current page, determine whether the current network state is the same as the network state when the current page was last exited; and a determining module configured to, in response to the current network state being the same as the network state when the current page was last exited, determine whether to perform a preloading operation on the secondary page based on the preloading strategy at the time of the last exit. Thus, the determining module determines the current loading strategy for the secondary page based on the network state at the time of the last exit, making the preloading of the secondary page more accurate and efficient.

[0050] According to another aspect of this disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the page loading method described above.

[0051] According to another aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to cause the computer to perform the page loading method described above.

[0052] According to another aspect of this disclosure, a computer program product is also provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the page loading method described above.

[0053] refer to Figure 4 The present invention describes a structural block diagram of an electronic device 400 that can serve as a server of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The term "electronic device" is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0054] like Figure 4 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.

[0055] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, output unit 407, storage unit 408, and communication unit 409. Input unit 406 can be any type of device capable of inputting information to device 400. Input unit 406 can receive input numerical or character information and generate key signal inputs related to user settings and / or function control of the electronic device, and may include, but is not limited to, a mouse, keyboard, touchscreen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 407 can be any type of device capable of presenting information, and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 408 may include, but is not limited to, a hard disk and an optical disk. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth™ devices, 1302.11 devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0056] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the page loading method. For example, in some embodiments, the page loading method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the page loading method by any other suitable means (e.g., by means of firmware).

[0057] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0058] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0059] 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.

[0060] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0061] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0062] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0063] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0064] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.

Claims

1. A page loading method, the method comprising: In response to the display of the current page, the loading time of the second-level pages of the current page is estimated based on the network status used to access the current page, to obtain a first estimated value, including: In response to the display of the current page, the loading time of the second-level pages of the current page is estimated multiple times; and The average value is calculated based on the results of the multiple estimates and used as the first estimate. In response to determining that the first estimated value exceeds the threshold, a preloading operation is performed on the secondary page; In response to determining that the first estimated value does not exceed the threshold in a plurality of estimated periods and that the second-level page is always preloaded in the plurality of estimated periods, the ongoing preloading operation of the second-level page is stopped. When exiting the current page, record the network status and preloading strategy at the time of exit, wherein the preloading strategy indicates whether to perform a preloading operation on the secondary page; In response to a re-access to the current page, before estimating the loading time of the secondary page, it is determined whether the current network state is the same as the network state when the current page was last accessed; and If the current network state is the same as the network state when the current page was last exited, determine whether to preload the secondary page based on the preloading strategy when the current page was last exited.

2. The method according to claim 1, further comprising: In response to determining that the first estimated value does not exceed the threshold, wait to receive a periodic instruction to estimate the loading time of the secondary page; as well as In response to receiving the instruction, the loading time of the secondary page is estimated to obtain an updated first estimate, which is then compared with the threshold.

3. The method according to claim 1 or 2, further comprising: In response to a change in the network used to access the current page, a second estimated value of the loading time of the secondary page after the network change is calculated; as well as In response to the second estimated value exceeding the threshold, a preloading operation is performed on the secondary page.

4. A page loading device, the device comprising: The estimation module is configured to, in response to the display of the current page, estimate the loading time of the second-level pages of the current page based on the network status used to access the current page, so as to obtain a first estimated value. as well as A first preloading module is configured to preload the secondary page in response to determining that the first estimated value exceeds a threshold, wherein the estimated value module includes: The estimation unit is configured to, in response to the display of the current page, perform multiple estimations of the loading time of the second-level pages of the current page; and The calculation unit is configured to calculate the average value based on the results of the multiple estimates, as the first estimate; A module configured to abort the ongoing preloading operation of the secondary page in response to determining that the first estimated value does not exceed the threshold in a plurality of estimated periods and that the secondary page is always preloaded in the plurality of estimated periods. The recording module is configured to record the network status and preloading strategy when exiting the current page, wherein the preloading strategy indicates whether to perform a preloading operation on the secondary page; The judgment module is configured to, in response to a re-access to the current page, determine whether the current network state is the same as the network state when the current page was last accessed, before estimating the loading time of the secondary page; and The determination module is configured to determine whether to preload the secondary page based on the preloading strategy at the time of the most recent exit from the current page, in response to the current network state being the same as the network state at the time of the most recent exit from the current page.

5. The apparatus according to claim 4, further comprising: The waiting receiving module is configured to wait for a periodic instruction to estimate the loading time of the secondary page in response to determining that the first estimated value does not exceed the threshold. as well as The update module is configured to, in response to receiving the instruction, estimate the loading time of the secondary page to obtain an updated first estimate, which is then compared with the threshold.

6. The apparatus according to claim 4 or 5, further comprising: The calculation module is configured to calculate a second estimated value of the loading time of the secondary page after the network switch occurs in response to a network switch used to access the current page. as well as The second preloading module is configured to preload the secondary page in response to the second estimated value exceeding the threshold.

7. An electronic device, comprising: At least one processor; as well as A memory that is communicatively connected to the at least one processor; in The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 3.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 3.

9. A computer program product comprising a computer program, wherein, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 3.