CN113886746A - Page loading method, device, equipment and medium - Google Patents

Page loading method, device, equipment and medium Download PDF

Info

Publication number
CN113886746A
CN113886746A CN202111161997.5A CN202111161997A CN113886746A CN 113886746 A CN113886746 A CN 113886746A CN 202111161997 A CN202111161997 A CN 202111161997A CN 113886746 A CN113886746 A CN 113886746A
Authority
CN
China
Prior art keywords
page
current
loading
current page
secondary page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111161997.5A
Other languages
Chinese (zh)
Inventor
李艳婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111161997.5A priority Critical patent/CN113886746A/en
Publication of CN113886746A publication Critical patent/CN113886746A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The disclosure provides a page loading method, a page loading device, electronic equipment and a page loading medium, and relates to the technical field of computers, in particular to the field of page configuration. The implementation scheme is as follows: in response to the display of the current page, the loading duration of a second-level page of the current page is estimated to obtain a first estimated value; and performing a preload operation on the secondary page in response to determining that the first estimate value exceeds the threshold.

Description

Page loading method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of page configuration, and in particular, to a page loading method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
Feed stream is a content presentation means for presenting content of interest to a user in the form of information stream. With the rapid development of applications, Feed streams have become the mainstream way for content presentation in various applications. Various types of articles and videos are generally contained in the Feed stream, and clicking to a secondary page corresponding to the articles and videos is supported to view more content. In order to improve the user experience, the content of the second-level page can be preloaded in advance when the user browses the content of the current page, so that the content of the second-level page is quickly displayed to the user.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The disclosure provides a page loading method, a page loading device, an electronic device, a computer readable storage medium and a computer program product.
According to an aspect of the present disclosure, a page loading method is provided, including: responding to the display of the current page, and predicting the loading duration of a secondary page of the current page to obtain a first predicted value; and performing a preload operation on the secondary page in response to determining that the first estimate value exceeds a threshold.
According to another aspect of the present disclosure, there is provided a page loading apparatus including: the estimation module is configured to respond to the display of a current page and estimate the loading duration of a secondary page of the current page to obtain a first estimation value; and a preload module configured to perform a preload operation on the secondary page in response to determining that the first estimate value exceeds a threshold.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the page load method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the above page loading method.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program realizes the above page loading method when executed by a processor.
According to one or more embodiments of the disclosure, whether to preload the secondary page is determined based on the prediction of the loading duration of the secondary page, so that the preloading function is more accurate and efficient. It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
FIG. 1 shows a flowchart of a page loading method according to an example embodiment of the present disclosure;
FIG. 2 illustrates a flow diagram of a page loading method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a block diagram illustrating an architecture of a page loading apparatus according to an exemplary embodiment of the present disclosure; and
FIG. 4 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, the timing relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, an element and a second element may point to the same instance of the element, while in some cases they may also point to different instances based on the context of the description.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
In the related art, when a user browses the content of a current page, preloading of data of each secondary page content of the current page is started at a certain time. But the user can not be guaranteed to browse the content of each secondary page of the current page, and the content which is preloaded but not browsed by the user wastes some flow for the user; and for the server, a large amount of bandwidth resources are wasted.
To address one or more of the above issues, the present disclosure determines whether to preload a secondary page based on an estimate of a load duration of the secondary page, so that the preload function is more accurate and efficient.
The page loading method of the present disclosure will be further described below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a page loading method according to an exemplary embodiment of the present disclosure.
As shown in fig. 1, the page loading method 100 may include: step S101, responding to the display of a current page, and estimating the loading duration of a secondary page of the current page to obtain a first estimated value; and step S102, in response to the fact that the first estimated value exceeds the threshold value, performing preloading operation on the secondary page.
Based on the scheme, an adjustable threshold value can be set, and when the estimated loading time of the secondary page is less than the threshold value, the user can quickly browse the secondary page without preloading to obtain better user experience; and only preloading the secondary page when the estimated loading duration is greater than the threshold value so that the user can browse the content of the secondary page faster when clicking the secondary page. Therefore, whether the secondary page is preloaded or not is determined based on the estimation of the loading duration of the secondary page, so that the preloading function is more accurate and efficient, and network resources and memory resources are saved.
According to some embodiments, step S101 comprises: responding to the display of the current page, and estimating the loading duration of a secondary page of the current page for multiple times; and calculating an average value as the first estimated value based on the results of the multiple estimations. Because the network state usually fluctuates, the loading duration of the secondary page is estimated for multiple times, and the calculated average value is used as a pre-estimated value, so that the current network state can be estimated more accurately, and the pre-loading function is further more accurate.
According to some embodiments, the method further comprises: in response to determining that the first estimate does not exceed the threshold, waiting to receive a periodic instruction that predicts a load duration of the secondary page; and in response to receiving the instruction, predicting the loading duration of the secondary interface to obtain an updated first predicted value for comparison with the threshold. Therefore, the accuracy and the efficiency of the preloading operation are ensured by continuously predicting the loading duration of the secondary page.
It can be understood that when the first estimated value does not exceed the threshold, it indicates that the user can browse the content of the secondary page in a short time after clicking the secondary page, without preloading the secondary page to save network resources and memory resources.
In one example, the prediction of the load duration of the secondary page is a periodic prediction in response to a periodic instruction. In the current estimation period, if the first estimation value does not exceed the threshold value, the current network condition is better, a user can browse the content of the secondary page within a short time after clicking the secondary page, and only needs to wait for receiving a periodic instruction for estimating the loading duration of the secondary page so as to enter the next period to continuously estimate the loading duration of the secondary page without preloading the secondary page. And in each period, updating the first estimated value to the average value of the loading time of the secondary interface estimated for multiple times in the period so as to compare the first estimated value estimated in real time with a threshold value, and determining whether to preload the secondary page or not based on the comparison result.
According to some embodiments, the method further comprises: in response to determining that the first estimate value does not exceed the threshold, suspending an ongoing preload operation on the secondary page. Therefore, the pre-loading operation of the secondary page is stopped when the secondary page can be browsed quickly, so that network resources are saved. In an example, 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 ongoing preloading operation on the secondary page is suspended, so as to reduce frequent preloading and suspending preloading operations under fluctuating network conditions, and also ensure that a user can quickly browse the content of the secondary page, and ensure good user experience.
According to some embodiments, the method further comprises: responding to the switching of the network used for accessing the current page, and calculating a second estimated value of the loading duration of the secondary page after the network is switched; and performing a preload operation on the secondary page in response to the second estimate value exceeding the threshold.
Handover of a network may refer to the type of network used being handed over, for example from WiFi to 4G. The network switching usually causes the change of the network speed, so that the loading duration of the secondary page after the network switching is detected to be estimated after the network switching occurs, and whether the secondary page is preloaded is determined according to the estimated second estimated value. Therefore, the preloading strategy is determined by estimating the loading duration of the secondary page after the network is switched, so that a user can quickly browse the secondary page even after the network is switched, and better user experience is obtained.
According to some embodiments, the method further comprises: when exiting the current page, recording the network state and the preloading strategy when exiting, wherein the preloading strategy represents whether to perform preloading operation on the secondary page. The recorded information is used for determining the preloading strategy of the secondary page when the current page is revisited, so that the preloading of the secondary page is more accurate and more efficient when the current page is revisited.
According to some embodiments, the method further comprises: responding to the current page to be accessed again, and judging whether the current network state is the same as the network state when the current page is exited for the last time before the loading duration of the secondary page is estimated; and in response to the current network state being the same as the network state when the current page is exited last time, determining whether to perform preloading operation on the secondary page based on the preloading strategy when the current page is exited last time. Therefore, the loading strategy of the current secondary page is determined based on the network state when the current page is exited for the last time, so that the pre-loading of the secondary page is more accurate and efficient.
Fig. 2 shows a flowchart of a page loading method according to an exemplary embodiment of the present disclosure. As shown in fig. 2, in response to the display of the current page, the loading duration of the second-level page of the current page is periodically estimated, the estimated times are recorded, and when the current page is accessed for the first time, the second-level page is not preloaded by default. And in each period, the number of times of estimation is the second preset value, and after the estimation of the number of times of the second preset value is completed, one operation is added to the period number, namely, the next estimation period is started.
Responding to the fact that the number of cycles is equal to a first preset value and the second-level page is always preloaded in the period of the first preset value, comparing the first estimated value with a threshold value, if the first estimated value exceeds the threshold value, indicating that the current loading duration is long, in order to guarantee user experience, still keeping the preloading operation on the second-level page, and clearing the number of cycles; if the first estimated value does not exceed the threshold value, the current loading time is short, a user can browse the secondary page in a short time without preloading, the preloading operation on the secondary page is stopped, network resources are saved, and the cycle number is cleared.
And judging whether the estimated times are equal to a second preset value or not in response to the condition that the period number is not equal to the first preset value or the condition that the pre-loading is always carried out on the secondary page in the period which does not meet the first preset value, wherein the second preset value is the estimated times which should be carried out in one estimated period. And responding to the estimated times being equal to a second preset value, calculating a first estimated value and judging whether the first estimated value exceeds a threshold value. Similarly, if the first estimated value exceeds the threshold value, the current loading time is longer, in order to improve user experience, the secondary page is preloaded, the estimated times are cleared, and the current estimated period is finished; if the first estimated value does not exceed the threshold value, the current loading time is short, a user can browse a secondary page in a short time without preloading, wait for receiving an instruction for entering the next estimated period, and clear the estimated times.
And when the estimated times are not equal to a second preset value, responding to the determination that the network is switched, and calculating a second estimated value of the loading time of the secondary page after the network is switched. And judging whether the second estimated value exceeds a threshold value, and determining a preloading strategy for the secondary page based on the comparison result of the second estimated value and the threshold value.
According to another aspect of the present disclosure, a page loading apparatus is provided. As shown in fig. 3, the page loading apparatus 300 includes: the estimation module 301 is configured to estimate, in response to display of a current page, a loading duration of a second-level page of the current page to obtain a first estimation value; and a first preload module 302 configured to perform a preload operation on the secondary page in response to determining that the first estimate value exceeds a threshold.
The page loading apparatus 300 is configured to perform the following operations: in response to the display of the current page, the estimation module 301 estimates the loading duration of the second-level page of the current page to obtain a first estimation value; and in response to determining that the first estimate value exceeds a threshold, the first preload module 302 performs a preload operation on the secondary page.
It can be understood that an adjustable threshold may be set, and when the loading duration of the secondary page estimated by the estimation module 301 is less than the threshold, it indicates that the user may quickly browse the secondary page without preloading to obtain better user experience; only when the loading duration estimated by the estimation module 301 is greater than the threshold, the first preloading module 302 preloads the secondary page, so that the user can browse the content of the secondary page faster when clicking the secondary page. Therefore, whether the secondary page is preloaded or not is determined based on the estimation of the loading duration of the secondary page, so that the preloading function is more accurate and efficient, and network resources and memory resources are saved.
According to some embodiments, the estimation module 301 comprises: the estimation unit is configured to respond to the display of the current page and estimate the loading duration of a secondary page of the current page for multiple times; and a calculation unit configured to calculate an average value as the first prediction value based on the results of the plurality of predictions. Because the network state usually fluctuates, the estimation unit estimates the loading time of the secondary page for multiple times and the calculation unit calculates the average value to be used as the estimated value, so that the operation is beneficial to more accurately estimating the current network state and further ensuring that the pre-loading function is more accurate.
According to some embodiments, the apparatus further comprises: a wait to receive module configured to wait to receive periodic instructions that predict a load duration of the secondary page in response to determining that the first estimate does not exceed the threshold; and the updating module is configured to respond to the receiving of the instruction and estimate the loading time of the secondary interface to obtain an updated first estimated value for comparison with the threshold value. Therefore, the accuracy and the efficiency of the preloading operation are ensured by continuously predicting the loading duration of the secondary page.
It can be understood that when the first estimated value does not exceed the threshold, it indicates that the user can browse the content of the secondary page in a short time after clicking the secondary page, without preloading the secondary page to save network resources and memory resources.
In one example, the prediction module predicts the load duration of the secondary page periodically in response to a periodic instruction. In the current period, if the first estimated value does not exceed the threshold value, the current network condition is better, a user can browse the content of the secondary page within a short time after clicking the secondary page, and the receiving module waits for receiving a periodic instruction for estimating the loading duration of the secondary page so as to enter the next period to continuously estimate the loading duration of the secondary page without preloading the secondary page. In each period, the updating module updates the first estimated value to an average value of loading duration of the secondary interface estimated for multiple times in the period so as to compare the first estimated value estimated in real time with the threshold value, and the first preloading module determines whether to preload the secondary page or not based on the comparison result.
According to some embodiments, the apparatus further comprises: an abort module configured to abort an ongoing preload operation on the secondary page in response to determining that the first estimate does not exceed the threshold. Therefore, when the secondary page can be browsed quickly, the preloading operation of the secondary page is stopped by the stopping module, so that the network resource is saved. In one example, the suspending module may be further configured to, in response to determining that the first estimate does not exceed the threshold in a plurality of predicted periods and that the secondary page is always preloaded in the plurality of predicted periods, suspend ongoing preloading operations on the secondary page, so as to reduce frequent preloading and suspending preloading operations under fluctuating network conditions, and also ensure that a user can quickly browse the content of the secondary page, and ensure a good user experience.
According to some embodiments, the apparatus further comprises: the calculation module is configured to respond to the switching of the network for accessing the current page, and calculate a second estimated value of the loading duration of the secondary page after the network is switched; and a second preload module configured to perform a preload operation on the secondary page in response to the second estimate exceeding the threshold.
Handover of a network may refer to the type of network used being handed over, for example from WiFi to 4G. The network switching usually causes the network speed to change, so that the computation module estimates the loading duration of the secondary page after the network switching is detected, and determines whether the second preloading module preloads the secondary page according to the estimated second estimated value. Therefore, the preloading strategy is determined by estimating the loading duration of the secondary page after the network is switched, so that a user can quickly browse the secondary page even after the network is switched, and better user experience is obtained.
According to some embodiments, the apparatus further comprises: and the recording module is configured to record the network state and the preloading strategy when exiting the current page, wherein the preloading strategy represents whether to perform preloading operation on the secondary page. The information recorded by the recording module is used for determining the preloading strategy of the secondary page when the current page is revisited, so that the preloading of the secondary page is more accurate and more efficient when the current page is revisited.
According to some embodiments, the apparatus further comprises: the judging module is configured to respond to revisiting the current page, and judge whether the current network state is the same as the network state when the current page exits for the last time before the loading duration of the secondary page is estimated; and the determining module is configured to determine whether to perform preloading operation on the secondary page based on the preloading strategy when the current page is exited last time in response to the current network state being the same as the network state when the current page was exited last time. Therefore, the loading strategy of the current secondary page is determined by the determining module based on the network state when the current page is exited for the last time, so that the secondary page is preloaded more accurately and efficiently.
According to another aspect of the present disclosure, there is also provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the page loading method described above.
According to another aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the above-mentioned page loading method.
According to another aspect of the present disclosure, there is also provided a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the page loading method described above.
Referring to fig. 4, a block diagram of a structure of an electronic device 400, which may be a server of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the apparatus 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in device 400 are connected to I/O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 may be any type of device capable of inputting information to the device 400, and the input unit 406 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote control. Output unit 407 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. Storage unit 408 may include, but is not limited to, magnetic or optical disks. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, 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 (TM) devices, 1302.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
Computing unit 401 may be a variety of general 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 dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 401 executes the respective 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 embodied 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 onto the device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, computing unit 401 may be configured to perform the page load method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a 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 may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.

