CN111597480A - Webpage resource preloading method and device, computer equipment and storage medium - Google Patents

Webpage resource preloading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111597480A
CN111597480A CN202010344803.4A CN202010344803A CN111597480A CN 111597480 A CN111597480 A CN 111597480A CN 202010344803 A CN202010344803 A CN 202010344803A CN 111597480 A CN111597480 A CN 111597480A
Authority
CN
China
Prior art keywords
page
current page
preset
preloading
user
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
CN202010344803.4A
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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010344803.4A priority Critical patent/CN111597480A/en
Publication of CN111597480A publication Critical patent/CN111597480A/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/957Browsing optimisation, e.g. caching or content distillation

Abstract

The application relates to a block chain technology, and discloses a webpage resource preloading method, a webpage resource preloading device, a computer device and a storage medium. The method comprises the following steps: acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page; determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page; and if the operation record belongs to the preset operation set, preloading the next page of the current page. By adopting the method, the accuracy of the preloading judgment can be improved, and the network resources are saved. Wherein, the operation record based on the current page can be stored in the block chain.

Description

Webpage resource preloading method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a method and an apparatus for preloading webpage resources, a computer device, and a storage medium.
Background
With the development of the mobile internet, the interaction of the web page is greatly enriched, and the web page needs to load more and more contents, wherein the contents comprise JavaScript, css, high-definition pictures, font files and the like. The web pages with larger and larger volumes directly influence the loading speed of the web pages, influence the experience of users for opening the page to use the service, and in order to improve the opening speed of the web pages, browser manufacturers and web service providers provide a page resource preloading scheme.
The specific scene of the application page resource preloading scheme is as follows, when a user commits insurance, the user can browse an introduction page (generally called a product introduction page) of an insurance product first, when the user determines to buy, the user can jump to the insurance page to fill insurance information (called an insurance information page), and for increasing the speed of jumping the insurance information page, the page resource preloading of the insurance information page can be carried out when the user browses the product introduction page, so that the user can load resources from a cache or locally (the speed of reading the resources from the cache is higher than the network resource request) when opening the insurance information page, and the user experience can be effectively improved.
However, in the existing preloading scheme, no matter whether the user needs to jump from the current page to the next page or not, when the user browses the current page, the browser can preload the next page when the browser is idle. Judging the mechanism of preloading now, for the user who does not need to jump to the next page, the waste of network traffic is caused.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for preloading web resources, which can save network traffic.
A method for preloading webpage resources comprises the following steps:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
In one embodiment, the obtaining the operation record based on the current page includes: acquiring recorded data of all operation actions of the current time based on the current page; and acquiring the recording data of a preset number of operation actions from the recording data of the operation actions as operation records, wherein the operation records are stored in a block chain.
In one embodiment, the method for preloading webpage resources further includes: according to the historical operation data of the user group of the current page, calculating the historical operation record of the user group on the current page; calculating the frequency of jumping from the current page to the next page according to the historical operation record; and when the frequency exceeds a preset value, saving the historical operation record to the preset operation set.
In one embodiment, the calculating the frequency of jumping from the current page to the next page according to the historical operation records includes: according to the historical operation data of the user group, calculating a first user number for executing all operation actions included in the historical operation record, and calculating a second user number for executing all operation actions included in the historical operation record and executing operation actions for jumping from the current page to the next page; and calculating the ratio of the second user number to the first user number to obtain the frequency of jumping from the current page to the next page.
In one embodiment, the method for preloading webpage resources further includes: if the operation record does not belong to the preset operation set, waiting for the next operation action based on the current page; and when the next operation action is obtained, repeating the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preloading the next page of the current page until the operation record belongs to the preset operation set.
In one embodiment, after preloading the next page of the current page if the operation record belongs to the preset operation set, the method further includes: acquiring a skipping result of skipping from the current page to the next page; and correcting the preset operation set according to the skipping result.
In one embodiment, the preloading a next page of the current page if the operation record belongs to the preset operation set includes: if the operation record belongs to the preset operation set, sending the preloading request of the next page to a resource preloading processor; wherein the resource pre-load processor pre-loads the web page resource of the next page in response to the pre-load request.
An apparatus for preloading web page resources, the apparatus comprising:
the operation record acquisition module is used for acquiring an operation record based on the current page; the operation record comprises record data of at least one operation action of a user on the current page;
the judging module is used for determining whether the operation record belongs to a preset operation set or not; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and the preloading module is used for preloading the next page of the current page if the operation record belongs to the preset operation set.
In one embodiment, the operation record obtaining module includes: the recording data acquisition unit is used for acquiring the recording data of all operation actions of the current time based on the current page; and the recording data selection unit is used for acquiring the recording data of a preset number of operation actions from the recording data of the operation actions as operation records, and the operation records are stored in the block chain.
In one embodiment, the apparatus for preloading web page resources further includes: the historical operation record calculation module is used for calculating the historical operation record of the user group on the current page according to the historical operation data of the user group on the current page; the frequency calculation module is used for calculating the frequency of jumping from the current page to the next page according to the historical operation record; and the preset operation set updating module is used for saving the historical operation record to the preset operation set when the frequency exceeds a preset value.
In one embodiment, the frequency calculation module comprises: the user number calculating unit is used for calculating a first user number for executing all operation actions included in the historical operation record and a second user number for executing all operation actions included in the historical operation record and executing operation actions for jumping from the current page to the next page according to the historical operation data of the user group; and the frequency calculating unit is used for calculating the ratio of the second user number to the first user number to obtain the frequency of jumping from the current page to the next page.
In one embodiment, the apparatus for preloading web page resources further includes: an operation action waiting module, configured to wait for a next operation action based on the current page if the operation record does not belong to the preset operation set; the preloading module is further configured to repeat the steps of obtaining an operation record based on a current page and determining whether the operation record belongs to a preset operation set when the next operation action is obtained, and preload the next page of the current page until the operation record belongs to the preset operation set.
In one embodiment, the apparatus for preloading web page resources further includes: a skip result acquisition module for acquiring a skip result from the current page to the next page; and the correcting module is used for correcting the preset operation set according to the skipping result.
In one embodiment, the preloading module is further configured to send a preloading request of the next page to a resource preloading processor if the operation record belongs to the preset operation set; wherein the resource pre-load processor pre-loads the web page resource of the next page in response to the pre-load request.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
According to the webpage resource preloading method, the webpage resource preloading device, the computer equipment and the storage medium, the records of all operation actions of the user on the current page are collected, and the recorded data of the operation actions of the preset data are randomly selected from the records as the operation records, so that various operation records of the user can be obtained, whether the user jumps from the current page to the next page or not is judged more accurately, and the accuracy of prejudgment is improved; by judging a plurality of operation records of a user, the next page can be pre-loaded under any possible condition; the preset operation set can continuously collect the operation records of the user to enrich the pre-loading scene, and the pre-loading accuracy is provided.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a method for preloading web resources;
FIG. 2 is a flowchart illustrating a method for preloading web page resources according to an embodiment;
FIG. 3 is a flowchart illustrating the step of obtaining an operation record based on a current page according to an embodiment;
FIG. 4 is a flowchart illustrating steps for modifying a default operation set in one embodiment;
FIG. 5 is a block diagram of an embodiment of a web resource preloading device;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The webpage resource preloading method can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 acquires an operation record based on the current page; the operation record comprises record data of at least one operation action of a user on the current page; determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page; and if the operation record belongs to the preset operation set, preloading a next page of the current page, wherein the preloaded webpage resources of the next page are acquired from the server 104. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a method for preloading web page resources is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
and S110, acquiring an operation record based on the current page. And the operation record comprises record data of at least one operation action of the user on the current page.
The current page refers to a webpage currently browsed by a user, and the user can implement different operation actions on the current page, for example, the user browses a product introduction page and implements the operation actions: playing video introduction, clicking product package for comparison, selecting discount coupon, and staying for more than 10s on the current page. Wherein the operation record comprises at least one operation action, but the operation record does not comprise a jump action. For example, the operation record comprises playing a video introduction, or the operation record comprises clicking product package comparison and selecting a discount coupon, or the operation record comprises clicking product package comparison, selecting a discount coupon and staying for more than 10s on the current page.
Specifically, the recorded data of the operation action may be represented by a table, as shown in table 1:
TABLE 1
Action 1 Action 2 Action 3 Page dwell time Whether to jump or not
Yes Yes Yes 15 Yes
Yes No Yes 15 No
Yes Yes Yes 20 Yes
Yes No Yes 25 Yes
Wherein, the action 1, the action 2 and the action 3 are operation actions, the action 1 of the user on the current page is recorded as Yes, and the action 1 of the user which is not performed is recorded as No; similarly, the user records the action 2 as Yes on the current page, and records the action 2 as No when the user does not perform the action; recording the action 3 of the user on the current page as Yes, and recording the action 3 of the user as No; the stay time of the user on the current page is the stay time of the page, and the unit of the stay time of the page in the table 1 is second; whether the user jumps to record whether the user jumps to the next page from the current page or not, if the user jumps to the next page from the current page, the record is Yes, and if the user does not jump to the next page from the current page, the record is No. For convenience of description, 1 is used to represent Yes, 0 is used to represent No, the page dwell time exceeds 10 seconds and is recorded as 1, the jump action is removed, the operation records of the user are represented as an ordered set, and according to table 1, the operation record sets of four users can be respectively represented as: {1, 1, 1, 1}, {1, 0, 1, 1}, {1, 1, 1, 1}, and {1, 0, 1, 1 }.
For example, table 2 shows the operation records of the user a and the user B on the insurance application page when the user applies insurance. The user A plays video introduction, clicks product package comparison, selects discount coupons, the dwell time of the page exceeds 10s, and the operation records of the user A are as follows: {1, 1, 1, 1 }; the user B does not play video introduction, clicks product package for comparison, selects a discount coupon, the dwell time of the page does not exceed 10s, and the operation records of the user B are as follows: {0,1,1,0}.
TABLE 2
Figure BDA0002469772040000071
And S120, determining whether the operation record belongs to a preset operation set. And the preset operation set comprises the operation action of the user for jumping from the current page to the next page on the current page.
The preset operation set is determined by user group historical operation data, and operation records with high probability of jumping to the next page can be collected into the preset operation set based on the user group historical operation data, so that jumping judgment can be performed on similar operation records in the follow-up process.
Specifically, the preset operation set and the operation record may be represented by vectors, and the preset operation set may include a plurality of vectors that characterize that the user is about to perform a jump action. According to different requirements, the vector length of the preset operation set can be adjusted as required. For example, the preset set of operations includes vectors: {1, 1, 1, 1}, when the operation is recorded as: {1, 1, 1, 1}, the operation record belongs to the preset operation set; when the operation record is: {0, 1, 1, 0}, and no vector is included in the predetermined set of operations: {0, 1, 1, 0}, then the operation record does not belong to the preset operation set.
S130, if the operation record belongs to the preset operation set, preloading is carried out on the next page of the current page.
The method comprises the steps that a current page possibly only has a preset operation set and a next page capable of being jumped, and when an operation record belongs to the preset operation set, the next page of the current page is preloaded. The current page may also have multiple next pages which can be skipped, the preset operation set may also include multiple next pages, each preset operation set corresponds to one next page, and when the operation record belongs to one of the preset operation sets, the next page corresponding to the preset operation set is preloaded. Wherein, the preloading of the next page can be realized by a browser linkprefetch protocol.
For example, the current page has a next page a, a next page B and a next page C which can jump, the current page jumps to the preset operation set M1 of the next page a, the current page jumps to the preset operation set M2 of the next page B, and the current page jumps to the preset operation set M3 of the next page C; when the operation record belongs to the preset operation set M1, indicating that the user is going to jump from the current page to the next page A, preloading the next page A; when the operation record belongs to the preset operation set M2, indicating that the user is going to jump from the current page to the next page B, preloading the next page B; and when the operation record belongs to the preset operation set M3, indicating that the user is about to jump from the current page to the next page B, preloading the next page B.
In the webpage resource preloading method, the preset operation set is set through the operation record and the jump action of the user, whether the user jumps from the current page to the next page or not is judged based on the behavior habit of the user, and the accuracy of preloading judgment can be improved; by using the judgment condition that whether the operation record of the user on the current page belongs to the preset operation set or not as the pre-loading, on one hand, the access to the subsequent page can be accelerated, the use experience of the user is improved, and on the other hand, the waste of the rough pre-loading on the user flow and the bandwidth of a network service provider can be saved.
In one embodiment, as shown in fig. 2, the step S110 includes: s111, acquiring recorded data of all operation actions of the current time based on the current page; and S112, acquiring the recorded data of the preset number of operation actions as operation records from the recorded data of the operation actions.
The current time is based on the recorded data of all the operation actions of the current page, and the recorded data of all the operation actions of the current page from the time of entering the current page to the current time by the user, and the current page is the page which is operated by the user. For example, if the preset operation set includes four elements, four operation actions need to be acquired, and the four operation actions may be continuous or discontinuous, and the description of the operation actions refers to the record data of the operation actions in the above embodiment.
It is emphasized that the operation record may also be stored in a node of a block chain in order to further ensure the privacy and security of the operation record.
In the embodiment, by collecting the records of all the operation actions of the user on the current page and randomly selecting the recorded data of the operation actions of the preset data from the records as the operation records, various operation records of the user can be obtained, so that whether the user jumps from the current page to the next page or not is judged more accurately, and the accuracy of pre-judgment is improved; by judging a plurality of operation records of the user, the next page can be pre-loaded under any possible condition. The preset operation set of the embodiment can continuously collect the operation records of the user to enrich the pre-loading scenes, and provides the pre-loading accuracy.
In one embodiment, the method for preloading webpage resources further includes: according to the historical operation data of the user group of the current page, calculating the historical operation record of the user group on the current page; calculating the frequency of jumping from the current page to the next page according to the historical operation record; and when the frequency exceeds a preset value, saving the historical operation record to the preset operation set.
The historical operation data of the user group comprises data of operation actions generated by all users on the current page, and the historical operation record can comprise one operation action or a plurality of operation actions. The historical operation records can be understood as grouping operation actions generated by users, and a plurality of historical operation records can be calculated corresponding to historical operation data of a user group of a current webpage. Then, according to each historical operation record, respectively calculating the frequency of jumping from the current page to the next page.
For example, the operation of the user on the insurance application page is calculated, the historical operation records of the user group on the current page comprise 'play video introduction', 'click product package comparison' and 'selection discount coupon', the number of all users who perform 'play video introduction', 'click product package comparison' and 'selection discount coupon' and jump to the next page is calculated, and when the number of users is large, the frequency of jumping performed by the users under the historical operation records is judged to be high. Therefore, the number of users who have performed "presentation of video, comparison of product package clicked", and "selection of discount coupon" and jump to the next page can be used as the frequency of jumping from the current page to the next page. Of course, other ways of calculating the frequency of jumping from the current page to the next page may be used. The preset value can be set as required, and the higher the preset value is, the more accurately the operation record in the preset operation set can be determined whether the user wants to jump from the current page to the next page, but some special operation records of the user may not be included in the preset operation set and may jump from the current page to the next page, which may result in untimely preloading, so that the preset value needs to be adjusted in real time as required to ensure that all possible preloading conditions are included.
In one embodiment, the calculating the frequency of jumping from the current page to the next page according to the historical operation records includes: according to the historical operation data of the user group, calculating a first user number for executing all operation actions included in the historical operation record, and calculating a second user number for executing all operation actions included in the historical operation record and executing operation actions for jumping from the current page to the next page; and calculating the ratio of the second user number to the first user number to obtain the frequency of jumping from the current page to the next page.
The first user number is the number of users who only execute all operation actions included in the historical operation record, and the users do not jump to the next page when browsing the current webpage; the second number of users is the number of users who have performed all the operation actions included in the history operation record and have performed the operation action of jumping from the current page to the next page. The frequency is equal to a ratio of the second number of users to the first number of users.
For example, counting the historical operation data of 100 users browsing the application webpage, 20 users "play video introduction, click product package comparison, select discount coupon, the page stay time exceeds 10 s", record a "play video introduction", click product package comparison, select discount coupon, the page stay time exceeds 10s ", 18 users of the 20 users jump to the application information page, and then the frequency of jumping to the application information page by the user according to record a of the historical operation is 18/20 ═ 0.9. By analogy, the frequency of jumping from the current page to the next page of each type of historical operation record can be counted.
In the embodiment, the frequency of jumping from the current page to the next page is calculated by calculating the ratio of the number of the users jumping to the users not jumping to the current page, so that the calculated frequency value is more in line with the expectation of most people, and the larger the ratio of the number of the users jumping to the current page is, the larger the frequency value is, and the more accurate the pre-loading is determined according to the frequency.
In one embodiment, the method for preloading webpage resources further includes: if the operation record does not belong to the preset operation set, waiting for the next operation action based on the current page; and when the next operation action is obtained, repeating the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preloading the next page of the current page until the operation record belongs to the preset operation set. In this embodiment, when a user executes an operation action on a terminal, it is determined once whether the operation record belongs to a preset operation set, and as long as it is determined that the operation record belongs to the preset operation set, the next page of the current page is preloaded, and it is determined in real time according to the operation of the user whether preloading is required, so that the accuracy of the preloading determination is improved.
In one embodiment, the method for preloading webpage resources further includes: acquiring a skipping result of skipping from the current page to the next page; and correcting the preset operation set according to the skipping result.
Wherein, the skipping result of skipping from the current page to the next page comprises: and after executing all the operation actions included in the operation records belonging to the preset operation set, the user executes the operation action of jumping from the current page to the next page, and after executing all the operation actions included in the operation records belonging to the preset operation set, the user does not execute the operation action of jumping from the current page to the next page.
Wherein, the modifying the preset operation set according to the skip result specifically comprises: after executing all operation actions included in the operation records belonging to the preset operation set, the user executes operation actions for jumping from the current page to the next page, and increases the jump index of the operation records of the preset operation set; after the user executes all operation actions included in the operation records belonging to the preset operation set, the operation actions of jumping from the current page to the next page are not executed, and the jump index of the operation records of the preset operation set is reduced; deleting the operation records of the preset operation set when the jump index of the operation records of the preset operation set is lower than a threshold value. The operation records of the preset operation set are all set with an initial value of an operation index, and the operation index of the operation records of the preset operation set is in direct proportion to the frequency of jumping from the current page to the next page. In the embodiment, the preset operation set is corrected in real time through the operation index, so that the accuracy of judgment of jumping from the current page to the next page by the user is ensured, and the next page can be preloaded for the user in need.
In one embodiment, the preloading a next page of the current page if the operation record belongs to the preset operation set includes: if the operation record belongs to the preset operation set, sending the preloading request of the next page to a resource preloading processor; wherein the resource pre-load processor pre-loads the web page resource of the next page in response to the pre-load request. According to the embodiment, the next page of the current page is preloaded through the resource preloading processor, so that the efficiency of preloading processing can be improved.
In one embodiment, a method for preloading webpage resources is provided, which includes: receiving a preloading request of a next page; and preloading the webpage resources of the next page in idle time according to the preloading request. According to the webpage resource preloading method, the webpage resources of the next page are preloaded in an idle state, so that the utilization rate of the system and the webpage resources is improved.
In a specific embodiment, the action variable ACT is definediRepresenting an operation i (i may represent an integer from 1 to n), which may be triggered by statistical analysisiAnd jump to the frequency pi of the next page; combinations of multiple operational actions may also be counted, such as Ci={ACTm,…,ACTnAnd the preset value is K (0), wherein the preset value is K (0)<K<1) For indicating the tolerance to the lowest probability, Pi will be>Operation record C of KiAnd saving the operation to a preset operation set.
In a specific embodiment, as shown in fig. 4, a method for preloading webpage resources includes:
and S110, acquiring an operation record based on the current page.
S120, determining whether the operation record belongs to a preset operation set; if the operation record belongs to a preset operation set, entering step S130; if the operation record does not belong to the preset operation set, the process proceeds to step S140.
S130, preloading is carried out on the next page of the current page.
S150, obtaining a skipping result of skipping from the current page to the next page.
And S160, correcting the preset operation set according to the skipping result.
S170, acquiring a preset operation set, and returning to the step S110.
S140, waiting for the next operation action based on the current page, and returning to the step S110.
According to the embodiment, the accuracy of jump judgment can be improved by implementing the correction of the preset operation set; and for each operation action of the user, whether the operation record belongs to a preset operation set or not is carried out once, the loading requirement of the user can be judged in real time, and whether the user needs to carry out preloading on the next page or not can be accurately judged.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a web resource preloading device, including: an operation record obtaining module 210, a judging module 220 and a preloading module 230, wherein:
an operation record obtaining module 210, configured to obtain an operation record based on a current page; and the operation record comprises record data of at least one operation action of the user on the current page.
A determining module 220, configured to determine whether the operation record belongs to a preset operation set; and the preset operation set comprises the operation action of the user for jumping from the current page to the next page on the current page.
A preloading module 230, configured to preload a next page of the current page if the operation record belongs to the preset operation set.
In one embodiment, the operation record obtaining module 210 includes: the recording data acquisition unit is used for acquiring the recording data of all operation actions of the current time based on the current page; and the recording data selection unit is used for acquiring the recording data of a preset number of operation actions as the operation records from the recording data of the operation actions.
In one embodiment, the apparatus for preloading web page resources further includes: the historical operation record calculation module is used for calculating the historical operation record of the user group on the current page according to the historical operation data of the user group on the current page; the frequency calculation module is used for calculating the frequency of jumping from the current page to the next page according to the historical operation record; and the preset operation set updating module is used for saving the historical operation record to the preset operation set when the frequency exceeds a preset value.
In one embodiment, the frequency calculation module comprises: the user number calculating unit is used for calculating a first user number for executing all operation actions included in the historical operation record and a second user number for executing all operation actions included in the historical operation record and executing operation actions for jumping from the current page to the next page according to the historical operation data of the user group; and the frequency calculating unit is used for calculating the ratio of the second user number to the first user number to obtain the frequency of jumping from the current page to the next page.
In one embodiment, the apparatus for preloading web page resources further includes: an operation action waiting module, configured to wait for a next operation action based on the current page if the operation record does not belong to the preset operation set; the preloading module 230 is further configured to, when the next operation action is obtained, repeat the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preload the next page of the current page until the operation record belongs to the preset operation set.
In one embodiment, the apparatus for preloading web page resources further includes: a skip result acquisition module for acquiring a skip result from the current page to the next page; and the correcting module is used for correcting the preset operation set according to the skipping result.
In one embodiment, the preloading module 230 is further configured to send a preloading request of the next page to a resource preloading processor if the operation record belongs to the preset operation set; wherein the resource pre-load processor pre-loads the web page resource of the next page in response to the pre-load request.
For specific limitations of the web resource preloading device, reference may be made to the above limitations on the web resource preloading method, which is not described herein again. The modules in the web resource preloading device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for preloading web page resources. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
In one embodiment, the processor, when executing the computer program, further performs the steps of: according to the historical operation data of the user group of the current page, calculating the historical operation record of the user group on the current page; calculating the frequency of jumping from the current page to the next page according to the historical operation record; and when the frequency exceeds a preset value, saving the historical operation record to the preset operation set.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the operation record does not belong to the preset operation set, waiting for the next operation action based on the current page; and when the next operation action is obtained, repeating the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preloading the next page of the current page until the operation record belongs to the preset operation set.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a skipping result of skipping from the current page to the next page; and correcting the preset operation set according to the skipping result.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
In one embodiment, the computer program when executed by the processor further performs the steps of: according to the historical operation data of the user group of the current page, calculating the historical operation record of the user group on the current page; calculating the frequency of jumping from the current page to the next page according to the historical operation record; and when the frequency exceeds a preset value, saving the historical operation record to the preset operation set.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the operation record does not belong to the preset operation set, waiting for the next operation action based on the current page; and when the next operation action is obtained, repeating the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preloading the next page of the current page until the operation record belongs to the preset operation set.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a skipping result of skipping from the current page to the next page; and correcting the preset operation set according to the skipping result.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A webpage resource preloading method is characterized by comprising the following steps:
acquiring an operation record based on a current page; the operation record comprises record data of at least one operation action of a user on the current page;
determining whether the operation record belongs to a preset operation set; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and if the operation record belongs to the preset operation set, preloading the next page of the current page.
2. The method of claim 1, wherein obtaining the operation record based on the current page comprises:
acquiring recorded data of all operation actions of the current time based on the current page;
and acquiring the recording data of a preset number of operation actions from the recording data of the operation actions as operation records, wherein the operation records are stored in a block chain.
3. The method of claim 1, further comprising:
according to the historical operation data of the user group of the current page, calculating the historical operation record of the user group on the current page;
calculating the frequency of jumping from the current page to the next page according to the historical operation record;
and when the frequency exceeds a preset value, saving the historical operation record to the preset operation set.
4. The method of claim 3, wherein calculating the frequency of jumping from the current page to a next page according to the historical operating records comprises:
according to the historical operation data of the user group, calculating a first user number for executing all operation actions included in the historical operation record, and calculating a second user number for executing all operation actions included in the historical operation record and executing operation actions for jumping from the current page to the next page;
and calculating the ratio of the second user number to the first user number to obtain the frequency of jumping from the current page to the next page.
5. The method of claim 1, further comprising:
if the operation record does not belong to the preset operation set, waiting for the next operation action based on the current page;
and when the next operation action is obtained, repeating the steps of obtaining an operation record based on the current page and determining whether the operation record belongs to a preset operation set, and preloading the next page of the current page until the operation record belongs to the preset operation set.
6. The method according to claim 1, further comprising, after preloading a next page of the current page if the operation record belongs to the preset operation set:
acquiring a skipping result of skipping from the current page to the next page;
and correcting the preset operation set according to the skipping result.
7. The method according to claim 1, wherein preloading a next page of the current page if the operation record belongs to the preset operation set comprises:
if the operation record belongs to the preset operation set, sending the preloading request of the next page to a resource preloading processor;
wherein the resource pre-load processor pre-loads the web page resource of the next page in response to the pre-load request.
8. An apparatus for preloading webpage resources, the apparatus comprising:
the operation record acquisition module is used for acquiring an operation record based on the current page; the operation record comprises record data of at least one operation action of a user on the current page;
the judging module is used for determining whether the operation record belongs to a preset operation set or not; the preset operation set comprises operation actions of a user for jumping from the current page to the next page on the current page;
and the preloading module is used for preloading the next page of the current page if the operation record belongs to the preset operation set.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010344803.4A 2020-04-27 2020-04-27 Webpage resource preloading method and device, computer equipment and storage medium Pending CN111597480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010344803.4A CN111597480A (en) 2020-04-27 2020-04-27 Webpage resource preloading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010344803.4A CN111597480A (en) 2020-04-27 2020-04-27 Webpage resource preloading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111597480A true CN111597480A (en) 2020-08-28

Family

ID=72190851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010344803.4A Pending CN111597480A (en) 2020-04-27 2020-04-27 Webpage resource preloading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111597480A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806653A (en) * 2021-09-22 2021-12-17 未鲲(上海)科技服务有限公司 Page preloading method and device, computer equipment and storage medium
CN115016855A (en) * 2021-11-17 2022-09-06 荣耀终端有限公司 Application preloading method, device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806653A (en) * 2021-09-22 2021-12-17 未鲲(上海)科技服务有限公司 Page preloading method and device, computer equipment and storage medium
CN113806653B (en) * 2021-09-22 2024-04-05 北京快阅读科技有限公司 Page preloading method, device, computer equipment and storage medium
CN115016855A (en) * 2021-11-17 2022-09-06 荣耀终端有限公司 Application preloading method, device and storage medium
CN115016855B (en) * 2021-11-17 2023-05-09 荣耀终端有限公司 Method, apparatus and storage medium for application preloading

Similar Documents

Publication Publication Date Title
CN107609198B (en) Recommendation method and device and computer readable storage medium
CN115098803B (en) Book recommendation method and system based on mobile library
CN112115167B (en) Cache system hot spot data access method, device, equipment and storage medium
CN111597480A (en) Webpage resource preloading method and device, computer equipment and storage medium
CN108182633B (en) Loan data processing method, loan data processing device, loan data processing program, and computer device and storage medium
CN112102002A (en) Commodity recommendation method and device based on knowledge graph, computer and storage medium
CN110929129B (en) Information detection method, equipment and machine-readable storage medium
CN110659435A (en) Page data acquisition processing method and device, computer equipment and storage medium
CN111046240B (en) Gateway traffic statistics method, device, computer equipment and storage medium
CN111400575B (en) User identification generation method, user identification method and device
US20190124082A1 (en) Cross Device User Identification
CN111158606B (en) Storage method, storage device, computer equipment and storage medium
CN117112942A (en) User interface adjustment method, device, computer equipment and storage medium
CN115080867B (en) Recommendation method and device for proposal theme, computer equipment and storage medium
CN108388463B (en) Icon processing method and device, computer equipment and storage medium
CN114428899A (en) Multimedia resource pushing method and device, electronic equipment and storage medium
CN113836464A (en) Page data processing method and device, computer equipment and storage medium
CN112989185A (en) Information pushing method and device, computer equipment and storage medium
US10630793B2 (en) Browser fingerprinting
CN112631700A (en) Login interface display method and device, computer equipment and storage medium
CN111124932A (en) Scheme verification method, system, device, computer equipment and storage medium
CN111818114B (en) Information sharing method and device
CN111552884B (en) Method and apparatus for content recommendation
CN112528189B (en) Data-based component packaging method and device, computer equipment and storage medium
CN112231545B (en) Method, device, equipment and storage medium for ordering aggregation set

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