CN103455353B - The requesting method and device of web data - Google Patents
The requesting method and device of web data Download PDFInfo
- Publication number
- CN103455353B CN103455353B CN201310391142.0A CN201310391142A CN103455353B CN 103455353 B CN103455353 B CN 103455353B CN 201310391142 A CN201310391142 A CN 201310391142A CN 103455353 B CN103455353 B CN 103455353B
- Authority
- CN
- China
- Prior art keywords
- time
- action
- consuming
- instruction
- module
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of requesting method of web data and device.Wherein, this method includes:Receive the origination action of the instruction action of user;Obtain time-consuming instruction corresponding with origination action;And send with taking the corresponding network request of instruction, wherein, instruction of the instruction for triggering time-consuming operation is taken, instruction action includes one or more the acting of the time-consuming instruction of triggering.By the present invention, solve the problems, such as that opening webpage speed is slow in the prior art, efficiency is low, reach the effect for rapidly and efficiently opening webpage.
Description
Technical field
The present invention relates to mobile communication technology field, in particular to the requesting method and device of a kind of web data.
Background technology
Open in the prior art after webpage generally requires user clicks on links, system through access network, parsing data,
The displaying that multiple complicated time-consuming process such as webpage complete webpage is rendered, in order to accelerate webpage opening speed, conventional optimization is
Accelerate domain name resolution process, using while receiving network data, while parse data, side render webpage technology accelerate webpage open it is fast
Degree, but it is little to accelerate domain name mapping to influence the speed for opening webpage, namely optimizing field name parsing also can not quickly to
Family displayed web page, certainly, traditional scheme have also done many optimization, but because the speed for opening webpage depends on net
Network transmits the speed of data, and network has delay, although parsing from many aspects or render optimizes, can not and
When opening webpage, can not effectively accelerate open webpage speed.
For opening the problem of webpage speed is slow, efficiency is low in the prior art, effective solution is not yet proposed at present.
The content of the invention
The problem of webpage speed is slow, efficiency is low is opened for correlation technique, effective solution is not yet proposed at present, is
This, it is a primary object of the present invention to provide the requesting method and device of a kind of web data, to solve the above problems.
To achieve these goals, according to an aspect of the invention, there is provided a kind of requesting method of web data, is somebody's turn to do
Method includes:Receive the origination action of the instruction action of user;Obtain time-consuming instruction corresponding with origination action;And send with
Network request corresponding to time-consuming instruction, wherein, instruction of the instruction for triggering time-consuming operation is taken, it is time-consuming that instruction action includes triggering
One or more actions of instruction.
Further, obtaining the step of time-consuming instruction corresponding with origination action includes:From presetting database read with
Time-consuming instruction and matching angle value is preset corresponding to origination action, wherein, it is that origination action refers to each default take to match angle value
The value of the matching degree of order;Size according to matching angle value reads default time-consuming instruction, using the default time-consuming instruction read as
Time-consuming instruction.
Further, after the step of sending with taking instruction corresponding network request, method includes:Receive according to net
The network data of network acquisition request;Network data is carried out parsing data and renders Web Page Processing, to obtain rendering data;And
Request results are shown using rendering data.
Further, taking instruction includes browsing the instruction of webpage, and request results include the displaying of webpage, using rendering number
Include according to the step of displaying request results:The time-consuming action of user is continued to, wherein, action is taken as the time-consuming instruction of triggering
Action;Judge whether time-consuming action belongs to instruction action;In the case where time-consuming action belongs to instruction action, time-consuming action is judged
Whether be instruction action tenth skill;In the case where time-consuming action is tenth skill, rendering data displayed web page is used;
In the case that time-consuming action is not tenth skill, returns and perform the step of continuing to the time-consuming action of user;And time-consuming
In the case that action is not belonging to instruction action, cancels and network data is carried out parsing data and renders the processing of webpage.
Further, judge that the step of whether time-consuming action belongs to instruction action includes:Obtain the first category of origination action
Second property parameters of property parameter and tenth skill;It is default similar whether detection first position meets to the similarity of the second place
Scope;In the case where similarity meets default similar range, detect the first chained address and whether the second chained address is consistent;
And in the first chained address it is consistent with the second chained address in the case of, it is determined that time-consuming action belongs to instruction action;Similar
Degree do not meet default similar range and the first chained address and the second chained address it is inconsistent in the case of, stopping sends network please
Ask, wherein, origination action includes pressing action, and the first property parameters include pressing the first position of action generation, press action
Point to the first chained address and press pressing the time for action, tenth skill include release action, the second property parameters bag
Include:The release time of the second place, the second chained address that release action is pointed to and release action that release action occurs;Sentence
The step of whether disconnected time-consuming action is the tenth skill of instruction action includes:Will unclamp the time and press the time make it is poor, with acquisition
Instruction time;Whether the detection instruction time meets preset time range;In the case where the instruction time meets preset time range,
It is determined that time-consuming action is tenth skill;And in the case where the instruction time meets preset time range, it is determined that time-consuming action is not
It is tenth skill.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of request unit of web data, should
Device includes:First receiving module, the origination action of the instruction action for receiving user;First processing module, for obtaining
Time-consuming instruction corresponding with origination action;And Second processing module, for sending with taking the corresponding network request of instruction, its
In, instruction of the instruction for triggering time-consuming operation is taken, instruction action includes one or more actions of the time-consuming instruction of triggering.
Further, first processing module includes:First read module, for read from presetting database and initiating
All default time-consuming instructions and matching angle value corresponding to work, wherein, matching angle value is origination action and each default time-consuming instruction
Matching degree value;Second read module, it is pre- by what is read for reading default time-consuming instruction according to the size of matching angle value
If time-consuming instruction is as time-consuming instruction.
Further, device includes:Second receiving module, for receiving the network data obtained according to network request;The
Three processing modules, for carrying out parsing data to network data and rendering Web Page Processing, to obtain rendering data;And displaying mould
Block, for using rendering data displaying request results.
Further, the instruction that instruction includes browsing webpage is taken, request results include the displaying of webpage, display module bag
Include:3rd receiving module, for continuing to the time-consuming action of user, wherein, take action of the action for the time-consuming instruction of triggering;
First judge module, for judging whether time-consuming action belongs to instruction action;Second judge module, for belonging in time-consuming action
In the case of instruction action, judge time-consuming action whether be instruction action tenth skill;First sub- display module, for consuming
When action be tenth skill in the case of, use rendering data displayed web page;Execution module is returned to, for not being in time-consuming action
In the case of tenth skill, return and perform the step of continuing to the time-consuming action of user;And cancel module, for time-consuming
In the case that action is not belonging to instruction action, cancels and network data is carried out parsing data and renders the processing of webpage.
Further, the first judge module includes:Second acquisition module, for obtaining the first property parameters of origination action
With the second property parameters of tenth skill;Second detection module, for detect first position and the second place similarity whether
Meet default similar range;3rd detection module, in the case of meeting default similar range in similarity, detect the first chain
It is grounded location and whether the second chained address is consistent;First subprocessing module, in the first chained address and the second chained address
In the case of consistent, it is determined that time-consuming action belongs to instruction action;And the second subprocessing module, it is pre- for not met in similarity
In the case that if similar range and the first chained address and the second chained address are inconsistent, stopping sends network request, wherein, rise
Initiating is made to include pressing action, and the first property parameters include pressing the first position of action generation, press action is pointed to first
Chained address and pressing the time for action is pressed, tenth skill includes release action, and the second property parameters include:Release acts
The second chained address and the release time of release action that the second place of generation, release action are pointed to;Second judge module
Including:Computing module, it is poor with pressing time work for the time will to be unclamped, to obtain the instruction time;4th detection module, for examining
Survey whether the instruction time meets preset time range;And the second subprocessing module, for meeting preset time in the instruction time
In the case of scope, it is determined that time-consuming action is tenth skill;And in the case where the instruction time meets preset time range, really
Fixed time-consuming action is not tenth skill.
By the present invention, just obtained and the origination action from database after the origination action of instruction action is got
Corresponding time-consuming instruction, and send with taking the corresponding network request of instruction, begun in the origination action for getting user pre-
Sentence the behavior of user, anticipation obtains time-consuming instruction, sends in advance and handle network request, so as to not optimize network speed
On the premise of degree, web analysis rendering speed, by prejudging user behavior, network request, the time-consuming behaviour of advanced processing are sent in advance
Solve the problems, such as to open that webpage speed is slow, efficiency is low in the prior art, reach the effect for rapidly and efficiently opening webpage.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of the request unit of web data according to embodiments of the present invention;
Fig. 2 is the structural representation according to the request unit of the web data of embodiment illustrated in fig. 1;
Fig. 3 is the flow chart of the requesting method of web data according to embodiments of the present invention;
Fig. 4 is the flow chart according to the requesting method of the web data of embodiment illustrated in fig. 3;And
Fig. 5 is the flow chart according to the clickthrough requested webpage data method of embodiment illustrated in fig. 3.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is the structural representation of the request unit of web data according to embodiments of the present invention.As shown in figure 1, the dress
Putting to include:First receiving module 10, the origination action of the instruction action for receiving user;First processing module 30, use
Instructed in reading take corresponding with origination action from presetting database;And Second processing module 50, for sending and consuming
Network request corresponding to Shi Zhiling, wherein, the instruction that instruction is triggering time-consuming operation is taken, instruction action includes the time-consuming finger of triggering
One or more actions of order.
It is just logical after the first receiving module receives the origination action of instruction action using the above embodiment of the present invention
Cross first processing module and time-consuming instruction corresponding with the origination action is obtained from presetting database, and pass through Second processing module
Send the behavior for beginning to prejudge user in the origination action for getting user with taking the corresponding network request of instruction, anticipation
Time-consuming instruction is obtained, sends in advance and handles network request, so as to not optimize network speed, web analysis rendering speed
On the premise of, by prejudging user behavior, network request is sent in advance, and advanced processing time-consuming operation solves to open in the prior art
The problem of webpage speed is slow, efficiency is low, reach quick, the efficient effect for opening webpage.
Wherein, certain action of user can trigger specific operational order(Such as:Webpage clicking link, chaining bullet
Go out after right button menu to click on " opening link in backstage ", on a web browser using middle button of mouse clickthrough backstage open link,
Download interface and establish the combination of actions that downloading task etc. is formed by multiple action linkings manually), the specific of time-consuming operation can be triggered
Operational order be time-consuming instruction, time-consuming operation therein include accessing network, parse data, to render webpage etc. multiple complicated
Time-consuming process, the action that can trigger time-consuming instruction is denoted as instruction action in the above embodiment of the present invention, will be referred to
Each individually act in order action is denoted as time-consuming action, namely the origination action in above-described embodiment is also time-consuming action.
After user is received by the first receiving module and sends the origination action of instruction action, just pass through the first processing
Module obtains time-consuming instruction corresponding with the instruction and takes instruction to this using Second processing module and handles, and sends correspondingly
Networking request, rather than the just start to process after complete instruction action is obtained, in the request process of whole web data
In, ignore the middle action for the instruction action that user sends or the time of tenth skill, significantly shorten user's request simultaneously
The time of web data is obtained, so as to add Consumer's Experience.
In the above embodiment of the present invention, first processing module can include:First read module, for from present count
Angle value is instructed and matches according to all default take corresponding with origination action are read in storehouse, wherein, matching angle value is origination action
With the value of the matching degree of each default time-consuming instruction;Second read module, for reading default consumption according to the size of matching angle value
Shi Zhiling, using the default time-consuming instruction read as time-consuming instruction.
Specifically, according to the size of matching angle value default time-consuming instruction can be ranked up to obtain by order module pre-
If time-consuming command sequence, of predetermined threshold value is then being successively read from default time-consuming command sequence using the second read module
Several presets time-consuming instruction and instructs default take read as time-consuming instruction.
In the above embodiment of the present invention, the second read module directly can read time-consuming according to the size of matching angle value
Instruction, can also be default from this successively after order module obtains default time-consuming command sequence to default time-consuming instruction reorder
The default time-consuming instruction of the number of predetermined threshold value is read in time-consuming command sequence.Default threshold is read from default time-consuming command sequence
The time-consuming instruction of the number of value can more rapidly obtain time-consuming instruction, so as to save more times, so as to show
Time to user's request results, Consumer's Experience was more preferably earlier.
Wherein, the incidence relation in presetting database between in store default time-consuming instruction and instruction action, the association are closed
System is in advance to various time-consuming operations, time-consuming instruction and instruction action(Such as:Link is added into bookmark, replication link, retrogressing etc.
Operational motion)The incidence relation that data statistics obtains is carried out, while above-mentioned incidence relation is obtained, can also be united according to data
The result of meter records the matching angle value of each individually action and each time-consuming instruction, and e.g., opening net may be corresponded to by pressing action
The time-consuming instruction of page, it is also possible to the corresponding time-consuming instruction for replicating web page contents, during above-mentioned incidence relation is obtained, simultaneously
Record the matching angle value of each time-consuming action and each time-consuming instruction.Each instruction action in this embodiment can include more
Individual time-consuming action, each time-consuming action can correspond to multiple default time-consuming instructions, but each time-consuming action presets consumption with each
A matching angle value is only had between Shi Zhiling, the matching angle value reflects the matching degree of time-consuming action and default time-consuming instruction;
It can certainly directly record and time-consuming instruction is preset corresponding to each time-consuming action, and without managing whether the time-consuming action belongs to
Which instruction action, using the recording method, when obtaining default time-consuming instruction corresponding with origination action, finger can not be passed through
Order action, which directly searches to shorten, searches the time, so as to shorten the time for obtaining time-consuming instruction, so as to further
Shorten the request time of web data.
Specifically, during above-mentioned data statistics, it is possible to occur that an origination action corresponds to multiple time-consuming fingers
The situation of order, in the case where an origination action corresponds to multiple time-consuming instructions, in first processing module acquisition and origination action
During corresponding default time-consuming instruction, pass through the first read module first and obtain all default time-consuming fingers corresponding with the origination action
Order and its matching angle value, then all default time-consuming instructions are sorted according to the size of matching angle value using order module, obtained
To after default time-consuming command sequence, default time-consuming instruction is read by the second read module to obtain time-consuming instruction, it is preferable that
Read and the maximum default time-consuming instruction of angle value is matched with the origination action(It is namely default time-consuming with origination action matching degree highest
Instruction), in the above-described embodiments, if obtained from big to small to default time-consuming instruction reorder according to matching angle value default time-consuming
Command sequence, then read first default time-consuming instruction in the default time-consuming command sequence, can also in sequence successively from
The time-consuming instruction of the number of predetermined threshold value is read in the time-consuming command sequence.Wherein, above-mentioned predetermined threshold value can be 2, and this is pre-
If threshold value individually can be set for each action, a predetermined threshold value can also be set to all actions, it is above-mentioned default
Threshold value can also be what is set according to the needs of user, using above-described embodiment, can be read according to the different action of attribute
The time-consuming instruction of varying number, so as to meet a variety of demands of user or a variety of different processing speeds, so as to improve
The processing speed of system, improves Consumer's Experience.Wherein, the different action of attribute includes:Frequency of use is different to be acted, is right
The different action of quantity of instruction or user, which should be taken, has the action of different demands.
In the above embodiment of the present invention, the time-consuming instruction of the number of predetermined threshold value is read, can be completely defeated in user
Before entering instruction action, with regard to the time-consuming instruction of the number of advanced processing predetermined threshold value, due to according to the origination action of user to it
Behavior, which carries out anticipation, may have certain error, can be by performing step S208 to step in embodiment as shown in Figure 4
The time-consuming action that rapid S210 is subsequently sent to user is further confirmed, if only reading and handling matching angle value highest
Time-consuming instruction, once judge by accident(Confirm that the time-consuming instruction that user sends is not the time-consuming instruction prejudged), then it is all to carry
Pre-treatment all will be without any practical significance;And if the advanced processing time-consuming instruction of the number of predetermined threshold value, it is difficult to occur
Erroneous judgement, then after the time-consuming instruction for confirming to read, soon it can show request results to user.Pass through the upper of the present invention
State embodiment can occur anticipation instruction it is wrong in the case of, still can quickly respond to the request of user, rapidly to
User shows request results.
Specifically, user's right button menu is general also to add link in addition to new window opens webpage, opens webpage from the background
Enter the time-consuming operations such as bookmark, replication link, retrogressing, when establishing presetting database, pass through the instruction action to user, time-consuming behaviour
The data statistics of work can show that " new window opening webpage " and " opening webpage in backstage " is the high frequencies of operation of user(Two kinds of consumptions
It is press the corresponding time-consuming instruction of action 50% that Shi Zhiling, which constitutes about all origination actions,), when establishing presetting database, use
Matching angle value judges that instruction is taken corresponding to origination action can ensure the final hit rate of guess well, to ensure higher life
Middle rate and good webpage open acceleration effect.
For example, time-consuming instruction corresponding with pressing action can include in presetting database:Browse the time-consuming finger of webpage
Order(Match angle value 50), amplification webpage time-consuming instruction(Match angle value 15), reduce webpage time-consuming instruction(Match angle value 2)、
Close the instruction of webpage(Match angle value 10)And the time-consuming instruction of mobile webpage(Match angle value 23), then what sequence obtained takes
Command sequence can be:Browse the time-consuming instruction of webpage(Match angle value 50), the time-consuming instruction of mobile webpage(Match angle value 23),
Amplify the time-consuming instruction of webpage(Match angle value 15), close the instruction of webpage(Match angle value 10), reduce the time-consuming instruction of webpage
(Match angle value 2).When reading time-consuming instruction, the time-consuming instruction of first in the time-consuming command sequence can be only read,
Browse the time-consuming instruction of webpage, can also read sequence front two time-consuming instruction, that is, browse webpage time-consuming instruction and
The time-consuming instruction of mobile webpage.
As shown in Fig. 2 device can also include:Second receiving module 70, for receiving the net obtained according to network request
Network data;3rd processing module 90, for carrying out parsing data to network data and rendering Web Page Processing, to obtain webpage number
According to;And display module 110, for using web data displaying request results.
Specifically, after receiving network data by the second receiving module, by the 3rd processing module to network data
The processing for parse data obtains web data, after carrying out rendering Web Page Processing to web data, can obtain above-mentioned
Rendering data, then by display module using rendering data show request results.In the request of webpage is browsed, wash with watercolours is used
Data display request results are contaminated, as using webpage corresponding to the link of rendering data displaying user's click.
For example, the time-consuming instruction got in the above-described embodiments, which is clickthrough, opens webpage, then the network sent please
Asking to be:Asked corresponding to loading link, further, request results corresponding to the network request are:Shown to user
Webpage, namely use webpage corresponding to the link of rendering data displaying click.And for example, what is got in the above-described embodiments is time-consuming
Instruct to scale current web page, then the network request sent can be:The scaling multiple that current web page inputs according to user is entered
The processing of row scaling, then request results corresponding to the network request are:Webpage after showing from scaling to user, namely use wash with watercolours
Dye data display by current page according to user input scale multiple after webpage.
In the above embodiment of the present invention, time-consuming instruction includes the instruction for browsing webpage, and request results include webpage
Displaying, display module 110 can include:3rd receiving module, for continuing to the time-consuming action of user, wherein, triggering consumption
Shi Zhiling each action is time-consuming action;First judge module, for judging whether time-consuming action belongs to instruction action;The
Two judge modules, in the case of belonging to instruction action in time-consuming action, judge time-consuming action whether be instruction action knot
Beam acts;First sub- display module, in the case of being tenth skill in time-consuming action, request knot is shown using web data
Fruit;And execution module is returned, in the case of being not tenth skill in time-consuming action, return performs and continues to user's
The step of time-consuming action;And cancel module, in the case of being not belonging to the instruction action in time-consuming action, cancel to net
Network data carry out parsing data and render the processing of webpage.
Wherein, the individual part in above-described embodiment in the instruction action of each time-consuming instruction is properly termed as time-consuming dynamic
Make, the origination action in the embodiment shown in Fig. 1 and Fig. 3 is also time-consuming action, and time-consuming action can be in instruction action
Each action, and origination action, middle action or tenth skill are one kind of time-consuming action, origination action, centre are dynamic
Make or the generation of tenth skill can represent a kind of generation of specific behavior, and time-consuming action is merely representative of triggering and taken
One action of instruction, the action can be origination action, middle action or tenth skill.
Specifically, after rendering data is obtained, the 3rd receiving module continues to the time-consuming action of user, and then first
Judge module judges the action whether time-consuming action belongs in the instruction action of corresponding same time-consuming instruction, if
Words, then continue to judge whether the time-consuming action is last action in the instruction action by the second judge module, namely
The time-consuming action whether be the instruction action tenth skill, if the time-consuming action is the tenth skill of the instruction action,
Confirm that the time-consuming instruction that hit presetting database is read is correct, confirm the anticipation to user's origination action be it is correct, the
One sub- display module passes through the above embodiment of the present invention using rendering data displaying request results, it is possible to reduce the wasting of resources,
The web data request speed for responding user is fast.It is not the tenth skill of former instruction action in subsequently received time-consuming action,
Then the step of execution continues to the time-consuming action of user is returned to by returning to execution module.
If more specifically, a time-consuming instruction does not normally perform completion, another instruction is inserted again, then first finger
Order can be canceled, namely in the above-described embodiments, if time-consuming action is not belonging to instruction action, confirm that user is not normal
The instruction action is completed, then can cancel the processing procedure of the network request for time-consuming instruction by cancelling module.For example use
Family is pressed chaining, and is triggered " open link " this time-consuming instruction, finger is not unclamped(Do not complete " open link " this
Time-consuming instruction), finger linking(Or webpage)On there occurs displacement, then trigger again " dragging webpage " operation(PC is browsed
Device is then to trigger " new window opening webpage " time-consuming operation), then first time-consuming instruction " and open link " should cancel.
In the above-described embodiments, some time-consuming instruction when triggering, and the behavior of user does not cause instruction conflict, works as satisfaction
When " tenth skill " of the time-consuming instruction, namely the time-consuming action subsequently got is the tenth skill of instruction action, then confirms
The instruction action is completed, then can then respond subsequent operation corresponding to time-consuming instruction, for example, " clickthrough " this instructed
It Cheng Liao, then can start displayed web page using rendering data, if more specifically, do not obtain complete network data, can also show
Show webpage load progress, using above-described embodiment, user can be caused intuitively to obtain the progress of web data request, use of releiving
The mood at family, strengthen Consumer's Experience.
In the above embodiment of the present invention, the first judge module includes:Second acquisition module, for obtaining origination action
The first property parameters and tenth skill the second property parameters;Second detection module, for detecting first position and second
Whether the similarity put meets default similar range;3rd detection module, for meeting the feelings of default similar range in similarity
Under condition, detect the first chained address and whether the second chained address is consistent;And the first subprocessing module, in the first link
In the case that address is consistent with the second chained address, it is determined that time-consuming action belongs to instruction action;And the second subprocessing module, use
In similarity do not meet default similar range and the first chained address and the second chained address it is inconsistent in the case of, stop hair
Go out network request, wherein, origination action includes pressing action, the first property parameters include pressing the first position of action generation,
Press the first chained address of action sensing and press pressing the time for action, tenth skill includes release and acted, the second category
Property parameter includes:The pine of the second place, the second chained address that release action is pointed to and release action that release action occurs
ETAD expected time of arrival and departure.
Specifically, the similarity of the second detection module detection first position and the second place can be by calculating the second place
Both similarities are represented with the coordinate difference of first position, in the case where the similarity meets default similar range, table
Show that both coordinate differences meet default similar range, the default similar range is preferably [- 0.1 ,+0.1].If the similarity
It is basically identical with the position pressed to meet the position that default similar range shows that user unclamps.
According to the abovementioned embodiments of the present invention, the second judge module can include:Computing module, for will unclamp the time with
It is poor to press time work, to obtain the instruction time;4th detection module, for detecting whether the instruction time meets preset time model
Enclose;And the second subprocessing module, in the case of meeting preset time range in the instruction time, it is determined that time-consuming action is knot
Beam acts.
Preferentially, first processing module can also include:First acquisition module, for obtaining the first attribute of origination action
Parameter;First detection module, whether there is effective first chained address on first position for detecting;Reading submodule, use
In the case of there is effective first chained address on first position, time-consuming instruction is obtained.
For example, being pressed in web page interlinkage, this action is " clickthrough(Open webpage)" this time-consuming instructed
Initiating is made, then web page interlinkage opening webpage will be clicked by prejudging user.Specifically, in the above embodiment of the present invention, user is worked as
Send some action(Origination action i.e. in above-described embodiment), system can obtain time-consuming refer to corresponding with the origination action
Order, such as, " origination action " that clickthrough opens webpage is:" left button " is in " generic web page link "(Link has very more
Type, such as Javascript, email, telephone etc., be not necessarily all to open webpage)Upper " pressing ", while to record
The first property parameters of action are pressed, the first chained address as corresponding to pressing action, the first position pressed, that presses presses
The volume of data such as time;And corresponding " tenth skill " is unclamped in the position pressed, and link does not change, and
The time that distance is pressed is less than 0.5 second.System this operation can be associated together instruction action and " opening webpage ", when
When being fitted on " left button links in generic web page ", confirm that user wants " opening webpage ".
Fig. 3 is the flow chart of the requesting method of web data according to embodiments of the present invention, and this method as shown in Figure 3 includes
Following steps:
Step S102, receive the origination action of the instruction action of user.
Step S104, obtain time-consuming instruction corresponding with origination action.
Step S106, send with taking the corresponding network request of instruction.
Wherein, instruction of the instruction for triggering time-consuming operation is taken, instruction action includes one or more of the time-consuming instruction of triggering
Individual action.
Using the above embodiment of the present invention, obtained and the origination action after the origination action of instruction action is got
Corresponding time-consuming instruction, and send with taking the corresponding network request of instruction, begun in the origination action for getting user pre-
Sentence the behavior of user, anticipation obtains time-consuming instruction, sends in advance and handle network request, so as to not optimize network speed
On the premise of degree, web analysis rendering speed, by prejudging user behavior, network request, the time-consuming behaviour of advanced processing are sent in advance
Solve the problems, such as to open that webpage speed is slow, efficiency is low in the prior art, reach quick, the efficient effect for opening webpage.
Specifically, the origination action of the instruction action of user can be received by the first receiving module shown in Fig. 1;Pass through
First processing module reads time-consuming instruction corresponding with origination action from presetting database;And sent out by Second processing module
Go out with taking the corresponding network request of instruction.
Wherein, certain action of user can trigger specific operational order(Such as:Webpage clicking link, chaining bullet
Go out after right button menu to click on " opening link in backstage ", on a web browser using middle button of mouse clickthrough backstage open link,
Download interface and establish the combination of actions that downloading task etc. is formed by multiple action linkings manually), the specific of time-consuming operation can be triggered
Operational order be time-consuming instruction, time-consuming operation therein include accessing network, parse data, to render webpage etc. multiple complicated
Time-consuming process, the action that can trigger time-consuming instruction is denoted as instruction action in the above embodiment of the present invention, will be referred to
Each individually act in order action is denoted as time-consuming action, namely the origination action in above-described embodiment is also time-consuming action.
Time-consuming instruction corresponding with the instruction is just obtained after user sends the origination action of instruction action and to the consumption
Shi Zhiling processing, rather than the just start to process after complete instruction action is obtained, in the request of whole web data
During, ignore the middle action for the instruction action that user sends or the time of tenth skill, significantly shortening user please
Ask and obtain the time of web data, so as to add Consumer's Experience.
In the above embodiment of the present invention, obtaining time-consuming the step of instructing corresponding with origination action can include:From
All default time-consuming instructions corresponding with origination action and matching angle value are read in presetting database, wherein, matching angle value is
Initiating makees the value with the matching degree of each default time-consuming instruction;Size according to matching angle value reads default time-consuming instruction, will read
The default time-consuming instruction got is as time-consuming instruction.
Specifically, default time-consuming instruction can be ranked up according to the size of matching angle value to obtain default time-consuming sequence of instructions
Row, the default time-consuming instruction of the number of predetermined threshold value is then successively read from default time-consuming command sequence, it is pre- by what is read
If time-consuming instruction is as time-consuming instruction.
More specifically, default time-consuming instruction can be ranked up to obtain according to the size of matching angle value by order module
Default time-consuming command sequence, then it is being successively read predetermined threshold value from default time-consuming command sequence using the second read module
The default time-consuming instruction of number simultaneously presets time-consuming instruction as time-consuming instruction using what is read.
In the above embodiment of the present invention, the second read module directly can read time-consuming according to the size of matching angle value
Instruction, can also be default from this successively after order module obtains default time-consuming command sequence to default time-consuming instruction reorder
The default time-consuming instruction of the number of predetermined threshold value is read in time-consuming command sequence.Default threshold is read from default time-consuming command sequence
The time-consuming instruction of the number of value can more rapidly obtain time-consuming instruction, so as to save more times, so as to show
Time to user's request results, Consumer's Experience was more preferably earlier.
Wherein, the incidence relation in presetting database between in store default time-consuming instruction and instruction action, the association are closed
System is in advance to various time-consuming operations, time-consuming instruction and instruction action(Such as:Link is added into bookmark, replication link, retrogressing etc.
Operational motion)The incidence relation that data statistics obtains is carried out, while above-mentioned incidence relation is obtained, can also be united according to data
The result of meter records the matching angle value of each individually action and each time-consuming instruction, and e.g., opening net may be corresponded to by pressing action
The time-consuming instruction of page, it is also possible to the corresponding time-consuming instruction for replicating web page contents, during above-mentioned incidence relation is obtained, simultaneously
Record the matching angle value of each time-consuming action and each time-consuming instruction.Each instruction action in this embodiment can include more
Individual time-consuming action, each time-consuming action can correspond to multiple default time-consuming instructions, but each time-consuming action presets consumption with each
A matching angle value is only had between Shi Zhiling, the matching angle value reflects the matching degree of time-consuming action and default time-consuming instruction;
It can certainly directly record and time-consuming instruction is preset corresponding to each time-consuming action, and without managing whether the time-consuming action belongs to
Which instruction action, using the recording method, when obtaining default time-consuming instruction corresponding with origination action, finger can not be passed through
Order action, which directly searches to shorten, searches the time, so as to shorten the time for obtaining time-consuming instruction, so as to further
Shorten the request time of web data.
Specifically, during above-mentioned data statistics, it is possible to occur that an origination action corresponds to multiple time-consuming fingers
The situation of order, in the case where an origination action corresponds to multiple time-consuming instructions, read from presetting database and initiating
When time-consuming instruction is preset corresponding to work, all default time-consuming instructions corresponding with the origination action and its matching degree are obtained first
Value, then all default time-consuming instructions are sorted according to the size of matching angle value, default time-consuming command sequence is obtained, preferably reads
Take and the maximum default time-consuming instruction of angle value is matched with the origination action(Namely refer to default take of origination action matching degree highest
Order), in the above-described embodiments, if default take obtained from big to small to default time-consuming instruction reorder according to matching angle value refers to
Sequence is made, then reads first default time-consuming instruction in the default time-consuming command sequence, can also be in sequence successively from this
The time-consuming instruction of the number of predetermined threshold value is read in time-consuming command sequence.Wherein, above-mentioned predetermined threshold value can be 2, and this is default
Threshold value individually can be set for each action, can also set a predetermined threshold value, above-mentioned default threshold to all actions
Value can also be what is set according to the needs of user, using above-described embodiment, can be read not according to the different action of attribute
With the time-consuming instruction of quantity, so as to meet a variety of demands of user or a variety of different processing speeds, so as to improve
The processing speed of system, improves Consumer's Experience.Wherein, the different action of attribute includes:Frequency of use is different to be acted, correspondingly
Taking the different action of the quantity instructed or user has the action of different demands.
In the above embodiment of the present invention, the time-consuming instruction of the number of predetermined threshold value is read, can be completely defeated in user
Before entering instruction action, with regard to the time-consuming instruction of the number of advanced processing predetermined threshold value, due to according to the origination action of user to it
Behavior, which carries out anticipation, may have certain error, can be by performing step S208 to step in embodiment as shown in Figure 4
The time-consuming action that rapid S210 is subsequently sent to user is further confirmed, if only reading and handling matching angle value highest
Time-consuming instruction, once judge by accident(Confirm that the time-consuming instruction that user sends is not the time-consuming instruction prejudged), then it is all to carry
Pre-treatment all will be without any practical significance;And if the advanced processing time-consuming instruction of the number of predetermined threshold value, it is difficult to occur
Erroneous judgement, then after the time-consuming instruction for confirming to read, soon it can show request results to user.Pass through the upper of the present invention
State embodiment can occur anticipation instruction it is wrong in the case of, still can quickly respond to the request of user, rapidly to
User shows request results.
Specifically, user's right button menu is general also to add link in addition to new window opens webpage, opens webpage from the background
Enter the time-consuming operations such as bookmark, replication link, retrogressing, when establishing presetting database, pass through the instruction action to user, time-consuming behaviour
The data statistics of work can show that " new window opening webpage " and " opening webpage in backstage " is the high frequencies of operation of user(Two kinds of consumptions
It is press the corresponding time-consuming instruction of action 50% that Shi Zhiling, which constitutes about all origination actions,), when establishing presetting database, use
Matching angle value judges that instruction is taken corresponding to origination action can ensure the final hit rate of guess well, to ensure higher life
Middle rate and good webpage open acceleration effect.
For example, time-consuming instruction corresponding with pressing action can include in presetting database:Browse the time-consuming finger of webpage
Order(Match angle value 50), amplification webpage time-consuming instruction(Match angle value 15), reduce webpage time-consuming instruction(Match angle value 2)、
Close the instruction of webpage(Match angle value 10)And the time-consuming instruction of mobile webpage(Match angle value 23), then what sequence obtained takes
Command sequence can be:Browse the time-consuming instruction of webpage(Match angle value 50), the time-consuming instruction of mobile webpage(Match angle value 23),
Amplify the time-consuming instruction of webpage(Match angle value 15), close the instruction of webpage(Match angle value 10), reduce the time-consuming instruction of webpage
(Match angle value 2).When reading time-consuming instruction, the time-consuming instruction of first in the time-consuming command sequence can be only read,
Browse the time-consuming instruction of webpage, can also read sequence front two time-consuming instruction, that is, browse webpage time-consuming instruction and
The time-consuming instruction of mobile webpage.
Using the above embodiment of the present invention, by prejudging the starting behavior of user, advanced processing time-consuming operation, Ke Yiyou
Effect reduces period of reservation of number, such as:Get user and chaining the action pressed, according to this origination action of user
(It is to press action in the present embodiment)The purpose of anticipation user is to open webpage corresponding to link, namely pressing according to user
It is to browse the instruction of webpage to act the time-consuming instruction read from presetting database, is then sent in advance according to the time-consuming instruction
Network request, user can be probably allowed to wait 100 milliseconds or so of time less.Again for example, user is chaining opening right button dish
It is single, time-consuming instruction is read by the incidence relation and matching angle value that are preserved in presetting database, the behavior for now prejudging user obtains
To time-consuming instruction be new window open webpage, send network request in advance, can probably reduce 2000 milliseconds or so of user's
Stand-by period, the sensation that user's webpage a little turns on is given, greatly improves Consumer's Experience.
Instruction action in the above embodiment of the present invention is typically to be made up of two to more time-consuming actions, such as:
The time-consuming instruction of " clicking link ", which is divided into, presses chaining(press)Action follow and chain release in original(release)'s
Release acts, the two time-consuming actions.The everything that time-consuming instruction can be triggered is referred to as " instruction action " of the instruction, instruction
Action can be by an origination action(The action started), zero to multiple middle actions, and tenth skill composition.Than
Such as:" clickthrough(Open webpage)" origination action of instruction action of this time-consuming instruction is to press action what is chained,
Tenth skill is the release action chained in original.
According to the abovementioned embodiments of the present invention, sending and after the time-consuming corresponding network request of instruction, method can wrap
Include:Receive the network data obtained according to network request;Network data is carried out parsing data and renders Web Page Processing, to obtain
Rendering data;And use rendering data displaying request results.
Specifically, the processing for network data parse data obtains web data, is rendered to web data
After Web Page Processing, above-mentioned rendering data can be obtained, then shows request results using rendering data.Browsing webpage
In request, request results are shown using rendering data, as using webpage corresponding to the link of rendering data displaying user's click.
For example, the time-consuming instruction got in the above-described embodiments, which is clickthrough, opens webpage, then the network sent please
Asking to be:Asked corresponding to loading link, further, request results corresponding to the network request are:Shown to user
Webpage, namely use webpage corresponding to the link of rendering data displaying click.And for example, what is got in the above-described embodiments is time-consuming
Instruct to scale current web page, then the network request sent can be:The scaling multiple that current web page inputs according to user is entered
The processing of row scaling, then request results corresponding to the network request are:Webpage after showing from scaling to user, namely use wash with watercolours
Dye data display by current page according to user input scale multiple after webpage.
According to the abovementioned embodiments of the present invention, obtaining the step of time-consuming instruction corresponding with origination action can include:Inspection
Survey in presetting database and whether there is origination action;And in the case of in presetting database origination action being present, read consumption
Shi Zhiling;In the case of origination action is not present in presetting database, terminate the request to web data.
Specifically, in the case of it origination action be present in presetting database, confirm in the presence of anticipation to refer in presetting database
Order, it can now be instructed so that advanced processing is time-consuming, such as, get " clickthrough(Open webpage)" time-consuming instruction, then use
The chained address where action is pressed, sends network request, the network request points to webpage corresponding to the chained address, is receiving
To after network data corresponding to network request, parsing data can be proceeded by and render the time-consuming operations such as webpage, to obtain wash with watercolours
Data are contaminated, and use rendering data displaying request results.
Request to web data can be terminated in time by above-described embodiment, terminate the request to web data, so
The processing speed of system so as to not interfere with follow-up data handling procedure, can be accelerated with thread unnecessary in ends with system,
The wasting of resources of reduction system so that user subsequently opens the speed of webpage faster.
Wherein, user sends origination action, and system judges that user performs some instruction, and system is read from presetting database
To time-consuming instruction prejudge the operation that is performed by the origination action of user for system, the time-consuming instruction that system prejudges to obtain is claimed
For anticipation instruction.
In the above embodiment of the present invention, included using the step of rendering data displaying request results:Continue to use
The time-consuming action at family, wherein, each action for triggering time-consuming instruction is time-consuming action;Judge whether time-consuming action belongs to instruction
Action;In the case where time-consuming action belongs to instruction action, judge time-consuming action whether be instruction action tenth skill;Consuming
When action be tenth skill in the case of, use rendering data displaying request results;It is not the feelings of tenth skill in time-consuming action
Under condition, return and perform the step of continuing to the time-consuming action of user;And it is not belonging to the situation of instruction action in time-consuming action
Under, cancel and network data is carried out parsing data and renders the processing of webpage.
Wherein, the individual part in above-described embodiment in the instruction action of each time-consuming instruction is properly termed as time-consuming dynamic
Make, the origination action in the embodiment shown in Fig. 1 and Fig. 3 is also time-consuming action, and time-consuming action can be in instruction action
Each action, and origination action, middle action or tenth skill are one kind of time-consuming action, origination action, centre are dynamic
Make or the generation of tenth skill can represent a kind of generation of specific behavior, and time-consuming action is merely representative of triggering and taken
One action of instruction, the action can be origination action, middle action or tenth skill.
Because the judgement of the time-consuming instruction to the origination action of user is built upon in certain data basis, although thing
The support of the detection of matching angle value has first been done to the time-consuming instruction in presetting database, but in order to improve the hit rate of anticipation,
System may determine that whether the time-consuming action that user subsequently sends belong to same time-consuming finger with the time-consuming instruction read
Order.Specifically, after rendering data is obtained, the time-consuming action of user is continued to, judges whether time-consuming action belongs to corresponding
An action in the instruction action of same time-consuming instruction, if it does, then continuing to judge whether the time-consuming action is this
Last action in instruction action, namely the time-consuming action whether be the instruction action tenth skill, if this is time-consuming
Action is the tenth skill of the instruction action, then confirms that the time-consuming instruction that hit presetting database is read is correct, confirmation pair
The anticipation of user's origination action is correct.Pass through the above embodiment of the present invention, it is possible to reduce the wasting of resources, respond user's
Web data request speed is fast.
If more specifically, a time-consuming instruction does not normally perform completion, another instruction is inserted again, then first finger
Order can be canceled, namely in the above-described embodiments, if time-consuming action is not belonging to instruction action, confirm that user is not normal
The instruction action is completed, then can be cancelled for the processing procedure of the network request of time-consuming instruction.Such as user chain by
Under, " opening link " this time-consuming instruction is triggered, does not unclamp finger(" opening link " this time-consuming instruction is not completed), hand
Finger is linking(Or webpage)On there occurs displacement, then trigger " dragging webpage " operation again(PC browsers are then to trigger
" new window opening webpage " time-consuming operation), then first time-consuming instruction " opening link " should cancel.
In the above-described embodiments, some time-consuming instruction when triggering, and the behavior of user does not cause instruction conflict, works as satisfaction
When " tenth skill " of the time-consuming instruction, namely the time-consuming action subsequently got is the tenth skill of instruction action, then confirms
The instruction action is completed, then can then respond subsequent operation corresponding to time-consuming instruction, for example, " clickthrough " this instructed
It Cheng Liao, then can start displayed web page using rendering data, if more specifically, do not obtain complete network data, can also show
Show webpage load progress, using above-described embodiment, user can be caused intuitively to obtain the progress of web data request, use of releiving
The mood at family, strengthen Consumer's Experience.
Specifically, as shown in figure 4, above-described embodiment can be achieved by the steps of:
Step S202:Receive the trigger action that user sends in program interface.
Step S204:Judge trigger action whether be instruction action origination action.
Wherein, specifically, before step S102 is performed, step S202 and step S204 be can also carry out;If triggering
Action is the origination action of instruction action, then confirms to receive the origination action of user, and perform step S206;If triggering is dynamic
It is not the origination action of instruction action, then terminates the flow.
Step S206:The time-consuming operation of processing anticipation instruction corresponding with origination action.
Specifically, in the above-described embodiments, time-consuming instruction corresponding with origination action is read from presetting database, by this
Time-consuming instruction instructs as anticipation, and the time-consuming operation of advanced processing anticipation instruction, such as parses data, renders webpage.
Step S208:Continue to the time-consuming action that user sends in program interface.
Step S210:Judge whether time-consuming action belongs to former time-consuming instruction.
Specifically, can be matched by the first attribute data of origination action and the second attribute data of time-consuming action
Processing judges whether time-consuming action belongs to former time-consuming instruction.More specifically, belong in the first attribute data of origination action and second
Property data in location parameter, link data it is consistent in the case of, confirm that time-consuming action belongs to former time-consuming instruction.Wherein, consuming
When action belong to former time-consuming instruction in the case of, perform step S212, time-consuming action be not belonging to it is former it is time-consuming instruct in the case of,
Perform step S216.
Step S212:Judge whether time-consuming action is the former tenth skill for taking instruction.
Specifically, judge whether time-consuming action is the former tenth skill for taking instruction action corresponding to instruction.This can be with
Realized by looking into instruction action table, the instruction action table can be the incidence relation of the action and time-consuming instruction previously according to user
The table of preservation, the table can be stored in presetting database.In the case where time-consuming action is the tenth skill of former time-consuming instruction,
Step S214 is performed, in the case where time-consuming action is not for the tenth skill of former time-consuming instruction, returns and performs step S208.
Step S214:Confirm the time-consuming instruction of hit, respond subsequent operation corresponding to time-consuming instruction.
Wherein, specifically, confirm time-consuming instruction that the behavior of the i.e. anticipation user of the time-consuming instruction of hit obtains be it is correct, this
When due to having been completed time-consuming operation(Such as parse data, render webpage operation), then can be directly in response to time-consuming instruction pair
The subsequent operation answered, it is, for example, possible to use rendering data displayed web page.
Step S216:Cancel the time-consuming operation of processing.Specifically, because the anticipation for user behavior is not accurate enough, this
When can cancel the operation made according to network request, to reduce the consumption of resource.
According to the abovementioned embodiments of the present invention, judge that the step of whether time-consuming action is the tenth skill of instruction action can be with
Including:Will unclamp the time and press the time make it is poor, to obtain the instruction time;Whether the detection instruction time meets preset time model
Enclose;In the case where the instruction time meets preset time range, it is determined that time-consuming action is tenth skill;And accorded with the instruction time
In the case of closing preset time range, it is determined that time-consuming action is not tenth skill.
According to the abovementioned embodiments of the present invention, judge that the step of whether time-consuming action belongs to instruction action can include:Obtain
Take the first property parameters of origination action and the second property parameters of tenth skill;It is similar to the second place to detect first position
Whether degree meets default similar range;In the case where similarity meets default similar range, the first chained address of detection and the
Whether two chained addresses are consistent;And in the first chained address it is consistent with the second chained address in the case of, it is determined that time-consuming action
Belong to instruction action;Default similar range and the first chained address and the inconsistent feelings in the second chained address are not met in similarity
Under condition, stopping sends network request, wherein, origination action includes pressing action, and the first property parameters include pressing action
First position, press action point to the first chained address and press pressing the time for action, tenth skill include unclamp
Action, the second property parameters include:The second place, the second chained address of release action sensing and the pine that release action occurs
Start the release time of work.
According to the abovementioned embodiments of the present invention, judge that the step of whether time-consuming action is the tenth skill of instruction action is wrapped
Include:Will unclamp the time and press the time make it is poor, to obtain the instruction time;Whether the detection instruction time meets preset time range;
And in the case where the instruction time meets preset time range, it is determined that time-consuming action is tenth skill.
Wherein, the instruction time in above-described embodiment is the time difference unclamped the time and press the time, and the time difference can
With for representing that user inputs the time of the instruction action.Preferably, preset time range can be 0.5 second.
Include in the above embodiment of the present invention, the step of the second property parameters for obtaining tenth skill:Detection is time-consuming
Whether action is zoom action, scroll actions or refresh activity;It is not that zoom action, scroll actions and refreshing are dynamic in time-consuming action
In the case of work, the second property parameters are obtained;In the case where time-consuming action is zoom action, scroll actions and refresh activity,
Stopping sends network request.
Preferably, obtaining the step of time-consuming instruction corresponding with origination action can include:Detect first position on whether
With effective first chained address;And in the case of on first position there is effective first chained address, from default
The time-consuming instruction that corresponding relation is respectively provided with first position and the first chained address is read in database;Do not have on first position
In the case of having effective first chained address, stopping sends network request.
For example, being pressed in web page interlinkage, this action is " clickthrough(Open webpage)" this time-consuming instructed
Initiating is made, then web page interlinkage opening webpage will be clicked by prejudging user.Specifically, in the above embodiment of the present invention, user is worked as
Send some action(Origination action i.e. in above-described embodiment), system can obtain time-consuming refer to corresponding with the origination action
Order, such as, " origination action " that clickthrough opens webpage is:" left button " is in " generic web page link "(Link has very more
Type, such as Javascript, email, telephone etc., be not necessarily all to open webpage)Upper " pressing ", while to record
The first property parameters of action are pressed, the first chained address as corresponding to pressing action, the first position pressed, that presses presses
The volume of data such as time;And corresponding " tenth skill " is unclamped in the position pressed, and link does not change, and
The time that distance is pressed is less than 0.5 second.System this operation can be associated together instruction action and " opening webpage ", when
When being fitted on " left button links in generic web page ", confirm that user wants " opening webpage ".
As shown in figure 5, above-described embodiment can be achieved by the steps of:
Step S302:User presses on webpage.That is, user sends the origination action of instruction action on webpage.Tool
Body, user are pressed on the first chained address in first position, press that action occurs when a length of press the time.Specifically, use
Family press action press the time meet first press time range in the case of, system anticipation user may click net
Page link, after user click web page interlinkage is judged, judge to press whether the time more than first presses time threshold, if pressed
The lower time will press time threshold more than first, then the purpose for prejudging user clicks on links is:Right button menu is ejected, and new window is beaten
Open webpage.Wherein, first press time range can be 0 to 0.1 second, first press time threshold can be 0.5 second.
Step S304:Whether there is effectively chained address on the first position for judging to press.
In the case of having valid link address on first position, step S306 is performed;Without effective on first position
In the case of chained address, step S320 is performed.
Step S306:Time-consuming instruction corresponding with chained address is obtained, and sends network request.
Step S308:Whether detection user have issued the instruction action of click link.Specifically, the finger of click link
Order action includes:Zoom action, scroll actions, refresh activity etc..
Specifically, in the case of the instruction action that click link is have issued in user, step S320 is performed;In user not
In the case of the instruction action for sending click link, step S310 is performed.
Step S310:User sends tenth skill.Specifically, detect that user sends tenth skill, for example, unclamping finger
Release action.
Step S312:It is pre- whether the similarity of the second place of detection tenth skill and the first position of origination action meets
If similar range.Specifically, detect first position and the similarity of the second place can be by calculating the second place and first
The coordinate difference put represents both similarities, in the case where the similarity meets default similar range, represents both
Coordinate difference meets default similar range, and the default similar range is preferably [- 0.1 ,+0.1].If the similarity meets default
Similar range indicates that the position that user unclamps is basically identical with the position pressed.Accorded with the similarity of the second place and first position
In the case of closing default similar range, step S314 is performed;Similarity in the second place and first position does not meet default phase
In the case of scope, step S320 is performed.
Step S314:Judge origination action the first chained address and tenth skill the second chained address it is whether consistent.
Wherein, in the case of consistent with the second chained address in the first chained address, step S316 is performed;In the first link
In the case that address and the second chained address are inconsistent, step S320 is performed.
Step S316:Wait network data.
Step S318:Show request results.
Step S320:Stopping sends network request.
Using the method in above-described embodiment, pressed from user to right button menu to be ejected, take about 1 second, play bullet
Go out right button menu animation, take 0.2 second, " the new window opening " of user's click right menu, about 1 second, can save close to 2 seconds
(If opening this webpage not needing in itself 2 seconds, the time saved corresponds to the time of webpage to open).
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
As can be seen from the above description, the present invention realizes following technique effect:Using the above-mentioned implementation of the present invention
Example, time-consuming instruction corresponding with the origination action is just obtained from database after the origination action of instruction action is got,
And the behavior for beginning to prejudge user in the origination action for getting user with taking the corresponding network request of instruction is sent, in advance
Sentence to obtain time-consuming instruction, send in advance and handle network request, so as to do not optimize network speed, web analysis renders speed
On the premise of degree, by prejudging user behavior, network request is sent in advance, advanced processing time-consuming operation, is solved in the prior art
The problem of webpage speed is slow, efficiency is low is opened, reaches the effect for rapidly and efficiently opening webpage.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
- A kind of 1. requesting method of web data, it is characterised in that including:Receive the origination action of the instruction action of user;Obtain time-consuming instruction corresponding with the origination action;AndNetwork request corresponding with the time-consuming instruction is sent,Wherein, the time-consuming instruction is the instruction of triggering time-consuming operation, and the instruction action is including triggering the time-consuming instruction One or more action, one or more of actions are action,Wherein, the time-consuming instruction is read from presetting database, wherein, time-consuming finger is stored with the presetting database Incidence relation between order and instruction action.
- 2. requesting method according to claim 1, it is characterised in that described to obtain take corresponding with the origination action The step of instruction, includes:Default time-consuming instruction corresponding with the origination action and matching angle value are read from the presetting database, wherein, institute State the value that matching angle value is the origination action and the matching degree of each default time-consuming instruction;Size according to the matching angle value reads the default time-consuming instruction, using the default time-consuming instruction read as The time-consuming instruction.
- 3. requesting method according to claim 1 or 2, it is characterised in that it is described send it is corresponding with the time-consuming instruction Network request the step of after, methods described includes:Receive the network data obtained according to the network request;The network data is carried out parsing data and renders Web Page Processing, to obtain rendering data;AndRequest results are shown using the rendering data.
- 4. requesting method according to claim 3, it is characterised in that the time-consuming instruction includes the instruction for browsing webpage, The request results include the displaying of webpage, and described the step of showing request results using rendering data includes:The time-consuming action of the user is continued to, wherein, the time-consuming action is to trigger the action of the time-consuming instruction;Judge whether the time-consuming action belongs to the instruction action;In the case where the time-consuming action belongs to the instruction action, judge whether the time-consuming action is the instruction action Tenth skill;In the case where the time-consuming action is the tenth skill, the webpage is shown using the rendering data;In the case where the time-consuming action is not the tenth skill, the time-consuming action for performing and continuing to the user is returned The step of;AndIt is described it is time-consuming action be not belonging to the instruction action in the case of, cancel to the network data carry out parse data and Render the processing of webpage.
- 5. requesting method according to claim 4, it is characterised in thatIt is described to judge that the step of whether time-consuming action belongs to the instruction action includes:Obtain the first attribute of the origination action Second property parameters of parameter and the tenth skill;Whether the similarity of detection first position and the second place meets default phase Like scope;In the case where the similarity meets the default similar range, the first chained address of detection is grounded with the second chain Whether location is consistent;And in first chained address it is consistent with second chained address in the case of, determine described time-consuming Action belongs to the instruction action;The default similar range and first chained address and institute are not met in the similarity State the second chained address it is inconsistent in the case of, stopping send the network request,Wherein, the origination action includes pressing action, and first property parameters include described press and act the described of generation First position, described press first chained address and described press pressing the time for action, the knot that action points to Beam action includes release action, and second property parameters include:The second place of the release action generation, the pine Start the release time of second chained address for making to point to and release action;It is described to judge that the step of whether time-consuming action is the tenth skill of the instruction action includes:By the release time and institute State press the time make it is poor, to obtain the instruction time;Detect whether the instruction time meets preset time range;In the instruction In the case that time meets the preset time range, determine that the time-consuming action is the tenth skill;And in the finger Make in the case that the time meets the preset time range, determine that the time-consuming action is not the tenth skill.
- A kind of 6. request unit of web data, it is characterised in that including:First receiving module, the origination action of the instruction action for receiving user;First processing module, for obtaining time-consuming instruction corresponding with the origination action;AndSecond processing module, for sending network request corresponding with the time-consuming instruction,Wherein, the time-consuming instruction is the instruction of triggering time-consuming operation, and the instruction action is including triggering the time-consuming instruction One or more action, one or more of actions are action,Wherein, the time-consuming instruction is read from presetting database, wherein, time-consuming finger is stored with the presetting database Incidence relation between order and instruction action.
- 7. request unit according to claim 6, it is characterised in that the first processing module includes:First read module, for reading all default time-consuming fingers corresponding with the origination action from the presetting database Order and matching angle value, wherein, the matching angle value is the origination action and the matching degree of each default time-consuming instruction Value;Second read module, for reading the default time-consuming instruction, the institute that will be read according to the size of the matching angle value State default time-consuming instruction and be used as the time-consuming instruction.
- 8. the request unit according to claim 6 or 7, it is characterised in that described device includes:Second receiving module, for receiving the network data obtained according to the network request;3rd processing module, for carrying out parsing data to the network data and rendering Web Page Processing, to obtain rendering data; AndDisplay module, for using rendering data displaying request results.
- 9. request unit according to claim 8, it is characterised in that the time-consuming instruction includes the instruction for browsing webpage, The request results include the displaying of webpage, and the display module includes:3rd receiving module, for continuing to the time-consuming action of the user, wherein, the time-consuming action is the triggering consumption Shi Zhiling action;First judge module, for judging whether the time-consuming action belongs to the instruction action;Second judge module, in the case of belonging to the instruction action in the time-consuming action, judge the time-consuming action Whether be the instruction action tenth skill;First sub- display module, in the case of being the tenth skill in the time-consuming action, use the rendering data Show the webpage;Execution module is returned, in the case of being not the tenth skill in the time-consuming action, execution is returned and continues to The step of time-consuming action of the user;AndCancel module, in the case of being not belonging to the instruction action in the time-consuming action, cancel to the network data Carry out parsing data and render the processing of webpage.
- 10. request unit according to claim 9, it is characterised in thatFirst judge module includes:Second acquisition module, for obtaining the first property parameters and the institute of the origination action State the second property parameters of tenth skill;Second detection module, for detect first position and the second place similarity whether Meet default similar range;3rd detection module, in the case of meeting default similar range in the similarity, detection the Whether one chained address is consistent with the second chained address;First subprocessing module, for first chained address with it is described In the case that second chained address is consistent, determine that the time-consuming action belongs to the instruction action;And the second subprocessing module, For not meeting the default similar range and first chained address and second chained address not in the similarity In the case of consistent, stopping sends the network request,Wherein, the origination action includes pressing action, and first property parameters include described press and act the described of generation First position, described press first chained address and described press pressing the time for action, the knot that action points to Beam action includes release action, and second property parameters include:The second place of the release action generation, the pine Start the release time of second chained address for making to point to and release action;Second judge module includes:Computing module, for by it is described release the time with it is described press the time make it is poor, with acquisition Instruction time;4th detection module, for detecting whether the instruction time meets preset time range;And second subprocessing Module, in the case of meeting the preset time range in the instruction time, determine that the time-consuming action is the knot Beam acts;And in the case where the instruction time meets the preset time range, determine that the time-consuming action is not institute State tenth skill.
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 CN103455353A (en) | 2013-12-18 |
CN103455353B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105843814A (en) * | 2015-01-14 | 2016-08-10 | 阿里巴巴集团控股有限公司 | Method, device, and system for generating page |
CN106502902B (en) * | 2016-10-25 | 2019-03-22 | 中国工商银行股份有限公司 | Web page operational efficiency monitoring method and device |
Citations (4)
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 |
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 |
CN103246526A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Client pre-loading method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7984000B2 (en) * | 2007-10-31 | 2011-07-19 | Microsoft Corporation | Predicting and using search engine switching behavior |
US8600921B2 (en) * | 2011-09-15 | 2013-12-03 | Google Inc. | Predicting user navigation events in a browser using directed graphs |
-
2013
- 2013-08-30 CN CN201310391142.0A patent/CN103455353B/en active Active
Patent Citations (4)
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 |
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 |
CN103246526A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Client pre-loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103455353A (en) | 2013-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10491550B2 (en) | Instant communication | |
CN106503134A (en) | Browser jumps to the method for data synchronization and device of application program | |
CN104978267B (en) | webpage test method, terminal and server | |
CN106097072B (en) | Comparison method and device of commodity information and terminal equipment | |
CN107766344B (en) | Template rendering method and device and browser | |
CN105260424B (en) | The processing method and processing device that user browses web-page histories record and most frequentation is asked | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
CN104935491A (en) | Method and device for transmitting expression image | |
CN106528659A (en) | A control method and device for jumping from a browser to an application program | |
CN109298905A (en) | Utilize the method and electronic equipment of the optimization picture lazyness load of front end programming language | |
CN106161133B (en) | Method and device for testing webpage loading time | |
JP6085897B2 (en) | Method and system for causing a web application to acquire database changes | |
CN103455353B (en) | The requesting method and device of web data | |
CN110298000A (en) | Acquisition methods, terminal device and the medium of page parameter | |
CN102087662A (en) | Method and device for searching information | |
US20140082527A1 (en) | Method and device for processing tabbed-page | |
TW201821961A (en) | Method and device for processing user operation | |
CN110020890B (en) | Method and device for configuring store for commodity | |
CN103605686A (en) | Terminal fault solution providing method, server and system based on searching | |
CN107748658A (en) | A kind of software development methodology, system, computer-readable recording medium and electronic equipment | |
CN112256944A (en) | Automatic website data crawling method based on JMeter | |
CN109471627A (en) | Page presentation control method, system and device | |
CN107423365A (en) | Web access method, terminal and computer-readable recording medium | |
CN109343908A (en) | A kind of method and apparatus of delay loading JS script | |
CN103034711B (en) | Form recognition method and device |
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 |
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. |
|
TR01 | Transfer of patent right |