Claims (17)

1. A method of page loading, the method comprising:
responding to the display of the current page, and predicting the loading duration of a secondary page of the current page to obtain a first predicted value; and
performing a preload operation on the secondary page in response to determining that the first estimate value exceeds a threshold.
2. The method of claim 1, wherein estimating a loading duration of a secondary page of a current page in response to display of the current page to obtain a first estimate value comprises:
responding to the display of the current page, and estimating the loading duration of a secondary page of the current page for multiple times; and
and calculating an average value based on the results of the multiple estimations as the first estimation value.
3. The method of claim 1 or 2, further comprising:
in response to determining that the first estimate does not exceed the threshold, waiting to receive a periodic instruction that predicts a load duration of the secondary page; and
and in response to receiving the instruction, estimating the loading time of the secondary interface to obtain an updated first estimated value for comparison with the threshold value.
4. The method of claim 3, further comprising:
in response to determining that the first estimate value does not exceed the threshold, suspending an ongoing preload operation on the secondary page.
5. The method of any of claims 1-4, further comprising:
responding to the switching of the network used for accessing the current page, and calculating a second estimated value of the loading duration of the secondary page after the network is switched; and
performing a preload operation on the secondary page in response to the second estimate value exceeding the threshold.
6. The method of any of claims 1-4, further comprising:
when exiting the current page, recording the network state and the preloading strategy when exiting, wherein the preloading strategy represents whether to perform preloading operation on the secondary page.
7. The method of claim 6, further comprising:
responding to the current page to be accessed again, and judging whether the current network state is the same as the network state when the current page is exited for the last time before the loading duration of the secondary page is estimated; and
and in response to the current network state being the same as the network state when the current page is exited last time, determining whether to perform preloading operation on the secondary page based on the preloading strategy when the current page is exited last time.
8. A page loading apparatus, the apparatus comprising:
the estimation module is configured to respond to the display of a current page and estimate the loading duration of a secondary page of the current page to obtain a first estimation value; and
a first preload module configured to perform a preload operation on the secondary page in response to determining that the first estimate value exceeds a threshold.
9. The apparatus of claim 8, wherein the prediction module comprises:
the estimation unit is configured to respond to the display of the current page and estimate the loading duration of a secondary page of the current page for multiple times; and
a calculation unit configured to calculate an average value as the first prediction value based on the results of the plurality of predictions.
10. The apparatus of claim 8 or 9, further comprising:
a wait to receive module configured to wait to receive periodic instructions that predict a load duration of the secondary page in response to determining that the first estimate does not exceed the threshold; and
and the updating module is configured to respond to the received instruction and estimate the loading time of the secondary interface to obtain an updated first estimated value for comparison with the threshold value.
11. The apparatus of claim 10, further comprising:
an abort module configured to abort an ongoing preload operation on the secondary page in response to determining that the first estimate does not exceed the threshold.
12. The apparatus of any of claims 8-11, further comprising:
the calculation module is configured to respond to the switching of the network for accessing the current page, and calculate a second estimated value of the loading duration of the secondary page after the network is switched; and
a second preload module configured to perform a preload operation on the secondary page in response to the second estimate exceeding the threshold.
13. The apparatus of any of claims 8-11, further comprising:
and the recording module is configured to record the network state and the preloading strategy when exiting the current page, wherein the preloading strategy represents whether to perform preloading operation on the secondary page.
14. The apparatus of claim 13, further comprising:
the judging module is configured to respond to revisiting the current page, and judge whether the current network state is the same as the network state when the current page exits for the last time before the loading duration of the secondary page is estimated; and
a determining module configured to determine whether to perform a preloading operation on the secondary page based on a preloading policy when the current page is exited last time in response to a current network state being the same as a network state when the current page was exited last time.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1 to 7.
17. A computer program product comprising a computer program, wherein the computer program realizes the method of any one of claims 1 to 7 when executed by a processor.
CN202111161997.5A 2021-09-30 2021-09-30 Page loading method, device, equipment and medium Pending CN113886746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111161997.5A CN113886746A (en) 2021-09-30 2021-09-30 Page loading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111161997.5A CN113886746A (en) 2021-09-30 2021-09-30 Page loading method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113886746A true CN113886746A (en) 2022-01-04

