CN105095227A - Method and apparatus for preloading webpage - Google Patents

Method and apparatus for preloading webpage Download PDF

Info

Publication number
CN105095227A
CN105095227A CN201410174710.6A CN201410174710A CN105095227A CN 105095227 A CN105095227 A CN 105095227A CN 201410174710 A CN201410174710 A CN 201410174710A CN 105095227 A CN105095227 A CN 105095227A
Authority
CN
China
Prior art keywords
link
bar
webpage
prestrain
window
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.)
Granted
Application number
CN201410174710.6A
Other languages
Chinese (zh)
Other versions
CN105095227B (en
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 Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410174710.6A priority Critical patent/CN105095227B/en
Publication of CN105095227A publication Critical patent/CN105095227A/en
Application granted granted Critical
Publication of CN105095227B publication Critical patent/CN105095227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure discloses a method and apparatus for preloading webpage. The method comprises calculating the probability of pre-click on each link in dependence on layout parameters of each link of webpage; selecting at least one link to add into a preloading queue in dependence on the probability of pre-click on each link; and preloading contents of webpage corresponding to the link in the preloading queue. By adopting the method provided by the disclosure, the probability of pre-click on each link can be calculated in dependence on layout parameters, the probability of click on each link can be pre-estimated through the layout parameters which have visual characteristics, the accuracy of webpage preloading can be raised. According to one embodiment of the disclosure, a link is added in a preloading queue according to the probability of pre-click on each link to preload the webpage whose probability of pre-click is determined based on the layout parameters, the o user's speed for browsing webpage can be raised, the webpage can be cold started up.

Description

The method of webpage prestrain and device
Technical field
The disclosure relates to computing machine and technical field of electronic equipment, particularly relates to method and the device of webpage prestrain.
Background technology
Along with the development of internet and electronic equipment, webpage as medium carrier, for people provide the material of news, amusement, study.During client-access webpage, first request of access is sent to server, by server, this request of access is transmitted to the website of request access, and receive the webpage that website returns, webpage is transmitted to client.Server can know the webpage of client current accessed, and the webpage of the link correspondence in the netpage page face of client current accessed is carried out pre-download by server.When linking in the webpage of client click current accessed, server sends the webpage of this link correspondence of pre-download to client, to improve the speed of client-access webpage.
In correlation technique, server adds up the click probability of link in advance, and when a clicked number of times of link is more, it is larger that it clicks probability.But the method for this webpage prestrain causes client cannot carry out cold start-up to webpage, such as, when a webpage is the new webpage issued, it clicks probability is 0, and server cannot carry out prestrain to such webpage.In addition, the method for this webpage prestrain, needs server statistics historical data, needs server to return the webpage of prestrain, therefore expends the resource of server, and client and server carry out data interaction, and the speed that terminal obtains webpage is slower.
Summary of the invention
Disclosure embodiment provides a kind of method and device of webpage prestrain, expends server resource for overcoming in correlation technique, and webpage cannot the problem of cold start-up.
According to the first aspect of disclosure embodiment, a kind of method of webpage prestrain is provided, comprises:
Link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Link respective pre-click probability according to described every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain queue described in prestrain.
Disclosure embodiment realizes according to layout parameter, determines the pre-click probability that every bar links, thus achieves the estimating the click probability that every bar links of the parameter like this with visual characteristic based on layout parameter, thus improve the accuracy of webpage prestrain.Link also adds in prestrain queue according to pre-probability of clicking by disclosure embodiment, achieves the prestrain to determining the webpage clicking probability in advance based on layout parameter, contributes to improving the speed that user browses webpage, realizes webpage cold start-up.
In one embodiment, described layout parameter comprise following at least one parameter:
Described every bar links respective display area S, described every bar links separately and the distance d of the horizontal axis of described webpage place window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, the height h of described window.
Disclosure embodiment by using above-mentioned layout parameter as determining the foundation clicking probability in advance, ensure that the pre-accuracy clicking probability.
In one embodiment, described layout parameter comprise described every bar link respective display area S, the link of described every bar separately with the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, the height h of described window;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area S of described current link; Described w is the width of described window; Described h is the height of described window; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window.
The display surface sum link display position in the window that disclosure embodiment realizes comprehensive link determines the pre-click probability linked, and improves the pre-accuracy clicking probability.
In one embodiment, described layout parameter comprises described every bar and links respective display area S;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area of described current link.
Disclosure embodiment realizes the pre-click probability determining this link according to the display area of link, achieves and determines to click probability in advance based on this layout parameter of display area.
In one embodiment, described layout parameter comprise the link of described every bar separately with the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, the height h of described window;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window; Described w is the width of described window; Described h is the height of described window.
Disclosure embodiment realizes the pre-click probability determining this link according to the display position in the window of link, achieves this layout parameter of display position based on link, determines to click probability in advance.
In one embodiment, describedly link respective pre-click probability according to described every bar, select at least one link to add prestrain queue, comprising:
Link respective pre-click probability to described every bar to sort according to order from big to small; Obtain the front N bar link that described sequence is forward, described front N bar link is added prestrain queue; Or
The link that pre-click probability in described every bar link is more than or equal to predetermined threshold value is added prestrain queue.
Disclosure embodiment achieves and adds prestrain queue by clicking the larger link of likelihood ratio in advance, thus improves the accuracy and efficiency of webpage prestrain, achieves webpage cold start-up.
In one embodiment, described method also comprises:
Prestrain task corresponding for other link in described prestrain queue cancelled, other link described does not belong to described at least one link.
Disclosure embodiment provides more Internet resources for prestrain, is conducive to the speed improving prestrain.
In one embodiment, described method also comprises:
Receive the instruction that request of loading one sees webpage in advance;
Judge describedly to see link that webpage is corresponding in advance whether in described prestrain queue, and described in prestrain, see the content of webpage in advance;
When described see in advance webpage corresponding be linked in described prestrain queue time, the described content seeing webpage in advance of prestrain described in calling.
Disclosure embodiment realizes loading fast and shows the webpage of request, such as, when a webpage of user's request has completed prestrain in advance, can directly call this webpage, improve and load and the speed of display web page.
In one embodiment, described method also comprises:
Whether monitoring current time arrives predetermined time;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
When current time arrives described predetermined time, link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Or
Described method also comprises:
Monitor the operation that described webpage is performed;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
When listening to the predetermined registration operation performed described webpage, linking respective layout parameter according to bar every in webpage, calculating described every bar and link respective pre-click probability.
Disclosure embodiment achieves determines that every bar links respective pre-click probability incessantly, ensure that the task in prestrain queue can be carried out according to the actual conditions of bar link every in the webpage of current display, thus improves the accuracy of prestrain.
According to the second aspect of disclosure embodiment, a kind of device of webpage prestrain is provided, comprises:
Computing module, for linking respective layout parameter according to bar every in webpage, calculating described every bar and linking respective pre-click probability;
Selecting module, for linking respective pre-click probability according to described every bar, selecting at least one link to add prestrain queue;
Preloaded components, links corresponding web page contents in prestrain queue described in prestrain.
In one embodiment, described computing module, comprising:
First determining unit, links respective display area S for comprising described every bar when described layout parameter, described every bar links separately and the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, described window height h time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area S of described current link; Described w is the width of described window; Described h is the height of described window; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window.
In one embodiment, described computing module, comprising:
Second determining unit, for comprise when described layout parameter described every bar link respective display area S time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area of described current link.
In one embodiment, described computing module, comprising:
3rd determining unit, links separately and the distance d of the horizontal axis of described window for comprising described every bar when described layout parameter 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, described window height h time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window; Described w is the width of described window; Described h is the height of described window.
In one embodiment, described selection module, comprising:
First selection unit, sorts according to order from big to small for linking respective pre-click probability to described every bar; Obtain the front N bar link that described sequence is forward, described front N bar link is added prestrain queue; Or
Second selection unit, adds prestrain queue for the link that pre-click probability in described every bar link is more than or equal to predetermined threshold value.
In one embodiment, described device also comprises:
Cancel module, for prestrain task corresponding for other link in described prestrain queue being cancelled, other link described does not belong to described at least one link.
In one embodiment, described device also comprises:
Receiver module, sees the instruction of webpage in advance for receiving request of loading one;
Judge module, describedly sees link that webpage is corresponding in advance whether in described prestrain queue for judging, and sees the content of webpage described in prestrain in advance;
Calling module, for when described see in advance webpage corresponding be linked in described prestrain queue time, the described content seeing webpage in advance of prestrain described in calling.
In one embodiment, described device also comprises:
Whether monitoring modular, arrive predetermined time for monitoring current time;
Described computing module, comprising:
4th determining unit, for when current time arrives described predetermined time, links respective layout parameter according to bar every in webpage, calculates described every bar and link respective pre-click probability;
Or
Described device also comprises:
Monitor module, for monitoring the operation performed described webpage;
Described computing module, comprising:
5th determining unit, for when listening to the predetermined registration operation performed described webpage, linking respective layout parameter according to bar every in webpage, calculating described every bar and link respective pre-click probability.
According to the third aspect of disclosure embodiment, a kind of device of webpage prestrain is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Link respective pre-click probability according to described every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain queue described in prestrain.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: disclosure embodiment realizes according to layout parameter, determine the pre-click probability that every bar links, thus achieve based on layout parameter that this has parameter the estimating the click probability that every bar links of visual characteristic, thus improve the accuracy of webpage prestrain.Link also adds in prestrain queue according to pre-probability of clicking by disclosure embodiment, achieves the prestrain to determining the webpage clicking probability in advance based on layout parameter, contributes to improving the speed that user browses webpage, realizes webpage cold start-up.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the exemplary process diagram of the method for a kind of webpage prestrain according to an exemplary embodiment;
Fig. 2 is the illustrative diagram of the position relationship of link according to exemplary embodiment and webpage place window;
Fig. 3 is the exemplary process diagram of the method for a kind of webpage prestrain according to another exemplary embodiment;
Fig. 4 is the exemplary process diagram of the method for a kind of webpage prestrain according to another exemplary embodiment;
Fig. 5 is the illustrative diagram of 4 links of webpage A according to an exemplary embodiment and current display thereof;
Fig. 6 will link the illustrative diagram that adds after prestrain queue according to an exemplary embodiment;
Fig. 7 is the illustrative diagram after prestrain task corresponding for other link in prestrain queue being cancelled according to an exemplary embodiment;
Fig. 8 is the block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment;
Fig. 9 is the block diagram of the computing module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 10 is another block diagram of the computing module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 11 is another block diagram of the computing module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 12 is the block diagram of the selection module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 13 is another block diagram of the selection module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 14 is another block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 15 is another block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 16 is another block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 17 is another block diagram of the computing module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 18 is another block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 19 is another block diagram of the computing module of the device of a kind of webpage prestrain according to an exemplary embodiment;
Figure 20 is the block diagram (general structure of mobile terminal) of the device of a kind of webpage prestrain according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Disclosure embodiment provides a kind of method and device of webpage prestrain.In this technical scheme, whether the link of current display in webpage adds prestrain queue, be according to being that pre-click probability according to determining is determined with layout parameter, therefore disclosure embodiment achieves the webpage prestrain based on layout parameter, achieves webpage cold start-up.
The method of the webpage prestrain that the disclosure provides can be used for having in the terminal device of web browser, as mobile phone, computer, panel computer etc.
Fig. 1 is the process flow diagram of the method for a kind of webpage prestrain according to an exemplary embodiment, as shown in Figure 1, comprises the following steps:
In step S101, link respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability.
In one embodiment, step S101 can perform as with under type one or two:
Mode one:
Said method can comprise: whether monitoring current time arrives predetermined time;
Now, step S101 specifically performs and is: when current time arrives predetermined time, link respective layout parameter, calculate every bar and link respective pre-click probability according to bar every in webpage.
Usually, often after a while, the webpage that user browses may change, thus the link in webpage also may change, therefore, in one embodiment, can set and often arrive predetermined time, just calculate every bar in a webpage and link respective pre-click probability, like this, just can determine that once every bar links respective pre-click probability incessantly, and link according to every bar the interpolation operation that respective pre-click probability completes task in prestrain queue, ensure that the task in prestrain queue can be carried out according to the actual conditions of the link in webpage, thus improve the accuracy of prestrain.
Wherein, predetermined time can to start to open the time of webpage for initial time, the moment determined for the time interval with preset duration t, the time of such as opening webpage is 5:00, preset duration is 5 minutes, so predetermined time to be 5:n*5, n be more than or equal to 1 integer.Wherein, preset duration t is relevant with the network bandwidth to the performance of terminal.Such as, for PC (personalcomputer, personal computer), preset duration can be 500 milliseconds; For intelligent mobile terminal such as panel computer, preset duration t >=1 second.
Mode two:
Said method can comprise: monitor the operation performed webpage;
Now, step S101 specifically performs and is: when listening to the predetermined registration operation to webpage execution, linking respective layout parameter, calculate every bar and link respective pre-click probability according to bar every in webpage.
Wherein predetermined registration operation refers to the operation that webpage can be caused to change, and such as slides up and down webpage, jumps to next webpage from current web page, in new window, opens webpage etc.
Above-mentioned predetermined registration operation can both cause webpage to change, link then in webpage also may change, thus need to redefine the pre-click probability of every bar link in webpage, which then link is determined to add prestrain queue, can carry out according to the actual conditions of the link of current display with the task that this ensure that in prestrain queue, thus improve the accuracy of prestrain.
Disclosure embodiment achieves determines that every bar links respective pre-click probability incessantly, ensure that the task in prestrain queue can be carried out according to the actual conditions of bar link every in the webpage of current display, thus improves the accuracy of prestrain.
In step s 102, link respective pre-click probability according to every bar, select at least one link to add prestrain queue.
In one embodiment, step S102 can perform as with under type I or II:
Mode I: respective pre-click probability is linked to every bar and sorts according to order from big to small; Obtain the front N bar link that sequence is forward, front N bar link is added prestrain queue.
Mode II: the link that click probability pre-in every bar link is more than or equal to predetermined threshold value is added prestrain queue.Wherein predetermined threshold value can for the fixed value preset, and such as 10%; Also can be the dynamic value that user sets, such as, the mean value of the pre-click probability that predetermined threshold value can link according to every bar is determined, when the pre-click probability of a link is more than or equal to the mean value of the pre-click probability of this every bar link, then this link is added prestrain queue.
Disclosure embodiment achieves and adds prestrain queue by clicking the larger link of likelihood ratio in advance, thus improves the accuracy and efficiency of webpage prestrain, achieves webpage cold start-up.
In step s 103, corresponding web page contents is linked in prestrain prestrain queue.
In one embodiment, prestrain task corresponding for other link in prestrain queue can also be cancelled, other link does not belong at least one link, thus provides more Internet resources for prestrain, is conducive to the speed of raising prestrain.
In one embodiment, the instruction that request of loading one sees webpage in advance can also be received; Judge to see in advance link that webpage is corresponding whether in prestrain queue, and the content of webpage is seen in prestrain in advance; When see in advance webpage corresponding be linked in prestrain queue time, call the content seeing webpage in advance of prestrain.Disclosure embodiment realizes loading fast and shows the webpage of request, such as, when a webpage of user's request has completed prestrain in advance, can directly call this webpage, improve and load and the speed of display web page.
To how calculating pre-probability of clicking in step S101 be described in detail below:
In step S101, layout parameter can comprise at least one parameter in following 1-4 item parameter:
1, every bar links respective display area S;
2, every bar links separately and the distance d of the horizontal axis of webpage place window 1and every bar link is respective and the distance d of the longitudinal central axis line of webpage place window 2;
3, the width w of window;
4, the height h of window.
Disclosure embodiment by using above-mentioned layout parameter as determining the foundation clicking probability in advance, ensure that the pre-accuracy clicking probability.
The concrete grammar A clicking probability is in advance determined in step S101:
Layout parameter comprises the display area S of a link, the distance d with the horizontal axis of webpage place window 1and the distance d of longitudinal central axis line with webpage place window 2, the width w of window, the height h of window; Now, can determine that every bar links respective pre-click probability according to following formula (1):
In formula (1), the pre-click probability that f (L) is current link; S is the display area S of current link; W is the width of webpage place window; H is the height of webpage place window; d 1for the distance of the center of current link and the horizontal axis of webpage place window; d 2for the distance of the center of current link and the longitudinal central axis line of webpage place window.
Wherein, d 1, d 2with the relation of the window at webpage place as shown in Figure 2.In Fig. 2, the dashed region shown in 201 is the schematic diagram of the minimum bounding box of a link, and M is the center of the minimum bounding box of a link, and the center M of this minimum bounding box can be considered as the center of this link; Z 1for the horizontal axis of webpage place window; Z 2for the longitudinal central axis line of webpage place window.
Wherein, above-mentioned each parameter (S, w, h, d 1, d 2) unit can be all pixel; Wherein, the value that the truth of a matter of log function can get the truth of a matter of 2, log function is larger, d 1and d 2less on the impact of pre-click probability size.
The display surface sum link display position in the window that disclosure embodiment realizes comprehensive link determines the pre-click probability linked, and improves the pre-accuracy clicking probability.
The concrete grammar B clicking probability is in advance determined in step S101:
Layout parameter comprises every bar and links respective display area S; Now, every bar can be calculated according to following formula (2) and link respective pre-click probability:
In formula (2), the pre-click probability that f (L) is current link; S is the display area of current link.
Disclosure embodiment realizes the pre-click probability determining this link according to the display area of link, achieves and determines to click probability in advance based on this layout parameter of display area.
The concrete grammar C clicking probability is in advance determined in step S101:
Layout parameter comprises every bar and links separately and the distance d of the horizontal axis of webpage place window 1and every bar link is respective and the distance d of the longitudinal central axis line of webpage place window 2, the width w of window, the height h of window; Now, can determine that every bar links respective pre-click probability according to following formula (3):
In formula (3), the pre-click probability that f (L) is current link; d 1for the distance of the center of current link and the horizontal axis of webpage place window; d 2for the distance of the center of current link and the longitudinal central axis line of webpage place window; W is the width of webpage place window; H is the height of webpage place window.
Disclosure embodiment realizes the pre-click probability determining this link according to the display position in the window of link, achieves this layout parameter of display position based on link, determines to click probability in advance.
In one embodiment, calculating the pre-formula clicking probability can carry out arranging and being out of shape according to actual needs, anyly can determine that the formula clicking probability in advance is all applicable to disclosure embodiment according to layout parameter, does not repeat one by one at this.
To sum up, disclosure embodiment realizes according to layout parameter, determine the pre-click probability that every bar links, thus achieve the estimating the click probability that every bar links of the parameter like this with visual characteristic based on layout parameter, thus improve the accuracy of webpage prestrain.Link also adds in prestrain queue according to pre-probability of clicking by disclosure embodiment, achieves the prestrain to determining the webpage clicking probability in advance based on layout parameter, contributes to improving the speed that user browses webpage, realizes webpage cold start-up.
Below by several specific embodiment, the webpage prestrain method in the disclosure is described in detail.
Embodiment one
As shown in Figure 3, the webpage prestrain method of embodiment one comprises:
In step S301, terminal links respective layout parameter according to bar every in webpage, calculates every bar and links respective pre-click probability.
Step S301 starts when current time reaches predetermined time to perform, and also can be to start to perform when listening to the predetermined registration operation to webpage execution.
Step S301 can be embodied as any one method in above-mentioned concrete grammar A-C, no longer describes in detail here.
In step s 302, terminal links respective pre-click probability according to every bar, selects at least one link to add prestrain queue.
Step S302 can be embodied as aforesaid way I or II, no longer describes in detail here.
In step S303, in prestrain prestrain queue, link corresponding web page contents.
In step s 304, prestrain task corresponding for other link in prestrain queue cancelled, other link does not belong at least one link selected in step S302.
Disclosure embodiment realizes according to layout parameter, determines the pre-click probability that every bar links, thus achieves the parameter like this with visual characteristic based on layout parameter, to estimating of the click probability that every bar links, thus improve the accuracy of webpage prestrain.Link also adds in prestrain queue according to pre-probability of clicking by disclosure embodiment, achieves the prestrain to determining the webpage clicking probability in advance based on layout parameter, contributes to improving the speed that user browses webpage, realizes webpage cold start-up.
Embodiment two
Be linked as example with 3 in 4 of current display in prestrain current web page A links, the webpage prestrain method in disclosure embodiment be described in detail, as shown in Figure 4, comprise:
In step S401, terminal obtains the respective layout parameter of 4 links in webpage A, and wherein, this layout parameter comprises every bar and links respective display area S, distance d with the horizontal axis of webpage A place window 1and the distance d of longitudinal central axis line with webpage A place window 2, the width w of window, the height h of window.
Wherein, the illustrative diagram of webpage A and 4 link as shown in Figure 5.In Figure 5, total label is respectively 4 links of 501,502,503 and 504, and wherein label is the link being linked as a picture pattern of 502.These 4 the respective layout parameter values of link are such as shown in table 1:
Table 1 is link layout parameter value respectively
Link label s d 1 d 2
501 100 20 10
502 200 20 30
503 50 30 50
504 300 10 70
In step S402, the pre-click probability that terminal is respective according to 4 links, selects at least one link to add prestrain queue.
Wherein, can link respective pre-click probability according to the every bar of formulae discovery, this formula is in this formula, the truth of a matter of log function is 2, and the width of window is 960 pixels, is highly 640 pixels.As shown in table 2 according to the pre-click probability of bar link each in the step S401 that this formulae discovery goes out:
The pre-click probability of table 2 each bar link
Link label Pre-click probability
501 689.1221
502 549.6477
503 503.8855
504 1226.015
In step S403, terminal links respective pre-click probability to every bar and sorts according to order from big to small.
Wherein, according to the pre-click probability of table 2, the result of carrying out sorting is followed successively by: 504,501,502,503.
In step s 404, terminal obtains forward front 3 links of sequence, and front 3 links are added prestrain queue.
Wherein, such as the link of 3 in step S404 is added illustrative diagram after prestrain queue as shown in Figure 6.4 prestrain tasks are shown in Fig. 6, have comprised 1 prestrain task just performed before the link of 3 in step S404 is added prestrain queue, this mission number 601.
In step S405, terminal starts the prestrain task of front 3 links adding prestrain queue in step S404, the prestrain task not belonging to above-mentioned 3 links is cancelled in prestrain queue simultaneously.
Wherein, after performing step S405, prestrain task 601 as shown in Figure 7, in Fig. 7, is cancelled by the prestrain task in Fig. 6.
In step S406, terminal receives the instruction that request of loading one sees webpage in advance.
Wherein, this sees that webpage can be any webpage that user wants to check in advance.
In step S 407, judge to see in advance link that webpage is corresponding whether in prestrain queue, and the content of webpage is seen in prestrain in advance, if so, performs step S408, if not, performs step S409.
In step S408, call the content seeing webpage in advance of prestrain.
In step S409, terminal is seen in advance and the server at webpage place is sent request display to this this is seen in advance and returns the instruction of webpage this by this server and see that webpage is to terminal in advance.
Disclosure embodiment realizes according to layout parameter, determines the pre-click probability that every bar links, thus achieves based on layout parameter that this has parameter the estimating the click probability that every bar links of visual characteristic, thus improves the accuracy of webpage prestrain; And according to pre-probability of clicking, link is added in prestrain queue, achieve the prestrain to determining the webpage clicking probability in advance based on layout parameter, contribute to improving the speed that user browses webpage; Further, the prestrain task that will not belong to the link correspondence of at least one link is cancelled, thus is embodied as prestrain task and provides more Internet resources, is conducive to the speed improving prestrain, and achieves webpage cold start-up.
Fig. 8 is the block diagram of the device of a kind of webpage prestrain according to an exemplary embodiment, and as shown in Figure 8, this device comprises computing module 801, selects module 802 and preloaded components 803, wherein,
Computing module 801, is configured to, for linking respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability;
Select module 802, be configured to for linking respective pre-click probability according to every bar, select at least one link to add prestrain queue;
Preloaded components 803, links corresponding web page contents in prestrain prestrain queue.
In one embodiment, as shown in Figure 9, computing module 801, comprising:
First determining unit 804, is configured to link respective display area S for comprising every bar when layout parameter, every bar links separately and the distance d of the horizontal axis of window 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, window height h time; Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area S of current link; W is the width of window; H is the height of window; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window.
In one embodiment, as shown in Figure 10, computing module 801, comprising:
Second determining unit 805, be configured to for comprise when layout parameter every bar link respective display area S time; Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area of current link.
In one embodiment, as shown in figure 11, computing module 801, comprising:
3rd determining unit 806, is configured to link separately and the distance d of the horizontal axis of window for comprising every bar when layout parameter 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, window height h time; Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window; W is the width of window; H is the height of window.
In one embodiment, as shown in figure 12, select module 802, comprising:
First selection unit 807, is configured to sort according to order from big to small for linking respective pre-click probability to every bar; Obtain the front N bar link that sequence is forward, front N bar link is added prestrain queue; Or
As shown in figure 13, select module 802, comprising:
Second selection unit 808, the link be configured to for click probability pre-in every bar link is more than or equal to predetermined threshold value adds prestrain queue.
In one embodiment, as shown in figure 14, said apparatus also comprises:
Cancel module 809, be configured to for prestrain task corresponding for other link in prestrain queue being cancelled, other link does not belong at least one link.
In one embodiment, as shown in figure 15, said apparatus also comprises:
Receiver module 810, is configured to the instruction seeing webpage for receiving request of loading one in advance;
Judge module 811, be configured to for judging to see in advance link that webpage is corresponding whether in prestrain queue, and the content of webpage is seen in prestrain in advance;
Calling module 812, be configured to for when see in advance webpage corresponding be linked in prestrain queue time, call the content seeing webpage in advance of prestrain.
In one embodiment, as shown in figure 16, said apparatus also comprises:
Monitoring modular 813, is configured to whether arrive predetermined time for monitoring current time;
As shown in figure 17, computing module 801, comprising:
4th determining unit 814, is configured to, for when current time arrives predetermined time, link respective layout parameter, calculate every bar and link respective pre-click probability according to bar every in webpage;
Or
As shown in figure 18, said apparatus also comprises:
Monitoring module 815, being configured to for monitoring the operation performed webpage;
As shown in figure 19, computing module 801, comprising:
5th determining unit 816, is configured to, for when listening to the predetermined registration operation to webpage execution, linking respective layout parameter, calculate every bar and link respective pre-click probability according to bar every in webpage.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 20 is the block diagram of a kind of device 8000 for webpage prestrain according to an exemplary embodiment.Such as, device 8000 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 20, device 8000 can comprise following one or more assembly: processing components 8002, storer 8004, power supply module 8006, multimedia groupware 8008, audio-frequency assembly 8010, the interface 8012 of I/O (I/O), sensor module 8014, and communications component 8016.
The integrated operation of the usual control device 8000 of processing components 8002, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 8002 can comprise one or more processor 8020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 8002 can comprise one or more module, and what be convenient between processing components 8002 and other assemblies is mutual.Such as, processing element 8002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 8008 and processing components 8002.
Storer 8004 is configured to store various types of data to be supported in the operation of equipment 8000.The example of these data comprises for any application program of operation on device 8000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 8004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 8006 is device 8000 provide electric power.Electric power assembly 8006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 8000 and be associated.
Multimedia groupware 8008 is included in the screen providing an output interface between device 8000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 8008 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 8000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 8010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 8010 comprises a microphone (MIC), and when device 8000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 8004 further or be sent via communications component 8016.In certain embodiments, audio-frequency assembly 8010 also comprises a loudspeaker, for output audio signal.
I/O interface 8012 is for providing interface between processing components 8002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 8014 comprises one or more sensor, for providing the state estimation of various aspects for device 8000.Such as, sensor module 8014 can detect the opening/closing state of equipment 8000, the relative positioning of assembly, such as described assembly is display and the keypad of device 8000, the position of all right pick-up unit 8000 of sensor module 8014 or device 8000 assemblies changes, the presence or absence that user contacts with device 8000, the temperature variation of device 8000 orientation or acceleration/deceleration and device 8000.Sensor module 8014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 8014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 8014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 8016 is configured to the communication being convenient to wired or wireless mode between device 8000 and other equipment.Device 8000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 8016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 8016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 8000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 8004 of instruction, above-mentioned instruction can perform said method by the processor 8020 of device 8000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A device for webpage prestrain, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, processor is configured to:
Link respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability;
Link respective pre-click probability according to every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain prestrain queue.
This processor is also configured to:
Layout parameter comprises every bar and links respective display area S, the link of every bar separately and the distance d of the horizontal axis of window 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, the height h of window;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area S of current link; W is the width of window; H is the height of window; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window.
This processor is also configured to:
Layout parameter comprises every bar and links respective display area S;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area of current link.
This processor is also configured to:
Layout parameter comprises every bar and links separately and the distance d of the horizontal axis of window 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, the height h of window;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window; W is the width of window; H is the height of window.
This processor is also configured to:
Link respective pre-click probability to every bar to sort according to order from big to small; Obtain the front N bar link that sequence is forward, front N bar link is added prestrain queue; Or
The link that click probability pre-in every bar link is more than or equal to predetermined threshold value is added prestrain queue.
This processor is also configured to:
Prestrain task corresponding for other link in prestrain queue cancelled, other link does not belong at least one link.
This processor is also configured to:
Receive the instruction that request of loading one sees webpage in advance;
Judge to see in advance link that webpage is corresponding whether in prestrain queue, and the content of webpage is seen in prestrain in advance;
When see in advance webpage corresponding be linked in prestrain queue time, call the content seeing webpage in advance of prestrain.
This processor is also configured to:
Whether monitoring current time arrives predetermined time; When current time arrives predetermined time, link respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability; Or
Monitor the operation that webpage is performed;
When listening to the predetermined registration operation to webpage execution, linking respective layout parameter according to bar every in webpage, calculating every bar and link respective pre-click probability.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of webpage prestrain, method comprises:
Link respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability;
Link respective pre-click probability according to every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain prestrain queue.
This storage medium also stores:
Layout parameter comprises every bar and links respective display area S, the link of every bar separately and the distance d of the horizontal axis of window 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, the height h of window;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area S of current link; W is the width of window; H is the height of window; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window.
This storage medium also stores:
Layout parameter comprises every bar and links respective display area S;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; S is the display area of current link.
This storage medium also stores:
Layout parameter comprises every bar and links separately and the distance d of the horizontal axis of window 1and every bar link is respective and the distance d of the longitudinal central axis line of window 2, the width w of window, the height h of window;
Determine that every bar links respective pre-click probability according to following formula:
Wherein, f (L) the pre-click probability that is current link; d 1for the distance of the center of current link and the horizontal axis of window; d 2for the distance of the center of current link and the longitudinal central axis line of window; W is the width of window; H is the height of window.
This storage medium also stores:
Link respective pre-click probability to every bar to sort according to order from big to small; Obtain the front N bar link that sequence is forward, front N bar link is added prestrain queue; Or
The link that click probability pre-in every bar link is more than or equal to predetermined threshold value is added prestrain queue.
This storage medium also stores:
Prestrain task corresponding for other link in prestrain queue cancelled, other link does not belong at least one link.
This storage medium also stores:
Receive the instruction that request of loading one sees webpage in advance;
Judge to see in advance link that webpage is corresponding whether in prestrain queue, and the content of webpage is seen in prestrain in advance;
When see in advance webpage corresponding be linked in prestrain queue time, call the content seeing webpage in advance of prestrain.
This storage medium also stores:
Whether monitoring current time arrives predetermined time; When current time arrives predetermined time, link respective layout parameter according to bar every in webpage, calculate every bar and link respective pre-click probability; Or
Monitor the operation that webpage is performed;
When listening to the predetermined registration operation to webpage execution, linking respective layout parameter according to bar every in webpage, calculating every bar and link respective pre-click probability.
The method provided by the disclosure can according to layout parameter, determine the pre-click probability that every bar links, thus achieve based on layout parameter that this has parameter the estimating the click probability that every bar links of visual characteristic, thus improve the accuracy of webpage prestrain.Link also adds in prestrain queue according to pre-probability of clicking by disclosure embodiment, achieves the prestrain to determining the webpage clicking probability in advance based on layout parameter, contributes to improving the speed that user browses webpage, realizes webpage cold start-up.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (18)

1. a method for webpage prestrain, is characterized in that, comprising:
Link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Link respective pre-click probability according to described every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain queue described in prestrain.
2. method according to claim 1, is characterized in that,
Described layout parameter comprise following at least one parameter:
Described every bar links respective display area S, described every bar links separately and the distance d of the horizontal axis of described webpage place window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, described window width w and, the height h of described window.
3. method according to claim 1 and 2, is characterized in that,
Described layout parameter comprise described every bar link respective display area S, the link of described every bar separately with the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, the height h of described window;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area S of described current link; Described w is the width of described window; Described h is the height of described window; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window.
4. method according to claim 1 and 2, is characterized in that,
Described layout parameter comprises described every bar and links respective display area S;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area of described current link.
5. method according to claim 1 and 2, is characterized in that,
Described layout parameter comprises described every bar and links separately and the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, the height h of described window;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window; Described w is the width of described window; Described h is the height of described window.
6. method according to claim 1, is characterized in that,
Describedly link respective pre-click probability according to described every bar, select at least one link to add prestrain queue, comprising:
Link respective pre-click probability to described every bar to sort according to order from big to small; Obtain the front N bar link that described sequence is forward, described front N bar link is added prestrain queue; Or
The link that pre-click probability in described every bar link is more than or equal to predetermined threshold value is added prestrain queue.
7. method according to claim 1, is characterized in that, described method also comprises:
Prestrain task corresponding for other link in described prestrain queue cancelled, other link described does not belong to described at least one link.
8. method according to claim 1, is characterized in that, described method also comprises:
Receive the instruction that request of loading one sees webpage in advance;
Judge link corresponding to described preset web whether in described prestrain queue, and the content of preset web described in prestrain;
When described see in advance webpage corresponding be linked in described prestrain queue time, the described content seeing webpage in advance of prestrain described in calling.
9. method according to claim 1, is characterized in that,
Described method also comprises:
Whether monitoring current time arrives predetermined time;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
When current time arrives described predetermined time, link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Or
Described method also comprises:
Monitor the operation that described webpage is performed;
Describedly link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability, comprising:
When listening to the predetermined registration operation performed described webpage, linking respective layout parameter according to bar every in webpage, calculating described every bar and link respective pre-click probability.
10. a device for webpage prestrain, is characterized in that, comprising:
Computing module, for linking respective layout parameter according to bar every in webpage, calculating described every bar and linking respective pre-click probability;
Selecting module, for linking respective pre-click probability according to described every bar, selecting at least one link to add prestrain queue;
Preloaded components, links corresponding web page contents in prestrain queue described in prestrain.
11. devices according to claim 10, is characterized in that, described computing module, comprising:
First determining unit, links respective display area S for comprising described every bar when described layout parameter, described every bar links separately and the distance d of the horizontal axis of described window 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, described window height h time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area S of described current link; Described w is the width of described window; Described h is the height of described window; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window.
12. devices according to claim 10, is characterized in that, described computing module, comprising:
Second determining unit, for comprise when described layout parameter described every bar link respective display area S time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described s is the display area of described current link.
13. devices according to claim 10, is characterized in that, described computing module, comprising:
3rd determining unit, links separately and the distance d of the horizontal axis of described window for comprising described every bar when described layout parameter 1and described every bar link is respective and the distance d of the longitudinal central axis line of described window 2, the width w of described window, described window height h time; Determine that described every bar links respective pre-click probability according to following formula:
Wherein, described f (L) the pre-click probability that is current link; Described d 1for the distance of the center of described current link and the horizontal axis of described window; Described d 2for the distance of the center of described current link and the longitudinal central axis line of described window; Described w is the width of described window; Described h is the height of described window.
14. devices according to claim 10, is characterized in that, described selection module, comprising:
First selection unit, sorts according to order from big to small for linking respective pre-click probability to described every bar; Obtain the front N bar link that described sequence is forward, described front N bar link is added prestrain queue; Or
Second selection unit, adds prestrain queue for the link that pre-click probability in described every bar link is more than or equal to predetermined threshold value.
15. devices according to claim 10, is characterized in that, described device also comprises:
Cancel module, for prestrain task corresponding for other link in described prestrain queue being cancelled, other link described does not belong to described at least one link.
16. devices according to claim 10, is characterized in that, described device also comprises:
Receiver module, sees the instruction of webpage in advance for receiving request of loading one;
Judge module, describedly sees link that webpage is corresponding in advance whether in described prestrain queue for judging, and sees the content of webpage described in prestrain in advance;
Calling module, for when described see in advance webpage corresponding be linked in described prestrain queue time, the described content seeing webpage in advance of prestrain described in calling.
17. devices according to claim 10, is characterized in that,
Described device also comprises:
Whether monitoring modular, arrive predetermined time for monitoring current time;
Described computing module, comprising:
4th determining unit, for when current time arrives described predetermined time, links respective layout parameter according to bar every in webpage, calculates described every bar and link respective pre-click probability;
Or
Described device also comprises:
Monitor module, for monitoring the operation performed described webpage;
Described computing module, comprising:
5th determining unit, for when listening to the predetermined registration operation performed described webpage, linking respective layout parameter according to bar every in webpage, calculating described every bar and link respective pre-click probability.
The device of 18. 1 kinds of webpage prestrains, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Link respective layout parameter according to bar every in webpage, calculate described every bar and link respective pre-click probability;
Link respective pre-click probability according to described every bar, select at least one link to add prestrain queue;
Corresponding web page contents is linked in prestrain queue described in prestrain.
CN201410174710.6A 2014-04-28 2014-04-28 The method and device that webpage preloads Active CN105095227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410174710.6A CN105095227B (en) 2014-04-28 2014-04-28 The method and device that webpage preloads

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410174710.6A CN105095227B (en) 2014-04-28 2014-04-28 The method and device that webpage preloads

Publications (2)

Publication Number Publication Date
CN105095227A true CN105095227A (en) 2015-11-25
CN105095227B CN105095227B (en) 2019-03-26

Family

ID=54575693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410174710.6A Active CN105095227B (en) 2014-04-28 2014-04-28 The method and device that webpage preloads

Country Status (1)

Country Link
CN (1) CN105095227B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107632985A (en) * 2016-07-18 2018-01-26 腾讯科技(北京)有限公司 Webpage preloads method and device
CN107704616A (en) * 2017-10-26 2018-02-16 北京百度网讯科技有限公司 Single page application preloads method, apparatus, equipment and computer-readable medium
CN108713189A (en) * 2016-06-10 2018-10-26 谷歌有限责任公司 Predictive virtual machine executes
CN108762871A (en) * 2018-05-24 2018-11-06 青岛海信传媒网络技术有限公司 Page assembly preloads method, apparatus and display terminal
CN108762838A (en) * 2018-05-21 2018-11-06 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108881332A (en) * 2017-05-09 2018-11-23 北京搜狗科技发展有限公司 A kind of pre-download method and apparatus
CN109753615A (en) * 2018-12-24 2019-05-14 北京三快在线科技有限公司 The method and apparatus for preloading webpage, storage medium and electronic equipment
CN109829077A (en) * 2017-08-29 2019-05-31 阿里巴巴集团控股有限公司 A kind of page display method, device and equipment
WO2019205804A1 (en) * 2018-04-23 2019-10-31 中兴通讯股份有限公司 Web page pre-downloading method and device, storage medium and electronic device
WO2021114919A1 (en) * 2019-12-12 2021-06-17 华为技术有限公司 Method and system for acquiring content, user terminal, and content server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
CN102722520A (en) * 2012-03-30 2012-10-10 浙江大学 Method for classifying pictures by significance based on support vector machine
CN103617222A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Browser and method for preloading in webpages
CN103729439A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Method and device for preloading webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663012A (en) * 2012-03-20 2012-09-12 北京搜狗信息服务有限公司 Webpage preloading method and system
CN102722520A (en) * 2012-03-30 2012-10-10 浙江大学 Method for classifying pictures by significance based on support vector machine
CN103617222A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Browser and method for preloading in webpages
CN103729439A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Method and device for preloading webpage

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108713189A (en) * 2016-06-10 2018-10-26 谷歌有限责任公司 Predictive virtual machine executes
CN107632985A (en) * 2016-07-18 2018-01-26 腾讯科技(北京)有限公司 Webpage preloads method and device
CN107632985B (en) * 2016-07-18 2020-09-01 腾讯科技(北京)有限公司 Webpage preloading method and device
CN108881332B (en) * 2017-05-09 2022-02-01 北京搜狗科技发展有限公司 Pre-downloading method and device
CN108881332A (en) * 2017-05-09 2018-11-23 北京搜狗科技发展有限公司 A kind of pre-download method and apparatus
CN109829077A (en) * 2017-08-29 2019-05-31 阿里巴巴集团控股有限公司 A kind of page display method, device and equipment
CN109829077B (en) * 2017-08-29 2023-10-24 阿里巴巴集团控股有限公司 Page display method, device and equipment
CN107704616A (en) * 2017-10-26 2018-02-16 北京百度网讯科技有限公司 Single page application preloads method, apparatus, equipment and computer-readable medium
WO2019205804A1 (en) * 2018-04-23 2019-10-31 中兴通讯股份有限公司 Web page pre-downloading method and device, storage medium and electronic device
CN108762838A (en) * 2018-05-21 2018-11-06 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108762871A (en) * 2018-05-24 2018-11-06 青岛海信传媒网络技术有限公司 Page assembly preloads method, apparatus and display terminal
CN108762871B (en) * 2018-05-24 2021-03-19 青岛海信传媒网络技术有限公司 Page component preloading method and device and display terminal
CN109753615A (en) * 2018-12-24 2019-05-14 北京三快在线科技有限公司 The method and apparatus for preloading webpage, storage medium and electronic equipment
CN109753615B (en) * 2018-12-24 2020-07-03 北京三快在线科技有限公司 Method and device for preloading webpage, storage medium and electronic equipment
WO2021114919A1 (en) * 2019-12-12 2021-06-17 华为技术有限公司 Method and system for acquiring content, user terminal, and content server

Also Published As

Publication number Publication date
CN105095227B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN105095227A (en) Method and apparatus for preloading webpage
CN103516892B (en) Mobile terminal and control method thereof
CN104079962B (en) A kind of method and device for pushing recommendation information
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
CN104219617A (en) Service acquiring method and device
CN105099840A (en) Setting method and device of intelligent household scene
CN104572942A (en) Push message display method and push message display device
CN104933170A (en) Information exhibition method and device
CN104978267A (en) Web page testing method, terminal and server
CN105517112A (en) Method and device for displaying WiFi network information
CN104426919A (en) Page sharing method, device and system
CN104580019A (en) Network service supplying method and device
CN104536787B (en) Resource preloads method and device
CN105159524A (en) Interface display method and apparatus
CN104331503A (en) Information push method and device
CN105630337A (en) Control controlling method and device
CN104468760A (en) Method and device for pushing reminding information
CN107948093A (en) Adjust the method and device that network speed is applied in terminal device
CN105373580A (en) Method and device for displaying subjects
CN104636164A (en) Generating method and device for starting page
CN105554710A (en) Message display method and device
CN104820549A (en) Method, device and terminal for transmitting social networking application message
CN105976201B (en) Purchasing behavior monitoring method and device for e-commerce system
CN105721283B (en) Method, device and equipment for sending screenshot message
CN104298430A (en) Telephone ordering method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant