CN103455353A - Method and device for requesting webpage data - Google Patents

Method and device for requesting webpage data Download PDF

Info

Publication number
CN103455353A
CN103455353A CN2013103911420A CN201310391142A CN103455353A CN 103455353 A CN103455353 A CN 103455353A CN 2013103911420 A CN2013103911420 A CN 2013103911420A CN 201310391142 A CN201310391142 A CN 201310391142A CN 103455353 A CN103455353 A CN 103455353A
Authority
CN
China
Prior art keywords
action
instruction
consuming time
time
situation
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
CN2013103911420A
Other languages
Chinese (zh)
Other versions
CN103455353B (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201310391142.0A priority Critical patent/CN103455353B/en
Publication of CN103455353A publication Critical patent/CN103455353A/en
Application granted granted Critical
Publication of CN103455353B publication Critical patent/CN103455353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for requesting webpage data. The method comprises the steps of receiving an initial action of a command action of a user; obtaining a time consuming command corresponding to the initial action; emitting a network request corresponding to the time consuming command, wherein the time consuming command is a command for triggering time consuming operation, and the command action comprises one or multiple action (s) for triggering the time consuming command. According to the method and the device, which are disclosed by the invention, the problems of slow speed and low efficiency in opening a webpage in the prior art are solved, and the effect of efficiently opening the webpage is achieved.

Description

The requesting method of web data and device
Technical field
The present invention relates to the mobile communication technology field, in particular to a kind of requesting method and device of web data.
Background technology
In prior art, open after webpage often needs user clicks on links, system is through accesses network, resolution data, the time-consuming process of playing up a plurality of complexity such as webpage completes the displaying of webpage, in order to accelerate the webpage opening speed, conventional optimization is to accelerate the domain name mapping process, use edge joint to receive network data, the limit resolution data, limit is played up the technology of webpage and is accelerated the webpage opening speed, but it is little to the rate of opening webpage to accelerate domain name mapping, be also that the optimizing field name parsing also can't be fast to user's displayed web page, certainly, traditional scheme has also been done many-sided optimization, but because the speed of opening webpage mainly depends on the speed of transmitted data on network, there is time delay in network, although parsing from many aspects or play up and all done optimization, but all can not open timely webpage, can not effectively accelerate to open the speed of webpage.
For opening slow, the inefficient problem of webpage speed in prior art, effective solution is not yet proposed at present.
Summary of the invention
Open slow, the inefficient problem of webpage speed for correlation technique, not yet propose at present effective solution, for this reason, fundamental purpose of the present invention is to provide a kind of requesting method and device of web data, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of requesting method of web data, the method comprises: the origination action that receives user's instruction action; Obtain the consuming time instruction corresponding with origination action; And send the network request corresponding with instruction consuming time, and wherein, instruction consuming time is for triggering the instruction of time-consuming operation, and the instruction action comprises the one or more actions that trigger instruction consuming time.
Further, the step of obtaining the consuming time instruction corresponding with origination action comprises: read the default consuming time instruction corresponding with origination action and matching degree value from presetting database, the value of the matching degree that wherein, the matching degree value is origination action and each default instruction consuming time; Read default instruction consuming time according to the size of matching degree value, using the instruction default consuming time that reads as instruction consuming time.
Further, after the step of sending the network request corresponding with instruction consuming time, method comprises: receive the network data of obtaining according to network request; Network data is carried out resolution data and played up Web Page Processing, to obtain, play up data; And use and play up the data display request results.
Further, instruction consuming time comprises the instruction of browsing page, and request results comprises the displaying of webpage, uses the step of playing up the data display request results to comprise: continue to receive user's action consuming time, wherein, action consuming time is for triggering the action of instruction consuming time; Judge whether action consuming time belongs to the instruction action; In the situation that action consuming time belongs to the instruction action, judge whether action consuming time is the tenth skill of instruction action; In the situation that action consuming time is tenth skill, uses and play up the data display webpage; In the situation that action consuming time is not tenth skill, return to the step of carrying out the action consuming time that continues the reception user; And, in the situation that action consuming time does not belong to the instruction action, cancel the processing that network data is carried out resolution data and played up webpage.
Further, judge that the step whether action consuming time belongs to instruction action comprises: obtain the first property parameters of origination action and the second property parameters of tenth skill; Detect primary importance and whether meet default similar scope to the similarity of the second place; In the situation that similarity meets default similar scope, detect the first chained address whether consistent with the second chained address; And, in the situation that the first chained address is consistent with the second chained address, determine that action consuming time belongs to the instruction action; In similarity, do not meet in default similar scope and the inconsistent situation in the first chained address and the second chained address, stop sending network request, wherein, origination action comprises presses action, the first property parameters comprises the primary importance pressing action and occur, press the first chained address that action points to and press pressing the time of action, tenth skill comprises and unclamps action, and the second property parameters comprises: unclamp the second place that action occurs, unclamp the second chained address that action points to and unclamp unclamping the time of action; Judge that whether action consuming time is that the step of the tenth skill of instruction action comprises: in the time of unclamping the time and press intercropping poor, to obtain the instruction time; Whether the detection instruction time meets the Preset Time scope; In the situation that the instruction time meets the Preset Time scope, determine that action consuming time is tenth skill; And, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is not tenth skill.
To achieve these goals, according to a further aspect in the invention, provide a kind of request unit of web data, this device comprises: the first receiver module, the origination action of moving for the instruction that receives the user; The first processing module, for obtaining the consuming time instruction corresponding with origination action; And second processing module, for sending the network request corresponding with instruction consuming time, wherein, instruction consuming time is for triggering the instruction of time-consuming operation, and the instruction action comprises the one or more actions that trigger instruction consuming time.
Further, the first processing module comprises: the first read module, for read all default consuming time instruction and the matching degree value corresponding with origination action from presetting database, wherein, the value of the matching degree that the matching degree value is origination action and each default instruction consuming time; The second read module, read default instruction consuming time for the size according to the matching degree value, using the instruction default consuming time that reads as instruction consuming time.
Further, device comprises: the second receiver module, for receiving the network data of obtaining according to network request; The 3rd processing module, for network data being carried out to resolution data and playing up Web Page Processing, play up data to obtain; And display module, play up the data display request results for use.
Further, instruction consuming time comprises the instruction of browsing page, and request results comprises the displaying of webpage, and display module comprises: the 3rd receiver module, and for continuing to receive user's action consuming time, wherein, action consuming time is for triggering the action of instruction consuming time; Whether the first judge module, belong to the instruction action for judging action consuming time; The second judge module, in the situation that action consuming time belongs to the instruction action, judge whether action consuming time is the tenth skill of instruction action; The first sub-display module, in the situation that action consuming time is tenth skill, used and play up the data display webpage; Return to execution module, in the situation that action consuming time is not tenth skill, return to the step of carrying out the action consuming time that continues the reception user; And the cancellation module, in the situation that action consuming time does not belong to the instruction action, cancel the processing that network data is carried out resolution data and played up webpage.
Further, the first judge module comprises: the second acquisition module, for the first property parameters of obtaining origination action and the second property parameters of tenth skill; Whether the second detection module, meet default similar scope for detection of primary importance and the similarity of the second place; The 3rd detection module, in the situation that similarity meets default similar scope, detect the first chained address whether consistent with the second chained address; The first sub-processing module, in the situation that the first chained address is consistent with the second chained address, determine that action consuming time belongs to the instruction action; And the second sub-processing module, for not meeting in similarity in default similar scope and the inconsistent situation in the first chained address and the second chained address, stop sending network request, wherein, origination action comprises presses action, the first property parameters comprises the primary importance pressing action and occur, press the first chained address that action points to and press pressing the time of action, tenth skill comprises and unclamps action, and the second property parameters comprises: unclamp the second place that action occurs, unclamp the second chained address that action points to and unclamp unclamping the time of action; The second judge module comprises: computing module, and poor for unclamping time intercropping when pressing, to obtain the instruction time; Whether the 4th detection module, meet the Preset Time scope for detection of the instruction time; And the second sub-processing module, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is tenth skill; And, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is not tenth skill.
By the present invention, just from database, obtain the consuming time instruction corresponding with this origination action after the origination action that gets the instruction action, and send the network request corresponding with instruction consuming time, just start anticipation user's behavior in the origination action that gets the user, anticipation obtains instruction consuming time, send in advance and process network request, thereby can be in optimized network speed not, webpage is resolved under the prerequisite of rendering speed, by the anticipation user behavior, send in advance network request, open webpage speed in advanced processing time-consuming operation solution prior art slow, inefficient problem, reach the effect of rapidly and efficiently opening webpage.
The accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention the present invention does not form inappropriate limitation of the present invention for explaining.In the accompanying drawings:
Fig. 1 is the structural representation according to the request unit of the web data of the embodiment of the present invention;
Fig. 2 is the structural representation according to the request unit of web data embodiment illustrated in fig. 1;
Fig. 3 is the process flow diagram according to the requesting method of the web data of the embodiment of the present invention;
Fig. 4 is the process flow diagram according to the requesting method of web data embodiment illustrated in fig. 3; And
Fig. 5 is the process flow diagram according to clickthrough requested webpage data method embodiment illustrated in fig. 3.
Embodiment
It should be noted that, in the situation that do not conflict, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 1 is the structural representation according to the request unit of the web data of the embodiment of the present invention.As shown in Figure 1, this device can comprise: the first receiver module 10, the origination action of moving for the instruction that receives the user; The first processing module 30, for reading the consuming time instruction corresponding with origination action from presetting database; And second processing module 50, for sending the network request corresponding with instruction consuming time, wherein, instruction consuming time is for triggering the instruction of time-consuming operation, and the instruction action comprises the one or more actions that trigger instruction consuming time.
Adopt the above embodiment of the present invention, after receiving the origination action of instruction action, the first receiver module just by the first processing module, obtains the consuming time instruction corresponding with this origination action from presetting database, and send the network request corresponding with instruction consuming time by the second processing module, just start anticipation user's behavior in the origination action that gets the user, anticipation obtains instruction consuming time, send in advance and process network request, thereby can be in optimized network speed not, webpage is resolved under the prerequisite of rendering speed, by the anticipation user behavior, send in advance network request, open webpage speed in advanced processing time-consuming operation solution prior art slow, inefficient problem, reach quick, efficiently open the effect of webpage.
Wherein, certain action of user can trigger (as: the webpage clicking link of specific operational order, click " link is opened on backstage " after chaining the ejection right-click menu, on browser, use middle button of mouse clickthrough backstage to open link, manually set up downloading task etc. and be connected by a plurality of actions the combination of actions formed downloading interface), the specific operational order that can trigger time-consuming operation is instruction consuming time, time-consuming operation wherein comprises accesses network, resolution data, play up the time-consuming process of a plurality of complexity such as webpage, the action that can trigger instruction consuming time in the above embodiment of the present invention is denoted as the instruction action, each independent action in the instruction action is denoted as to action consuming time, be also that origination action in above-described embodiment is also action consuming time.
After receiving the user by the first receiver module and sending the origination action of instruction action, just by the first processing module, obtain the consuming time instruction corresponding with this instruction and use the second processing module to be processed this instruction consuming time, send corresponding networking request, rather than just start to process after obtaining complete instruction action, in the request process of whole web data, ignore the middle action of the instruction action that the user sends or the time of tenth skill, shorten widely the user and asked and obtained the time of web data, thereby increased user's experience.
In the above embodiment of the present invention, the first processing module can comprise: the first read module, for read all default consuming time instruction and the matching degree value corresponding with origination action from presetting database, wherein, the value of the matching degree that the matching degree value is origination action and each default instruction consuming time; The second read module, read default instruction consuming time for the size according to the matching degree value, using the instruction default consuming time that reads as instruction consuming time.
Particularly, can the size according to the matching degree value sort and obtain default instruction sequence consuming time default instruction consuming time by order module, the instruction default consuming time that then also will read in the instruction default consuming time of using the second read module to read successively the number of predetermined threshold value from default instruction sequence consuming time be as instruction consuming time.
In the above embodiment of the present invention, the second read module can be directly reads instruction consuming time according to the size of matching degree value, can also be after order module be obtained default instruction sequence consuming time to instruction sequence default consuming time, the instruction default consuming time of reading the number of predetermined threshold value successively from this default instruction sequence consuming time.Read the instruction consuming time of the number of predetermined threshold value and can obtain more rapidly instruction consuming time from default instruction sequence consuming time, thereby can save the more time, thus represent to time of user's request results more early, the user experiences better.
Wherein, incidence relation in presetting database between in store default instruction and instruction action consuming time, this incidence relation is in advance to various time-consuming operations, instruction consuming time and instruction action (as: add bookmark by link, replication link, the operational motion such as retreat) carry out the incidence relation that data statistics obtains, when obtaining above-mentioned incidence relation, can also be according to each independent action of outcome record of data statistics and the matching degree value of each instruction consuming time, as, press the instruction consuming time that action possibility correspondence is opened webpage, also the possibility correspondence copies the instruction consuming time of web page contents, in obtaining the process of above-mentioned incidence relation, record the matching degree value of each action consuming time and each instruction consuming time simultaneously.Each instruction action in this embodiment can comprise a plurality of actions consuming time, instructions consuming time can corresponding be a plurality ofly preset in each action consuming time, but only have a matching degree value between each action consuming time and each default instruction consuming time, this matching degree value has reflected action consuming time and the matching degree of presetting instruction consuming time; Can certainly directly record instruction default consuming time corresponding to each action consuming time, whether belong to which instruction action and need not manage this action consuming time, adopt this recording method, when obtaining the default consuming time instruction corresponding with origination action, can by instruction, not move and directly search and can shorten the time of searching, thereby shortened the time of obtaining instruction consuming time, thereby can shorten further the request time of web data.
Particularly, in above-mentioned data statistics process, the situation that likely there will be the corresponding a plurality of instructions consuming time of an origination action, in the situation that the corresponding a plurality of instructions consuming time of origination action, when the first processing module is obtained the default consuming time instruction corresponding with origination action, at first obtain all default consuming time instruction and the matching degree value thereof corresponding with this origination action by the first read module, then use order module size sequence according to the matching degree value by all instructions default consuming time, after obtaining default instruction sequence consuming time, read default instruction consuming time to obtain instruction consuming time by the second read module, preferably, read and the instruction default consuming time of this origination action matching degree value maximum (also instruction default consuming time) the highest with the origination action matching degree, in the above-described embodiments, if the instruction sequence default consuming time from big to small instruction sequence default consuming time obtained according to the matching degree value, read first the default instruction consuming time in this default instruction sequence consuming time, also can read successively in order the instruction consuming time of the number of predetermined threshold value from this instruction sequence consuming time.Wherein, above-mentioned predetermined threshold value can be 2, it is separately each action setting that this predetermined threshold value can be distinguished, also a predetermined threshold value can be set to all actions, above-mentioned predetermined threshold value can also be to arrange according to user's needs, adopts above-described embodiment, action that can be different according to attribute reads the instruction consuming time of varying number, thereby can meet user's multiple demand or multiple different processing speed, thereby improve the processing speed of system, improve user's experience.Wherein, the different action of attribute comprises: the action that the action that the action that frequency of utilization is different, the quantity of corresponding instruction consuming time are different or user have different demands.
In the above embodiment of the present invention, read the instruction consuming time of the number of predetermined threshold value, can be before the user inputs the instruction action fully, instruction consuming time with regard to the number of advanced processing predetermined threshold value, because the origination action according to the user is carried out anticipation to its behavior and may be had certain error, in embodiment as shown in Figure 4, can to the follow-up action consuming time of sending of user, confirm further to step S210 by execution step S208, if only read and process the instruction consuming time that the matching degree value is the highest, once judge (confirming that the instruction consuming time that the user sends is not the instruction consuming time of anticipation) by accident, all advanced processing all will be without any practical significance, if and advanced processing the instruction consuming time of number of predetermined threshold value, the very difficult erroneous judgement by accident,, after confirming the instruction consuming time read, can show request results to the user soon.Can still can respond soon user's request in the situation that occur that the anticipation instruction is wrong by the above embodiment of the present invention, show request results to the user rapidly.
Particularly, user's right-click menu is opened webpage except new window, open outside webpage on backstage, generally in addition link is added to bookmark, replication link, the time-consuming operation such as retreat, when setting up presetting database, by the instruction to the user, move, the data statistics of time-consuming operation can draw " new window is opened webpage " and " webpage is opened on backstage " be the user high frequencies of operation (two kinds of instructions consuming time account for greatly all origination action be press the corresponding instruction consuming time of action 50%), when setting up presetting database, use instruction consuming time corresponding to matching degree value judgement origination action can well guarantee the final hit rate of guess, open acceleration effect to guarantee higher hit rate and good webpage.
For example, instruction consuming time corresponding with pressing action in presetting database can comprise: the instruction consuming time of browsing page (matching degree value 50), amplify the instruction consuming time (matching degree value 15) of webpage, dwindle the instruction consuming time (matching degree value 2) of webpage, close the instruction (matching degree value 10) of webpage and the instruction consuming time (matching degree value 23) of mobile webpage, the instruction sequence consuming time that sequence obtains can be: the instruction consuming time of browsing page (matching degree value 50), the instruction consuming time of mobile webpage (matching degree value 23), amplify the instruction consuming time (matching degree value 15) of webpage, close the instruction (matching degree value 10) of webpage, dwindle the instruction consuming time (matching degree value 2) of webpage.When reading instruction consuming time, can only read first the instruction consuming time in this instruction sequence consuming time, be the instruction consuming time of browsing page, also can read the consuming time instruction of sequence at front two, i.e. the instruction consuming time of the instruction consuming time of browsing page and mobile webpage.
As shown in Figure 2, device can also comprise: the second receiver module 70, for receiving the network data of obtaining according to network request; The 3rd processing module 90, for network data being carried out to resolution data and playing up Web Page Processing, to obtain web data; And display module 110, show request results for using web data.
Particularly, after receiving network data by the second receiver module, the processing of network data being carried out to resolution data by the 3rd processing module obtains web data, after web data is played up to Web Page Processing, can obtain the above-mentioned data of playing up, then by display module, use and play up the data display request results.In the request of browsing page, use and play up the data display request results, be the webpage that uses the link correspondence of playing up data display user click.
For example, the instruction consuming time got in the above-described embodiments is that clickthrough is opened webpage, the network request sent can be: load request corresponding to link, further, the request results that this network request is corresponding is: to user's displayed web page, also use the webpage of the link correspondence of playing up the data display click.And for example, the instruction consuming time got in the above-described embodiments is the convergent-divergent current web page, the network request sent can be: the convergent-divergent multiple that current web page is inputted according to the user carries out the convergent-divergent processing, the request results that this network request is corresponding is: show the Webpage after convergent-divergent to the user, also use play up data display by current page the webpage after according to the convergent-divergent multiple of user's input.
In the above embodiment of the present invention, instruction consuming time comprises the instruction of browsing page, and request results comprises the displaying of webpage, display module 110 can comprise: the 3rd receiver module, for continuing to receive user's action consuming time, wherein, each action that triggers instruction consuming time is action consuming time; Whether the first judge module, belong to the instruction action for judging action consuming time; The second judge module, in the situation that action consuming time belongs to the instruction action, judge whether action consuming time is the tenth skill of instruction action; The first sub-display module, in the situation that action consuming time is tenth skill, used web data to show request results; And return to execution module, in the situation that action consuming time is not tenth skill, return to the step of carrying out the action consuming time that continues the reception user; And the cancellation module, in the situation that action consuming time does not belong to described instruction action, cancel the processing that network data is carried out resolution data and played up webpage.
Wherein, individual part in above-described embodiment in the instruction of each instruction consuming time action all can be called action consuming time, origination action in the embodiment shown in Fig. 1 and Fig. 3 is also action consuming time, action consuming time can be each the action in instruction action, and origination action, middle action or tenth skill are all a kind of of action consuming time, origination action, the generation of middle action or tenth skill all can represent a kind of generation of specific behavior, and action consuming time only means to trigger an action of instruction consuming time, this action can be origination action, middle action or tenth skill.
Particularly, after obtaining and playing up data, the 3rd receiver module continues to receive user's action consuming time, then the first judge module judges whether action consuming time belongs to an action in the instruction action of corresponding same instruction consuming time, if words, by the second judge module, continue to judge whether this action consuming time is last action in this instruction action, also whether i.e. this action consuming time is the tenth skill of this instruction action, if this action consuming time is the tenth skill of this instruction action, it is correct confirming to hit the instruction consuming time that presetting database reads, confirmation is correct to the anticipation of user's origination action, the first sub-display module use is played up the data display request results and is passed through the above embodiment of the present invention, can reduce the wasting of resources, response user's web data request speed is fast.Not the tenth skill of former instruction action in the follow-up action consuming time received, by returning to execution module, return to the step of carrying out the action consuming time that continues the reception user.
More specifically, if an instruction consuming time is normally not complete, inserted again the another one instruction, first instruction can be canceled, also in the above-described embodiments, if action consuming time does not belong to the instruction action, confirm that the user does not normally complete this instruction action, can cancel the processing procedure for the network request of instruction consuming time by cancelling module.Such as, the user presses chaining, triggered " open link " this instruction consuming time, do not unclamp finger (do not complete " open link " this instruction consuming time), displacement has occurred in finger in link (or webpage), again triggered " drag webpage " operation (the PC browser is for having triggered " new window is opened webpage " time-consuming operation), first instruction consuming time " open link " should cancel.
In the above-described embodiments, when triggering certain instruction consuming time, and user's behavior does not cause instruction conflict, when meeting " tenth skill " of this instruction consuming time, be also that the follow-up action consuming time got is the tenth skill of instruction action, confirm that this instruction moved, can then respond subsequent operation corresponding to instruction consuming time, such as " clickthrough " this instruction has completed, can use and play up data and start displayed web page, more specifically, if do not obtain complete network data, also can load progress by display web page, adopt above-described embodiment, can be so that the user obtains the progress of web data request intuitively, releive user's mood, strengthening the user experiences.
In the above embodiment of the present invention, the first judge module comprises: the second acquisition module, for the first property parameters of obtaining origination action and the second property parameters of tenth skill; Whether the second detection module, meet default similar scope for detection of primary importance and the similarity of the second place; The 3rd detection module, in the situation that similarity meets default similar scope, detect the first chained address whether consistent with the second chained address; And the first sub-processing module, in the situation that the first chained address is consistent with the second chained address, determine that action consuming time belongs to the instruction action; And the second sub-processing module, for not meeting in similarity in default similar scope and the inconsistent situation in the first chained address and the second chained address, stop sending network request, wherein, origination action comprises presses action, the first property parameters comprises the primary importance pressing action and occur, press the first chained address that action points to and press pressing the time of action, tenth skill comprises and unclamps action, and the second property parameters comprises: unclamp the second place that action occurs, unclamp the second chained address that action points to and unclamp unclamping the time of action.
Particularly, the similarity that the second detection module detects primary importance and the second place can mean by the coordinate difference of calculating the second place and primary importance both similarities, in the situation that this similarity meets default similar scope, the coordinate difference that means both meets default similar scope, should default similar scope be preferably [0.1 ,+0.1].If it is basically identical with the position of pressing that this similarity meets the position that default similar scope shows that the user unclamps.
According to the abovementioned embodiments of the present invention, the second judge module can comprise: computing module, and poor for unclamping time intercropping when pressing, to obtain the instruction time; Whether the 4th detection module, meet the Preset Time scope for detection of the instruction time; And the second sub-processing module, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is tenth skill.
Preferentially, the first processing module can also comprise: the first acquisition module, for obtaining the first property parameters of origination action; First detection module, for detection of whether having effective the first chained address on primary importance; Reading submodule, in the situation that have effective the first chained address on primary importance, obtain instruction consuming time.
For example, in web page interlinkage, press, this action is the origination action of " clickthrough (opening webpage) " this instruction consuming time, and the anticipation user will click web page interlinkage and open webpage.Particularly, in the above embodiment of the present invention, when the user sends certain action (being the origination action in above-described embodiment), system can be obtained the consuming time instruction corresponding with this origination action, such as, clickthrough is opened webpage " origination action ": " left button " (link has very many types in " generic web page link ", such as Javascript, email, telephone etc., and be not all to open webpage) upper " pressing ", to record the first property parameters of pressing action simultaneously, as first chained address of pressing the action correspondence, the primary importance of pressing, a series of data such as the time of pressing of pressing, corresponding " tenth skill " is to unclamp in the position of pressing, and link do not change, and the time that distance is pressed is less than 0.5 second.System can, the instruction action together with " opening webpage " this operative association, when matching " left button links in generic web page ", confirm that the user wants " opening webpage ".
Fig. 3 is that the method comprises the steps: as shown in Figure 3 according to the process flow diagram of the requesting method of the web data of the embodiment of the present invention
Step S102, the origination action of reception user's instruction action.
Step S104, obtain the consuming time instruction corresponding with origination action.
Step S106, send the network request corresponding with instruction consuming time.
Wherein, instruction consuming time is for triggering the instruction of time-consuming operation, and the instruction action comprises the one or more actions that trigger instruction consuming time.
Adopt the above embodiment of the present invention, obtain the consuming time instruction corresponding with this origination action after the origination action that gets the instruction action, and send the network request corresponding with instruction consuming time, just start anticipation user's behavior in the origination action that gets the user, anticipation obtains instruction consuming time, send in advance and process network request, thereby can be in optimized network speed not, webpage is resolved under the prerequisite of rendering speed, by the anticipation user behavior, send in advance network request, open webpage speed in advanced processing time-consuming operation solution prior art slow, inefficient problem, reach quick, efficiently open the effect of webpage.
Particularly, can receive by the first receiver module shown in Fig. 1 the origination action of user's instruction action; Read the consuming time instruction corresponding with origination action by the first processing module from presetting database; And send the network request corresponding with instruction consuming time by the second processing module.
Wherein, certain action of user can trigger (as: the webpage clicking link of specific operational order, click " link is opened on backstage " after chaining the ejection right-click menu, on browser, use middle button of mouse clickthrough backstage to open link, manually set up downloading task etc. and be connected by a plurality of actions the combination of actions formed downloading interface), the specific operational order that can trigger time-consuming operation is instruction consuming time, time-consuming operation wherein comprises accesses network, resolution data, play up the time-consuming process of a plurality of complexity such as webpage, the action that can trigger instruction consuming time in the above embodiment of the present invention is denoted as the instruction action, each independent action in the instruction action is denoted as to action consuming time, be also that origination action in above-described embodiment is also action consuming time.
Just obtain the consuming time instruction corresponding with this instruction and this instruction consuming time is processed after the user sends the origination action of instruction action, rather than just start to process after obtaining complete instruction action, in the request process of whole web data, ignore the middle action of the instruction action that the user sends or the time of tenth skill, shorten widely the user and asked and obtained the time of web data, thereby increased user's experience.
In the above embodiment of the present invention, the step of obtaining the consuming time instruction corresponding with origination action can comprise: read all default consuming time instruction and the matching degree value corresponding with origination action from presetting database, the value of the matching degree that wherein, the matching degree value is origination action and each default instruction consuming time; Read default instruction consuming time according to the size of matching degree value, using the instruction default consuming time that reads as instruction consuming time.
Particularly, can default instruction consuming time be sorted and be obtained default instruction sequence consuming time according to the size of matching degree value, the instruction default consuming time of then from default instruction sequence consuming time, reading successively the number of predetermined threshold value, using the instruction default consuming time that reads as instruction consuming time.
More specifically, can the size according to the matching degree value sort and obtain default instruction sequence consuming time default instruction consuming time by order module, the instruction default consuming time that then also will read in the instruction default consuming time of using the second read module to read successively the number of predetermined threshold value from default instruction sequence consuming time be as instruction consuming time.
In the above embodiment of the present invention, the second read module can be directly reads instruction consuming time according to the size of matching degree value, can also be after order module be obtained default instruction sequence consuming time to instruction sequence default consuming time, the instruction default consuming time of reading the number of predetermined threshold value successively from this default instruction sequence consuming time.Read the instruction consuming time of the number of predetermined threshold value and can obtain more rapidly instruction consuming time from default instruction sequence consuming time, thereby can save the more time, thus represent to time of user's request results more early, the user experiences better.
Wherein, incidence relation in presetting database between in store default instruction and instruction action consuming time, this incidence relation is in advance to various time-consuming operations, instruction consuming time and instruction action (as: add bookmark by link, replication link, the operational motion such as retreat) carry out the incidence relation that data statistics obtains, when obtaining above-mentioned incidence relation, can also be according to each independent action of outcome record of data statistics and the matching degree value of each instruction consuming time, as, press the instruction consuming time that action possibility correspondence is opened webpage, also the possibility correspondence copies the instruction consuming time of web page contents, in obtaining the process of above-mentioned incidence relation, record the matching degree value of each action consuming time and each instruction consuming time simultaneously.Each instruction action in this embodiment can comprise a plurality of actions consuming time, instructions consuming time can corresponding be a plurality ofly preset in each action consuming time, but only have a matching degree value between each action consuming time and each default instruction consuming time, this matching degree value has reflected action consuming time and the matching degree of presetting instruction consuming time; Can certainly directly record instruction default consuming time corresponding to each action consuming time, whether belong to which instruction action and need not manage this action consuming time, adopt this recording method, when obtaining the default consuming time instruction corresponding with origination action, can by instruction, not move and directly search and can shorten the time of searching, thereby shortened the time of obtaining instruction consuming time, thereby can shorten further the request time of web data.
Particularly, in above-mentioned data statistics process, the situation that likely there will be the corresponding a plurality of instructions consuming time of an origination action, in the situation that the corresponding a plurality of instructions consuming time of origination action, when reading the default consuming time instruction corresponding with origination action from presetting database, at first obtain all default instruction consuming time and the matching degree value thereof corresponding with this origination action, then the size sequence according to the matching degree value by all instructions default consuming time, obtain default instruction sequence consuming time, preferably read and the instruction default consuming time of this origination action matching degree value maximum (also instruction default consuming time) the highest with the origination action matching degree, in the above-described embodiments, if the instruction sequence default consuming time from big to small instruction sequence default consuming time obtained according to the matching degree value, read first the default instruction consuming time in this default instruction sequence consuming time, also can read successively in order the instruction consuming time of the number of predetermined threshold value from this instruction sequence consuming time.Wherein, above-mentioned predetermined threshold value can be 2, it is separately each action setting that this predetermined threshold value can be distinguished, also a predetermined threshold value can be set to all actions, above-mentioned predetermined threshold value can also be to arrange according to user's needs, adopts above-described embodiment, action that can be different according to attribute reads the instruction consuming time of varying number, thereby can meet user's multiple demand or multiple different processing speed, thereby improve the processing speed of system, improve user's experience.Wherein, the different action of attribute comprises: the action that the action that the action that frequency of utilization is different, the quantity of corresponding instruction consuming time are different or user have different demands.
In the above embodiment of the present invention, read the instruction consuming time of the number of predetermined threshold value, can be before the user inputs the instruction action fully, instruction consuming time with regard to the number of advanced processing predetermined threshold value, because the origination action according to the user is carried out anticipation to its behavior and may be had certain error, in embodiment as shown in Figure 4, can to the follow-up action consuming time of sending of user, confirm further to step S210 by execution step S208, if only read and process the instruction consuming time that the matching degree value is the highest, once judge (confirming that the instruction consuming time that the user sends is not the instruction consuming time of anticipation) by accident, all advanced processing all will be without any practical significance, if and advanced processing the instruction consuming time of number of predetermined threshold value, the very difficult erroneous judgement by accident,, after confirming the instruction consuming time read, can show request results to the user soon.Can still can respond soon user's request in the situation that occur that the anticipation instruction is wrong by the above embodiment of the present invention, show request results to the user rapidly.
Particularly, user's right-click menu is opened webpage except new window, open outside webpage on backstage, generally in addition link is added to bookmark, replication link, the time-consuming operation such as retreat, when setting up presetting database, by the instruction to the user, move, the data statistics of time-consuming operation can draw " new window is opened webpage " and " webpage is opened on backstage " be the user high frequencies of operation (two kinds of instructions consuming time account for greatly all origination action be press the corresponding instruction consuming time of action 50%), when setting up presetting database, use instruction consuming time corresponding to matching degree value judgement origination action can well guarantee the final hit rate of guess, open acceleration effect to guarantee higher hit rate and good webpage.
For example, instruction consuming time corresponding with pressing action in presetting database can comprise: the instruction consuming time of browsing page (matching degree value 50), amplify the instruction consuming time (matching degree value 15) of webpage, dwindle the instruction consuming time (matching degree value 2) of webpage, close the instruction (matching degree value 10) of webpage and the instruction consuming time (matching degree value 23) of mobile webpage, the instruction sequence consuming time that sequence obtains can be: the instruction consuming time of browsing page (matching degree value 50), the instruction consuming time of mobile webpage (matching degree value 23), amplify the instruction consuming time (matching degree value 15) of webpage, close the instruction (matching degree value 10) of webpage, dwindle the instruction consuming time (matching degree value 2) of webpage.When reading instruction consuming time, can only read first the instruction consuming time in this instruction sequence consuming time, be the instruction consuming time of browsing page, also can read the consuming time instruction of sequence at front two, i.e. the instruction consuming time of the instruction consuming time of browsing page and mobile webpage.
Adopt the above embodiment of the present invention, initial behavior by the anticipation user, the advanced processing time-consuming operation, can effectively reduce period of reservation of number, such as: get the user and chaining the action of pressing, according to this origination action of user (in the present embodiment for pressing action) anticipation user's purpose, be to open to link corresponding webpage, also according to the user to press the instruction consuming time that reads from presetting database of action be the instruction of browsing page, then send in advance network request according to this instruction consuming time, probably can allow the user wait for less the time of 100 milliseconds of left and right.Again such as, the user opens right-click menu chaining, read instruction consuming time by incidence relation and the matching degree value of preserving in presetting database, the instruction consuming time that now anticipation user's behavior obtains is that new window is opened webpage, send in advance network request, probably can reduce the stand-by period of 2000 milliseconds of left and right of user, give the sensation that user's webpage is a bit just opened, improve greatly user's experience.
Instruction action in the above embodiment of the present invention normally is comprised of two to more actions consuming time, follow former and chain the action of unclamping of unclamping (release), these two actions consuming time chaining the action of pressing (press) as: the instruction consuming time of " clicking link " is divided into.The everything that can trigger instruction consuming time is called " the instruction action " of this instruction, and instruction action can be by an origination action (action started), zero to a plurality of middle action, and a tenth skill forms.Such as the origination action of the instruction action of: " clickthrough (opening webpage) " this instruction consuming time in the action of pressing of chaining, tenth skill for former chain unclamp action.
According to the abovementioned embodiments of the present invention, after sending the network request corresponding with instruction consuming time, method can comprise: receive the network data of obtaining according to network request; Network data is carried out resolution data and played up Web Page Processing, to obtain, play up data; And use and play up the data display request results.
Particularly, the processing of network data being carried out to resolution data obtains web data, after web data is played up to Web Page Processing, can obtain the above-mentioned data of playing up, and then uses and plays up the data display request results.In the request of browsing page, use and play up the data display request results, be the webpage that uses the link correspondence of playing up data display user click.
For example, the instruction consuming time got in the above-described embodiments is that clickthrough is opened webpage, the network request sent can be: load request corresponding to link, further, the request results that this network request is corresponding is: to user's displayed web page, also use the webpage of the link correspondence of playing up the data display click.And for example, the instruction consuming time got in the above-described embodiments is the convergent-divergent current web page, the network request sent can be: the convergent-divergent multiple that current web page is inputted according to the user carries out the convergent-divergent processing, the request results that this network request is corresponding is: show the Webpage after convergent-divergent to the user, also use play up data display by current page the webpage after according to the convergent-divergent multiple of user's input.
According to the abovementioned embodiments of the present invention, the step of obtaining the consuming time instruction corresponding with origination action can comprise: detect in presetting database whether have origination action; And in the situation that there is origination action in presetting database, read instruction consuming time; In the situation that there is not origination action in presetting database, finish the request to web data.
Particularly, in presetting database, exist in the situation of origination action, confirm to have the anticipation instruction in presetting database, now can advanced processing instruction consuming time, such as, get the instruction consuming time of " clickthrough (opening webpage) ", use the chained address of pressing the action place, send network request, this network request points to webpage corresponding to this chained address, after receiving the network data that network request is corresponding, can start to carry out resolution data and play up the time-consuming operation such as webpage, play up data to obtain, and use and play up the data display request results.
Can finish in time the request to web data by above-described embodiment, the request of end to web data, unnecessary thread in like this can ends with system, thereby can not affect follow-up data handling procedure, the processing speed of quickening system, the wasting of resources of minimizing system, make the follow-up speed of opening webpage of user faster.
Wherein, the user sends origination action, system judgement user carries out certain instruction, and the instruction consuming time that system reads from presetting database is the operation that system anticipation user carries out by this origination action, and the instruction consuming time that the system anticipation is obtained is referred to as the anticipation instruction.
In the above embodiment of the present invention, use the step of playing up the data display request results to comprise: continue to receive user's action consuming time, wherein, each action that triggers instruction consuming time is action consuming time; Judge whether action consuming time belongs to the instruction action; In the situation that action consuming time belongs to the instruction action, judge whether action consuming time is the tenth skill of instruction action; In the situation that action consuming time is tenth skill, uses and play up the data display request results; In the situation that action consuming time is not tenth skill, return to the step of carrying out the action consuming time that continues the reception user; And, in the situation that action consuming time does not belong to the instruction action, cancel the processing that network data is carried out resolution data and played up webpage.
Wherein, individual part in above-described embodiment in the instruction of each instruction consuming time action all can be called action consuming time, origination action in the embodiment shown in Fig. 1 and Fig. 3 is also action consuming time, action consuming time can be each the action in instruction action, and origination action, middle action or tenth skill are all a kind of of action consuming time, origination action, the generation of middle action or tenth skill all can represent a kind of generation of specific behavior, and action consuming time only means to trigger an action of instruction consuming time, this action can be origination action, middle action or tenth skill.
Because the judgement to the instruction consuming time of user's origination action is to be based upon on certain data basis, although in advance the instruction consuming time in presetting database has been done the support of the detection of matching degree value, but, in order to improve the hit rate of anticipation, system can judge whether whether the follow-up action consuming time of sending of user belong to same instruction consuming time with the instruction consuming time read.Particularly, after obtaining and playing up data, continue to receive user's action consuming time, judge whether action consuming time belongs to an action in the instruction action of corresponding same instruction consuming time, if words, continue to judge whether this action consuming time is last action in this instruction action, also whether i.e. this action consuming time is the tenth skill of this instruction action, if this action consuming time is the tenth skill of this instruction action, it is correct confirming to hit the instruction consuming time that presetting database reads, and confirms that the anticipation to user's origination action is correct.By the above embodiment of the present invention, can reduce the wasting of resources, response user's web data request speed is fast.
More specifically, if an instruction consuming time is normally not complete, inserted again the another one instruction, first instruction can be canceled, also in the above-described embodiments, if action consuming time does not belong to instruction action, confirm that the user does not normally complete this instruction action, for the processing procedure of the network request of instruction consuming time, can cancel.Such as, the user presses chaining, triggered " opening link " this instruction consuming time, do not unclamp finger (not completing " opening link " this instruction consuming time), displacement has occurred in finger in link (or webpage), again triggered " dragging webpage " operation (the PC browser is for having triggered " new window is opened webpage " time-consuming operation), first instruction consuming time " is opened link " and should be cancelled.
In the above-described embodiments, when triggering certain instruction consuming time, and user's behavior does not cause instruction conflict, when meeting " tenth skill " of this instruction consuming time, be also that the follow-up action consuming time got is the tenth skill of instruction action, confirm that this instruction moved, can then respond subsequent operation corresponding to instruction consuming time, such as " clickthrough " this instruction has completed, can use and play up data and start displayed web page, more specifically, if do not obtain complete network data, also can load progress by display web page, adopt above-described embodiment, can be so that the user obtains the progress of web data request intuitively, releive user's mood, strengthening the user experiences.
Particularly, as shown in Figure 4, above-described embodiment can be realized as follows:
Step S202: receive the trigger action that the user sends at program interface.
Step S204: judge whether trigger action is the origination action of instruction action.
Wherein, particularly, before execution step S102, can also perform step S202 and step S204; If trigger action is the origination action of instruction action, confirm to receive user's origination action, and execution step S206; If trigger action is not the origination action of instruction action, finish this flow process.
Step S206: the time-consuming operation of processing the anticipation instruction corresponding with origination action.
Particularly, in the above-described embodiments, read the consuming time instruction corresponding with origination action from presetting database, using this instruction consuming time as the anticipation instruction, and the time-consuming operation of this anticipation instruction of advanced processing, as resolution data, play up webpage etc.
Step S208: continue to receive the action consuming time that the user sends at program interface.
Step S210: judge whether action consuming time belongs to former instruction consuming time.
Particularly, the first attribute data that can be by origination action and the second attribute data of action consuming time carry out matching treatment and judge whether action consuming time belongs to former instruction consuming time.More specifically, in the situation that the first attribute data of origination action is consistent with location parameter, link data in the second attribute data, confirm that action consuming time belongs to former instruction consuming time.Wherein, in the situation that action consuming time belongs to former instruction consuming time, execution step S212, in the situation that action consuming time does not belong to former instruction consuming time, execution step S216.
Step S212: judge whether action consuming time is the tenth skill of former instruction consuming time.
Particularly, judge whether action consuming time is the tenth skill of instruction action corresponding to former instruction consuming time.This can realize by looking into the instruction action schedule, and this instruction action schedule can be the table of preserving according to the incidence relation of user's action and instruction consuming time in advance, and this table can be stored in presetting database.In the situation that the tenth skill that action consuming time is former instruction consuming time, execution step S214, in the situation that action consuming time is not the tenth skill of former instruction consuming time, return to execution step S208.
Step S214: confirm to hit instruction consuming time, respond subsequent operation corresponding to instruction consuming time.
Wherein, particularly, it is correct confirming to hit instruction consuming time and be the instruction consuming time that anticipation user's behavior obtains, now owing to having completed time-consuming operation (as resolution data, play up the operations such as webpage), can directly respond subsequent operation corresponding to instruction consuming time, for example, can use and play up the data display webpage.
Step S216: cancel the time-consuming operation of processing.Particularly, because the anticipation for user behavior is not accurate enough, now can cancel the operation of making according to network request, to reduce the consumption of resource.
According to the abovementioned embodiments of the present invention, judge that whether action consuming time is that the step of the tenth skill of instruction action can comprise: in the time of unclamping the time and press intercropping poor, to obtain the instruction time; Whether the detection instruction time meets the Preset Time scope; In the situation that the instruction time meets the Preset Time scope, determine that action consuming time is tenth skill; And, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is not tenth skill.
According to the abovementioned embodiments of the present invention, judge that the step whether action consuming time belongs to instruction action can comprise: obtain the first property parameters of origination action and the second property parameters of tenth skill; Detect primary importance and whether meet default similar scope to the similarity of the second place; In the situation that similarity meets default similar scope, detect the first chained address whether consistent with the second chained address; And, in the situation that the first chained address is consistent with the second chained address, determine that action consuming time belongs to the instruction action; In similarity, do not meet in default similar scope and the inconsistent situation in the first chained address and the second chained address, stop sending network request, wherein, origination action comprises presses action, the first property parameters comprises the primary importance pressing action and occur, press the first chained address that action points to and press pressing the time of action, tenth skill comprises and unclamps action, and the second property parameters comprises: unclamp the second place that action occurs, unclamp the second chained address that action points to and unclamp unclamping the time of action.
According to the abovementioned embodiments of the present invention, judge that whether action consuming time is that the step of the tenth skill of instruction action comprises: in the time of unclamping the time and press intercropping poor, to obtain the instruction time; Whether the detection instruction time meets the Preset Time scope; And, in the situation that the instruction time meets the Preset Time scope, determine that action consuming time is tenth skill.
Wherein, the instruction time in above-described embodiment is the time of unclamping and the mistiming of pressing the time, and this mistiming can be used for meaning that the user inputs the time of this instruction action.Preferably, the Preset Time scope can be 0.5 second.
Whether in the above embodiment of the present invention, the step of obtaining the second property parameters of tenth skill: detecting action consuming time is zoom action, scroll actions or refresh activity if comprising; In the situation that action consuming time is not zoom action, scroll actions and refresh activity, obtain the second property parameters; In the situation that action consuming time is zoom action, scroll actions and refresh activity, stop sending network request.
Preferably, the step of obtaining the consuming time instruction corresponding with origination action can comprise: detect on primary importance whether have effective the first chained address; And in the situation that there is effective the first chained address on primary importance, read the instruction consuming time that all there is corresponding relation with primary importance and the first chained address from presetting database; In the situation that do not there is effective the first chained address on primary importance, stop sending network request.
For example, in web page interlinkage, press, this action is the origination action of " clickthrough (opening webpage) " this instruction consuming time, and the anticipation user will click web page interlinkage and open webpage.Particularly, in the above embodiment of the present invention, when the user sends certain action (being the origination action in above-described embodiment), system can be obtained the consuming time instruction corresponding with this origination action, such as, clickthrough is opened webpage " origination action ": " left button " (link has very many types in " generic web page link ", such as Javascript, email, telephone etc., and be not all to open webpage) upper " pressing ", to record the first property parameters of pressing action simultaneously, as first chained address of pressing the action correspondence, the primary importance of pressing, a series of data such as the time of pressing of pressing, corresponding " tenth skill " is to unclamp in the position of pressing, and link do not change, and the time that distance is pressed is less than 0.5 second.System can, the instruction action together with " opening webpage " this operative association, when matching " left button links in generic web page ", confirm that the user wants " opening webpage ".
As shown in Figure 5, above-described embodiment can be realized as follows:
Step S302: the user presses on webpage.Also, the user sends the origination action of instruction action on webpage.Particularly, the user is in primary importance by the first chained address, and the duration of pressing the action generation is the time of pressing.Particularly, the time of pressing that the user presses action meets first and presses in the situation of time range, system anticipation user clicks web page interlinkage possibly, after judgement user click web page interlinkage, whether the judgement time of pressing is greater than first is pressed time threshold, if the time of pressing is greater than first and presses time threshold, the purpose of anticipation user clicks on links is: eject right-click menu, and new window is opened webpage.Wherein, first to press time range can be 0 to 0.1 second, and first to press time threshold can be 0.5 second.
Step S304: on the primary importance that judgement is pressed, whether chained address is effectively arranged.
In the situation that effective chained address on primary importance, execution step S306; In the situation that there is no effective chained address on primary importance, execution step S320.
Step S306: obtain the consuming time instruction corresponding with chained address, and send network request.
Step S308: detect the instruction the action whether user has sent non-clickthrough.Particularly, the instruction of non-clickthrough action comprises: zoom action, scroll actions, refresh activity etc.
Particularly, in the situation that the user has sent the instruction action of non-clickthrough, execution step S320; In the situation that the user does not send the instruction action of non-clickthrough, execution step S310.
Step S310: the user sends tenth skill.Particularly, the user detected and send tenth skill, for example, unclamp the action of unclamping of finger.
Step S312: whether the second place that detects tenth skill meets default similar scope to the similarity of the primary importance of origination action.Particularly, the similarity that detects primary importance and the second place can mean by the coordinate difference of calculating the second place and primary importance both similarities, in the situation that this similarity meets default similar scope, the coordinate difference that means both meets default similar scope, should default similar scope be preferably [0.1 ,+0.1].If it is basically identical with the position of pressing that this similarity meets the position that default similar scope indicates that the user unclamps.In the situation that the second place meets default similar scope to the similarity of primary importance, execution step S314; In the situation that the second place does not meet default similar scope to the similarity of primary importance, execution step S320.
Step S314: whether the first chained address that judges origination action is consistent with the second chained address of tenth skill.
Wherein, in the situation that the first chained address is consistent with the second chained address, execution step S316; In the inconsistent situation in the first chained address and the second chained address, execution step S320.
Step S316: wait for network data.
Step S318: show request results.
Step S320: stop sending network request.
Adopt the method in above-described embodiment, press and will eject right-click menu from the user, about 1 second consuming time, play and eject the right-click menu animation, 0.2 second consuming time, " new window is opened " of user's click right menu, about 1 second, can save and approach 2 seconds (do not need for 2 seconds if open this webpage itself, the time of saving is the time of opening corresponding webpage).
It should be noted that, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order be different from herein.
From above description, can find out, the present invention has realized following technique effect: adopt the above embodiment of the present invention, just from database, obtain the consuming time instruction corresponding with this origination action after the origination action that gets the instruction action, and send the network request corresponding with instruction consuming time, just start anticipation user's behavior in the origination action that gets the user, anticipation obtains instruction consuming time, send in advance and process network request, thereby can be in optimized network speed not, webpage is resolved under the prerequisite of rendering speed, by the anticipation user behavior, send in advance network request, the advanced processing time-consuming operation, open webpage speed in the solution prior art slow, inefficient problem, reach the effect of rapidly and efficiently opening webpage.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, perhaps they are made into respectively to each integrated circuit modules, perhaps a plurality of modules in them or step being made into to the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the requesting method of a web data, is characterized in that, comprising:
Receive the origination action of user's instruction action;
Obtain the consuming time instruction corresponding with described origination action; And
Send the network request corresponding with described instruction consuming time,
Wherein, described instruction consuming time is for triggering the instruction of time-consuming operation, and described instruction action comprises the one or more actions that trigger described instruction consuming time.
2. requesting method according to claim 1, is characterized in that, the described step of obtaining the consuming time instruction corresponding with described origination action comprises:
Read the default consuming time instruction corresponding with described origination action and matching degree value from presetting database, wherein, the value of the matching degree that described matching degree value is described origination action and each described default instruction consuming time;
Read described default instruction consuming time according to the size of described matching degree value, using the described default instruction consuming time that reads as described instruction consuming time.
3. requesting method according to claim 1 and 2, is characterized in that, after the described step of sending the network request corresponding with described instruction consuming time, described method comprises:
The network data that reception is obtained according to described network request;
Described network data is carried out resolution data and played up Web Page Processing, to obtain, play up data; And
Use the described data display request results of playing up.
4. requesting method according to claim 3, is characterized in that, described instruction consuming time comprises the instruction of browsing page, and the described request result comprises the displaying of webpage, and the step that the data display request results is played up in described use comprises:
Continue to receive described user's action consuming time, wherein, described action consuming time is for triggering the action of described instruction consuming time;
Judge whether described action consuming time belongs to described instruction action;
In the situation that described action consuming time belongs to described instruction action, judge whether described action consuming time is the tenth skill of described instruction action;
In the situation that described action consuming time is described tenth skill, use the described described webpage of data display of playing up;
In the situation that described action consuming time is not described tenth skill, return to the step of carrying out the action consuming time that continues the described user of reception; And
In the situation that described action consuming time does not belong to described instruction action, cancel the processing that described network data is carried out resolution data and played up webpage.
5. requesting method according to claim 4, is characterized in that,
The described step that judges whether action consuming time belongs to described instruction action comprises: obtain the first property parameters of described origination action and the second property parameters of described tenth skill; Detect primary importance and whether meet default similar scope to the similarity of the second place; In the situation that described similarity meets described default similar scope, detect the first chained address whether consistent with the second chained address; And, in the situation that described the first chained address is consistent with described the second chained address, determine that described action consuming time belongs to described instruction action; Do not meet in described default similar scope and described the first chained address and described the second inconsistent situation in chained address in described similarity, stop sending described network request,
Wherein, described origination action comprises presses action, described the first property parameters comprises describedly to be pressed described primary importance that action occurs, describedly presses described the first chained address that action points to and describedly press pressing the time of action, described tenth skill comprises and unclamps action, and described the second property parameters comprises: describedly unclamp the described second place that action occurs, describedly unclamp described the second chained address that action points to and describedly unclamp unclamping the time of action;
Describedly judge that whether action consuming time is that the step of the tenth skill of described instruction action comprises: by described while unclamping time and described pressing intercropping poor, to obtain the instruction time; Whether detect the described instruction time meets the Preset Time scope; In the situation that the described instruction time meets described Preset Time scope, determine that described action consuming time is described tenth skill; And, in the situation that the described instruction time meets described Preset Time scope, determine that described action consuming time is not described tenth skill.
6. the request unit of a web data, is characterized in that, comprising:
The first receiver module, the origination action of moving for the instruction that receives the user;
The first processing module, for obtaining the consuming time instruction corresponding with described origination action; And
The second processing module, for sending the network request corresponding with described instruction consuming time,
Wherein, described instruction consuming time is for triggering the instruction of time-consuming operation, and described instruction action comprises the one or more actions that trigger described instruction consuming time.
7. request unit according to claim 6, is characterized in that, described the first processing module comprises:
The first read module, for read all default consuming time instruction and the matching degree value corresponding with described origination action from presetting database, wherein, the value of the matching degree that described matching degree value is described origination action and each described default instruction consuming time;
The second read module, read described default instruction consuming time for the size according to described matching degree value, using the described default instruction consuming time that reads as described instruction consuming time.
8. according to the described request unit of claim 6 or 7, it is characterized in that, described device comprises:
The second receiver module, for receiving the network data of obtaining according to described network request;
The 3rd processing module, for described network data being carried out to resolution data and playing up Web Page Processing, play up data to obtain; And
Display module, for being used the described data display request results of playing up.
9. request unit according to claim 8, is characterized in that, described instruction consuming time comprises the instruction of browsing page, and the described request result comprises the displaying of webpage, and described display module comprises:
The 3rd receiver module, for continuing to receive described user's action consuming time, wherein, described action consuming time is for triggering the action of described instruction consuming time;
Whether the first judge module, belong to described instruction action for judging described action consuming time;
The second judge module, in the situation that described action consuming time belongs to described instruction action, judge whether described action consuming time is the tenth skill of described instruction action;
The first sub-display module, in the situation that described action consuming time is described tenth skill, used the described described webpage of data display of playing up;
Return to execution module, in the situation that described action consuming time is not described tenth skill, return to the step of carrying out the action consuming time that continues the described user of reception; And
Cancel module, in the situation that described action consuming time does not belong to described instruction action, cancel the processing that described network data is carried out resolution data and played up webpage.
10. request unit according to claim 9, is characterized in that,
Described the first judge module comprises: the second acquisition module, for the first property parameters of obtaining described origination action and the second property parameters of described tenth skill; Whether the second detection module, meet default similar scope for detection of primary importance and the similarity of the second place; The 3rd detection module, in the situation that described similarity meets default similar scope, detect the first chained address whether consistent with the second chained address; The first sub-processing module, in the situation that described the first chained address is consistent with described the second chained address, determine that described action consuming time belongs to described instruction action; And the second sub-processing module, for not meeting in described similarity in described default similar scope and described the first chained address and described the second inconsistent situation in chained address, stop sending described network request,
Wherein, described origination action comprises presses action, described the first property parameters comprises describedly to be pressed described primary importance that action occurs, describedly presses described the first chained address that action points to and describedly press pressing the time of action, described tenth skill comprises and unclamps action, and described the second property parameters comprises: describedly unclamp the described second place that action occurs, describedly unclamp described the second chained address that action points to and describedly unclamp unclamping the time of action;
Described the second judge module comprises: computing module, for by described while unclamping time and described pressing intercropping poor, to obtain the instruction time; Whether the 4th detection module, meet the Preset Time scope for detection of the described instruction time; And the second sub-processing module, in the situation that the described instruction time meets described Preset Time scope, determine that described action consuming time is described tenth skill; And, in the situation that the described instruction time meets described Preset Time scope, determine that described action consuming time is not described tenth skill.
CN201310391142.0A 2013-08-30 2013-08-30 The requesting method and device of web data Active CN103455353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310391142.0A CN103455353B (en) 2013-08-30 2013-08-30 The requesting method and device of web data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310391142.0A CN103455353B (en) 2013-08-30 2013-08-30 The requesting method and device of web data

Publications (2)

Publication Number Publication Date
CN103455353A true CN103455353A (en) 2013-12-18
CN103455353B CN103455353B (en) 2017-11-14

Family

ID=49737760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310391142.0A Active CN103455353B (en) 2013-08-30 2013-08-30 The requesting method and device of web data

Country Status (1)

Country Link
CN (1) CN103455353B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN106502902A (en) * 2016-10-25 2017-03-15 中国工商银行股份有限公司 Web page operational efficiency monitoring method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080070953A (en) * 2007-01-29 2008-08-01 삼성전자주식회사 Method for page preload using control flow and system thereof
WO2009058480A1 (en) * 2007-10-31 2009-05-07 Microsoft Corporation Predicting and using search engine switching behavior
CN101833390A (en) * 2009-03-10 2010-09-15 阿尔派株式会社 Electronic equipment and input processing method thereof
CN101887362A (en) * 2009-05-13 2010-11-17 华为技术有限公司 Widget-based prefetching method and widget prefetching equipment
US20130073509A1 (en) * 2011-09-15 2013-03-21 Google Inc. Predicting user navigation events
CN103246526A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Client pre-loading method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080070953A (en) * 2007-01-29 2008-08-01 삼성전자주식회사 Method for page preload using control flow and system thereof
WO2009058480A1 (en) * 2007-10-31 2009-05-07 Microsoft Corporation Predicting and using search engine switching behavior
CN101833390A (en) * 2009-03-10 2010-09-15 阿尔派株式会社 Electronic equipment and input processing method thereof
CN101887362A (en) * 2009-05-13 2010-11-17 华为技术有限公司 Widget-based prefetching method and widget prefetching equipment
US20130073509A1 (en) * 2011-09-15 2013-03-21 Google Inc. Predicting user navigation events
CN103246526A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Client pre-loading method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN106502902A (en) * 2016-10-25 2017-03-15 中国工商银行股份有限公司 Web page operational efficiency monitoring method and device
CN106502902B (en) * 2016-10-25 2019-03-22 中国工商银行股份有限公司 Web page operational efficiency monitoring method and device

Also Published As

Publication number Publication date
CN103455353B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
EP3036662B1 (en) Generating cache query requests
CN102468989B (en) The method and system of network data
KR20130100320A (en) Method for displaying message and message display apparatus
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
WO2020087386A1 (en) Content recommendation method and device, mobile terminal, and server
JP6153919B2 (en) Method and apparatus for processing input information
CN104699704A (en) Content pushing and receiving method, device and system
WO2014154033A1 (en) Method and apparatus for extracting web page content
CN106909281A (en) One kind application inner boundary changing method and device
CN108665335B (en) Method for processing shopping cart data of shopping website
CN104063484A (en) Webpage presenting method and device and electronic device
TW201821961A (en) Method and device for processing user operation
CN112787907A (en) Display method and device and electronic equipment
US10140265B2 (en) Apparatuses and methods for phone number processing
CN107656933A (en) A kind of voice broadcast method and device
CN106375814A (en) Input method and system
US20180210867A1 (en) System and method for displaying online comments
CN110928900B (en) Multi-table data query method, device, terminal and computer storage medium
CN111580905A (en) Negative one-screen card management method, terminal and computer readable storage medium
CN103455353A (en) Method and device for requesting webpage data
CN103034426B (en) A kind of terminal and contact person's searching method thereof
CN107454950A (en) The method and touch controller of detected touch point
CN103645829A (en) Character deletion method and portable terminal utilizing same
CN104750401A (en) Touch method and related device as well as terminal equipment
CN109814857B (en) Method and device for customizing primitive linkage

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200628

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 2, 16, 301 rooms, 510665 Yun Yun Road, Tianhe District, Guangdong, Guangzhou

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.