Family

ID=79004880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111161997.5A Pending CN113886746A (en) 2021-09-30 2021-09-30 Page loading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113886746A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016884A (en) * 2022-07-21 2022-09-06 维沃移动通信有限公司 Application program control method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016884A (en) * 2022-07-21 2022-09-06 维沃移动通信有限公司 Application program control method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US9684562B2 (en) Automatic serial starting of resource groups on failover based on the prediction of aggregate resource usage
JP7241729B2 (en) Resource scheduling method, device, facility, storage medium, and program
JP4756675B2 (en) System, method and program for predicting computer resource capacity
US20200153751A1 (en) Monitoring data streams and scaling computing resources based on the data streams
US8046468B2 (en) Process demand prediction for distributed power and resource management
JP6191691B2 (en) Abnormality detection apparatus, control method, and program
US20160077571A1 (en) Heuristic Processor Power Management in Operating Systems
US9118520B1 (en) Systems and methods for monitoring application resource usage on mobile computing systems
JP2021517697A (en) Resource scheduling method and terminal device
JPWO2005017736A1 (en) System and program for detecting bottleneck in disk array device
US20150195371A1 (en) Changing a cache queue based on user interface pointer movement
JP2021099860A (en) Task calculation amount determining method, device, electronic apparatus and computer program product
CN113810773B (en) Video downloading method and device, electronic equipment and storage medium
US11354163B2 (en) Virtual machine placement method and virtual machine placement device implementing the same
CN113886746A (en) Page loading method, device, equipment and medium
CN114818913A (en) Decision generation method and device
EP3161631A1 (en) Processing workloads in single-threaded environments
CN113778644A (en) Task processing method, device, equipment and storage medium
US20230385048A1 (en) Predictive recycling of computer systems in a cloud environment
CN115774602A (en) Container resource allocation method, device, equipment and storage medium
US9372786B1 (en) Constructing state-transition functions for mobile devices
US11561801B2 (en) Predicting execution duration for user-defined functions on function-as-a-service (FaaS) cloud computing platforms
CN108280113B (en) Service Worker control method and device and electronic terminal
CN112632384A (en) Data processing method and device for application program, electronic equipment and medium
KR20130114795A (en) Diciding method of dynamic voltage and frequency scaling(dvfs) and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination