CN104850595B - Optimize the method and apparatus of webpage opening time - Google Patents
Optimize the method and apparatus of webpage opening time Download PDFInfo
- Publication number
- CN104850595B CN104850595B CN201510206427.1A CN201510206427A CN104850595B CN 104850595 B CN104850595 B CN 104850595B CN 201510206427 A CN201510206427 A CN 201510206427A CN 104850595 B CN104850595 B CN 104850595B
- Authority
- CN
- China
- Prior art keywords
- optimization
- period
- rank
- optimal way
- opening time
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Abstract
The disclosure is directed to a kind of method and apparatus of optimization webpage opening time, belong to field of computer technology.The method includes:Count the actual mean value of the webpage opening time in the n-th period, n >=1;Compare the magnitude relationship between actual mean value and preset target average;The optimal way used within the (n+1)th period is determined according to comparison result, the optimal way is for optimizing webpage opening time.The disclosure solves the problems, such as that the relevant technologies optimize webpage opening time only with one or more fixed optimal ways;Using target average as global optimization target, under the premise of clear global optimization target, different optimal ways is selectively used in conjunction with the actual conditions of webpage opening time, has achieved the effect that the optimisation strategy for adjusting webpage opening time according to actual demand dynamic.
Description
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of method and apparatus of optimization webpage opening time.
Background technology
For user when browsing webpage using browser, webpage opening time is the service performance and use for weighing browser
The important indicator of family experience.So-called webpage opening time, refer to from user clicks on links at the time of or from user in browser
From at the time of inputting network address in address field and click determining, until web page contents start to stop at the time of display, required takes as net
Page opening time.
Be presently used for optimization webpage opening time mode there are a variety of.For example, obtaining webpage money from browser rs cache
Source, to shorten webpage opening time.For another example when the preferential loaded and displayed page necessary resource and by this kind of inessential money of picture
Source delay loading, to shorten webpage opening time.For another example being optimized in server end, processing speed faster generation is used
It manages server and distributes web page resources, to achieve the purpose that shorten webpage opening time.
Invention content
The embodiment of the present disclosure provides a kind of method and apparatus of optimization webpage opening time.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of method of optimization webpage opening time, the method are provided
Including:
Count the actual mean value of the webpage opening time in the n-th period, n >=1;
Compare the magnitude relationship between the actual mean value and preset target average;
Determine that the optimal way used within the (n+1)th period, the optimal way are described for optimizing according to comparison result
Webpage opening time.
Optionally, the optimal way used within the (n+1)th period according to comparison result determination, including:
The optimization rank used within (n+1)th period is determined according to the comparison result;
Optimal way corresponding with the optimization rank is chosen according to predetermined correspondence;
Wherein, the predetermined correspondence includes the correspondence between the optimization rank and the optimal way.
Optionally, correspond to optimal way comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way in sequence, m+1 grades of optimization ranks correspond to the preceding j kinds optimal way in the optimal way sequence;
Wherein, the k kinds optimization side being arranged in order comprising sequence from high to low according to priority in the optimal way sequence
Formula, 0 < i < j≤k, 1≤m≤M-1.
Optionally, the optimization rank used within (n+1)th period according to comparison result determination, including:
When the actual mean value is more than the target average, and in n-th period optimization rank that uses for most
When advanced optimization rank, continue to use the five-star optimization rank within (n+1)th period;
Alternatively,
When the actual mean value be more than the target average, and n-th period in use optimization rank do not reach
When to the five-star optimization rank, using higher than the optimization rank used in n-th period within (n+1)th period
Optimization rank;
Alternatively,
When the actual mean value is less than the target average, and in n-th period optimization rank that uses for most
When rudimentary optimization rank, continue the optimization rank using the lowermost level within (n+1)th period;
Alternatively,
When the actual mean value be less than the target average, and n-th period in use optimization rank do not reach
To the lowermost level optimization rank when, using lower than the optimization rank used in n-th period within (n+1)th period
Optimization rank.
Optionally, the optimal way includes:
The optimization of resource acquisition approach, the optimization of resource load mode, server-side optimization, the network optimization, page static, generation
At least one of code optimization.
According to the second aspect of the embodiment of the present disclosure, a kind of device of optimization webpage opening time, described device are provided
Including:
Statistical module is configured as the actual mean value of the webpage opening time in the n-th period of statistics, n >=1;
Comparing module is configured as comparing the size between the actual mean value and preset target average and closes
System;
Determining module is configured as determining the optimal way used within the (n+1)th period, the optimization according to comparison result
Mode is for optimizing the webpage opening time.
Optionally, the determining module, including:Determination sub-module and selection submodule;
The determination sub-module is configured as being used within (n+1)th period according to comparison result determination excellent
Change rank;
The selection submodule is configured as choosing optimization side corresponding with the optimization rank according to predetermined correspondence
Formula;
Wherein, the predetermined correspondence includes the correspondence between the optimization rank and the optimal way.
Optionally, correspond to optimal way comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way in sequence, m+1 grades of optimization ranks correspond to the preceding j kinds optimal way in the optimal way sequence;
Wherein, the k kinds optimization side being arranged in order comprising sequence from high to low according to priority in the optimal way sequence
Formula, 0 < i < j≤k, 1≤m≤M-1.
Optionally, the determination sub-module, including:First level is using submodule, second level using submodule, third
Rank uses submodule using submodule and fourth level;
The first level uses submodule, is configured as being more than the target average when the actual mean value, and
When the optimization rank used in n-th period is five-star optimization rank, continue within (n+1)th period using described
Five-star optimization rank;
The second level uses submodule, is configured as being more than the target average when the actual mean value, and
When the optimization rank used in n-th period is not up to the five-star optimization rank, used within (n+1)th period
The optimization rank higher than the optimization rank used in n-th period;
The third level uses submodule, is configured as being less than the target average when the actual mean value, and
When the optimization rank used in n-th period is the optimization rank of lowermost level, continue within (n+1)th period using described
The optimization rank of lowermost level;
The fourth level uses submodule, is configured as being less than the target average when the actual mean value, and
When the optimization rank used in n-th period is not up to the optimization rank of the lowermost level, used within (n+1)th period
The optimization rank lower than the optimization rank used in n-th period.
Optionally, the optimal way includes:
The optimization of resource acquisition approach, the optimization of resource load mode, server-side optimization, the network optimization, page static, generation
At least one of code optimization.
According to the third aspect of the embodiment of the present disclosure, a kind of device of optimization webpage opening time, described device are provided
Including:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Count the actual mean value of the webpage opening time in the n-th period, n >=1;
Compare the magnitude relationship between the actual mean value and preset target average;
Determine that the optimal way used within the (n+1)th period, the optimal way are described for optimizing according to comparison result
Webpage opening time.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
By carrying out average value statistics to the webpage opening time under actual conditions, then according to the actual average counted
Magnitude relationship between value and target average is dynamically determined out the optimal way used in following sessions;Solves related skill
The problem of art optimizes webpage opening time only with one or more fixed optimal ways;It is total with target average
Body optimization aim is selectively adopted under the premise of clear global optimization target in conjunction with the actual conditions of webpage opening time
With different optimal ways, the optimisation strategy that webpage opening time is adjusted according to actual demand dynamic is achieved the effect that.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved by each embodiment of the disclosure;
Fig. 2 is a kind of flow chart of the method for optimization webpage opening time shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the method for the optimization webpage opening time shown according to another exemplary embodiment;
Fig. 4 is a kind of block diagram of the device of optimization webpage opening time shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the device of the optimization webpage opening time shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of device shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved by each embodiment of the disclosure, which can be with
Including terminal 120 and server 140.Wherein:
Operation has the application program for having Webpage load and display function, such as browser in terminal 120.Terminal 120
Can be mobile phone, tablet computer, E-book reader, multimedia player, pocket computer on knee, desktop computer and intelligence
Energy TV etc..
Terminal 120 is connected by wireless network or cable network with server 140.
The application program of above-mentioned such as browser etc that server 140 is used to run into terminal 120 provides web (nets
Page) service.Server 140 can be a server, or the server cluster or one being made of several servers
A cloud computing service center.
It should be noted is that:The method for the optimization webpage opening time that the embodiment of the present disclosure provides, can be by terminal
The application program of the above-mentioned such as browser etc run in 120 is individually performed, can also be by above-mentioned such as browser etc
Application program is executed with server reciprocal, and the embodiment of the present disclosure is not construed as limiting this.
Fig. 2 is a kind of flow chart of the method for optimization webpage opening time shown according to an exemplary embodiment, this reality
It applies example to be applied to be illustrated in browser in this way, this method may include the following steps:
In step 202, the actual mean value of the webpage opening time in the n-th period, n >=1 are counted.
In step 204, the magnitude relationship between actual mean value and preset target average is compared.
In step 206, determine that the optimal way used within the (n+1)th period, the optimal way are used according to comparison result
In optimization webpage opening time.
In conclusion method provided in this embodiment, by carrying out average value to the webpage opening time under actual conditions
Statistics is dynamically determined out following sessions then according to the magnitude relationship between the actual mean value and target average counted
The optimal way of interior use;Solve the relevant technologies only with one or more fixed optimal ways to webpage opening time into
The problem of row optimization;Using target average as global optimization target, under the premise of clear global optimization target, beaten in conjunction with webpage
The actual conditions of ETAD expected time of arrival and departure selectively use different optimal ways, have reached and have been beaten according to actual demand dynamic adjustment webpage
The effect of the optimisation strategy of ETAD expected time of arrival and departure.
Fig. 3 is a kind of flow chart of the method for the optimization webpage opening time shown according to another exemplary embodiment, this
Embodiment is applied to be illustrated in browser in this way, and this method may include the following steps:
In step 302, the actual mean value of the webpage opening time in the n-th period, n >=1 are counted.
Wherein, webpage opening time refer to from user clicks on links at the time of or from user it is defeated in the address field of browser
From at the time of entering network address and click determining, until web page contents start to stop at the time of display, required takes.
When user actually uses browser, browser acquires several webpage opening times according to actual conditions, and counts
Count stating the average value of several webpage opening times in.Browser can at times carry out the actual mean value of webpage opening time
Statistics.For example, for the n-th period, browser records each webpage opening time in n-th period, it is assumed that is followed successively by t1、
t2、…、tp, then the actual mean value of the webpage opening time in n-th periodWherein k ∈ [1, p], p >=1.
Optionally, it when the quantity of the webpage opening time recorded in the n-th period is more, in order to reduce calculation amount, improves
Data-handling efficiency, when sampling obtains q webpage opening in the p webpage opening time that browser can be recorded out of n-th period
Between (p > q), then put down the average value of the q webpage opening time as the reality of the webpage opening time in n-th period
Mean value T1.Wherein, the equidistantly mode of sampling or Non-uniform sampling can be used in sample mode.
Optionally, when webpage opening time is not recorded in the n-th period namely user is not carried out within n-th period
When opening the operation of webpage, the actual mean value T of the webpage opening time in n-th period10 can be denoted as.Alternatively, can be by n-th-
Actual mean value T of the actual mean value of webpage opening time in 1 period as the webpage opening time in n-th period1。
In step 304, the magnitude relationship between actual mean value and preset target average is compared.
Wherein, target average is the global optimization target of webpage opening time.Target average can be according to actual excellent
Change demand is set in advance.For example, the target average can be technical staff's rule of thumb preset empirical value.Again
For example, the target average can also be investigated by user, what statistics obtained that most users are thought more opens glibly
Webpage opening time needed for webpage, and the webpage opening time that the statistics is obtained is as target average.In the present embodiment
In, target average is denoted as T2。
Browser counts to obtain the actual mean value T in the n-th period1Afterwards, by actual mean value T1With target average T2
It is compared, determines the magnitude relationship of the two.That is, judging whether actual webpage opening time has reached global optimization mesh
Mark.
Later, browser can be according to actual mean value T1With target average T2Between comparison result determine at n-th
The optimal way used in the (n+1)th period after section, the optimal way is for optimizing webpage opening time.Optionally, it browses
Device can as follows 306 and step 308 determine the optimal way that is used within the (n+1)th period.
Within step 306, the optimization rank used within the (n+1)th period is determined according to comparison result.
In step 308, optimal way corresponding with optimization rank is chosen according to predetermined correspondence.
Wherein, predetermined correspondence includes the correspondence optimized between rank and optimal way.
In the present embodiment, optimization rank several different is preset.Browser is first according to actual mean value T1
With target average T2Between comparison result determine the optimization rank that is used within the (n+1)th period, then inquiry is predetermined corresponds to
Relationship chooses optimal way corresponding with the above-mentioned optimization rank determined, which is at (n+1)th
The optimal way used in section.
There are a variety of for the optimal way of webpage opening time.For example, optimal way includes but not limited to:Resource acquisition approach
At least one of optimization, the optimization of resource load mode, server-side optimization, the network optimization, page static, code optimization.
In the following, being briefly described to the above-mentioned several optimal ways enumerated:
1, resource acquisition approach optimizes, and refers to the acquiring way for optimizing web page resources.The acquiring way of web page resources is usual
Including obtaining web page resources from server and obtaining web page resources from local cache.Web page resources are obtained compared to from server,
The speed for obtaining web page resources from local cache faster, can shorten webpage opening time.But the webpage obtained from local cache
Resource is pre-stored, which may not be newest web page resources namely this is pre-stored
Web page resources may be expired, may lead to inaccurate, page load error of content of pages etc. using expired web page resources
Risk.
2, resource load mode optimizes, and refers to the load mode for optimizing web page resources.For example, when the preferential loaded and displayed page
Necessary resource, such as main document, CSS (Cascading Style Sheets, cascading style sheets) files and JS (Java
Script) file etc., and by this kind of inessential resource delay loading of picture file, to shorten webpage opening time.
3, server-side optimization refers to the configuration for optimizing server end.For example, using the faster agency service of processing speed
Device distributes web page resources, to achieve the purpose that shorten webpage opening time.As it can be seen that the optimal way need server resource and
The support of bandwidth resources, and increasing with service user, corresponding server resource and bandwidth resources can also increase, cost
Increase therewith.
4, the network optimization refers to the configuration for optimizing network.For example, using the faster CDN (Content of processing speed
Delivery Network, content distributing network), to achieve the purpose that shorten webpage opening time.The optimal way also can
With increasing for service user so that cost increases therewith.
5, page static refers to issuing dynamic page in the form of static page.Page static technology can
The access speed for improving the page, so as to shorten webpage opening time.Although the optimal way can shorten webpage opening time,
It is that can sacrifice part display effect.
6, code optimization refers to the size for reducing code file, to improve transmission and the loading velocity of code file, into
And shorten webpage opening time.For example, code simplifies optimization, code merges optimization etc..
It should be noted is that:The above-mentioned several optimal ways enumerated are merely exemplary, and are not used to limit this public affairs
It opens.
Since different optimal ways has a different advantage and disadvantage, and the selection of optimal way should in conjunction with actual conditions and
Actual optimization demand is adjusted into Mobile state.Therefore, in the present embodiment, it is that different optimization ranks is pre-configured with different optimization
Mode uses and above-mentioned determination after combining actual conditions and actual optimization demand to determine optimization rank in following sessions
The corresponding optimal way of optimization rank gone out, to reach the optimal way for adjusting webpage opening time according to actual demand dynamic
Purpose.
In a kind of possible embodiment, technical staff in combination with the quantity of service user, website operation cost and
The actual conditions such as the advantage and disadvantage of a variety of different optimal ways, using means such as cost accounting, risk assessment, scale tests to each
The different optimal way of kind carries out priority ranking.For example, technical staff can build optimal way sequence, the optimal way in advance
The k kind optimal ways being arranged in order comprising sequence from high to low according to priority in sequence, k >=1.It should be noted is that:
For different actual conditions, the priority orders between a variety of different optimal ways are also different, and the present embodiment is to this
It is not construed as limiting.
Technical staff can configure different optimization ranks and different optimal ways after building optimal way sequence
Between correspondence.Wherein, correspond to optimal way comprising M grades of optimization ranks, m grades of optimization ranks in predetermined correspondence
Preceding i kinds optimal way in sequence, m+1 grades of optimization ranks correspond to the preceding j kinds optimal way in optimal way sequence;Its
In, 0 < i < j≤k, 1≤m≤M-1.
In one example, it is assumed that the k being arranged in order comprising sequence from high to low according to priority in optimal way sequence
Middle optimal way be optimal way 1, optimal way 2 ..., optimal way k, and assume to optimize comprising k grade in predetermined correspondence
Rank (namely M=k), then predetermined correspondence can be as shown in following table -1:
Optimize rank | Optimal way |
1st grade | Optimal way 1 |
2nd grade | Optimal way 1 and 2 |
3rd level | Optimal way 1 to 3 |
… | … |
M grades | Optimal way 1 is to m |
… | … |
Kth grade | Optimal way 1 is to k |
Table -1
Correspondingly, when predetermined correspondence is as described above, above-mentioned steps 306 may include following several possible feelings
Condition:
1, when actual mean value is more than target average, and in the n-th period the optimization rank that uses for five-star optimization
When rank, continue to use five-star optimization rank within the (n+1)th period.
When actual mean value is more than target average, shows that the webpage opening time in the n-th period is still long, do not reach
To global optimization target, it is therefore desirable to select higher optimization rank to expand and select more optimal ways.
And when the optimization rank used in the n-th period for five-star optimization rank when, namely within the n-th period
When through using all optimal ways, it can not continue to improve optimization rank, browser continued to use highest within the (n+1)th period
The optimization rank of grade.
2, when actual mean value be more than target average, and the n-th period in use optimization rank it is not up to five-star
When optimizing rank, the optimization rank higher than the optimization rank used in the n-th period is used within the (n+1)th period.
When the optimization rank used in the n-th period is not up to five-star optimization rank, can continue to improve optimization rank,
More optimal ways are selected to expand, browser is within the (n+1)th period using higher than the optimization rank used in the n-th period
Optimize rank.Since optimization level you can well imagine height, the optimal way of use is increased on the original basis, and it is practical flat to can reach shortening
The purpose of mean value so that actual mean value is closer to target average.
Optionally, optimization rank more higher leveled than the optimization rank used in the n-th period is used within the (n+1)th period.Example
Such as, it is assumed that the optimization rank used within the n-th period is optimal way 1 for the 1st grade of optimization rank, corresponding optimal way, then
Browser is optimal way 1 and 2 liang using the 2nd grade of optimization rank, corresponding optimal way within the (n+1)th period in the case
Kind.
3, when actual mean value is less than target average, and in the n-th period the optimization rank that uses for the optimization of lowermost level
When rank, continue the optimization rank using lowermost level within the (n+1)th period.
When actual mean value is less than target average, it is overall excellent to show that the webpage opening time in the n-th period has reached
Change target, therefore lower optimization rank can be selected to use less optimal way.
And when the optimization rank used in the n-th period for the optimization rank of lowermost level when, can not continue reduce optimization
Rank, browser continue the optimization rank using lowermost level within the (n+1)th period.
Wherein, the optimization rank of lowermost level corresponds to one or more optimal ways of highest priority.Optionally, preferentially
A kind of highest optimal way of grade can not optimized.
4, when actual mean value be less than target average, and the n-th period in use optimization rank be not up to lowermost level
When optimizing rank, the optimization rank lower than the optimization rank used in the n-th period is used within the (n+1)th period.
When the optimization rank used in the n-th period is not up to the optimization rank of lowermost level, can continue to reduce optimization rank,
To use less optimal way, browser to use the optimization lower than the optimization rank used in the n-th period within the (n+1)th period
Rank.Since optimization rank reduces, the optimal way of use is reduced on the original basis, is ensuring that actual mean value is close
Under the premise of target average, use less optimal way as far as possible with reduce processing expense, it is cost-effective and to error
Equivalent risk is controlled.
Optionally, the optimization rank of level-one lower than the optimization rank used in the n-th period is used within the (n+1)th period.Example
Such as, it is assumed that the optimization rank used within the n-th period optimizes rank for 3rd level, and corresponding optimal way is optimal way 1 to 3
Three kinds, then using the 2nd grade of optimization rank within the (n+1)th period, corresponding optimal way is reduced to excellent browser in the case
Change mode 1 and 2 two kind.
It should be noted is that:In the present embodiment, only in the method for the optimization webpage opening time by being transported in terminal
Capable browser, which is individually performed, to be illustrated.In other possible embodiments, this method can also by browser with
Server reciprocal executes.For example, browser is responsible for acquiring actual webpage opening time, and to the reality of webpage opening time
The calculating of border average value, subsequent comparison and processing procedure transfer to server to execute.In this regard, the present embodiment is not construed as limiting.
In conclusion method provided in this embodiment, by carrying out average value to the webpage opening time under actual conditions
Statistics is dynamically determined out following sessions then according to the magnitude relationship between the actual mean value and target average counted
The optimal way of interior use;Solve the relevant technologies only with one or more fixed optimal ways to webpage opening time into
The problem of row optimization;Using target average as global optimization target, under the premise of clear global optimization target, beaten in conjunction with webpage
The actual conditions of ETAD expected time of arrival and departure selectively use different optimal ways, have reached and have been beaten according to actual demand dynamic adjustment webpage
The effect of the optimisation strategy of ETAD expected time of arrival and departure.
In addition, method provided in this embodiment sets various differences also by considering a variety of different optimal ways
Optimal way between priority orders, the preferential optimal way for selecting priority high such as preferentially selects that at low cost, risk is small
And the apparent optimal way of effect of optimization, it can both promote user and open the fluency experience of webpage, while can also effectively control
Cost and risk processed.When actual webpage opening time is not up to global optimization target, it is slightly lower to expand the other priority of selection
Optimal way, further shorten webpage opening time.And when actual webpage opening time has reached global optimization target,
Under the premise of ensuring that user opens the fluency experience of webpage, less optimal way is used as far as possible, or even do not optimize, with
Reduce processing expense, it is cost-effective and to error equivalent risk control.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of the device of optimization webpage opening time shown according to an exemplary embodiment.Optionally,
Software function module included by the device may be implemented as some or all of of browser.The device may include:System
Count module 410, comparing module 420 and determining module 430.
Statistical module 410 is configured as the actual mean value of the webpage opening time in the n-th period of statistics, n >=1.
Comparing module 420, be configured as comparing the statistical module 410 count the obtained actual mean value in advance
Magnitude relationship between the target average of setting.
Determining module 430 is configured as the comparison result obtained according to the comparing module 420 and determines in the (n+1)th period
The optimal way of interior use, the optimal way is for optimizing the webpage opening time.
In conclusion device provided in this embodiment, by carrying out average value to the webpage opening time under actual conditions
Statistics is dynamically determined out following sessions then according to the magnitude relationship between the actual mean value and target average counted
The optimal way of interior use;Solve the relevant technologies only with one or more fixed optimal ways to webpage opening time into
The problem of row optimization;Using target average as global optimization target, under the premise of clear global optimization target, beaten in conjunction with webpage
The actual conditions of ETAD expected time of arrival and departure selectively use different optimal ways, have reached and have been beaten according to actual demand dynamic adjustment webpage
The effect of the optimisation strategy of ETAD expected time of arrival and departure.
Fig. 5 is a kind of block diagram of the device of the optimization webpage opening time shown according to another exemplary embodiment.It is optional
Ground, the software function module included by the device may be implemented as some or all of of browser.The device may include:
Statistical module 410, comparing module 420 and determining module 430.
Statistical module 410 is configured as the actual mean value of the webpage opening time in the n-th period of statistics, n >=1.
Comparing module 420, be configured as comparing the statistical module 410 count the obtained actual mean value in advance
Magnitude relationship between the target average of setting.
Determining module 430 is configured as the comparison result obtained according to the comparing module 420 and determines in the (n+1)th period
The optimal way of interior use, the optimal way is for optimizing the webpage opening time.
Optionally, the determining module 430, including:Determination sub-module 430a and selection submodule 430b.
The determination sub-module 430a is configured as the comparison result obtained according to the comparing module 420 and determines in institute
State the optimization rank used in the (n+1)th period.
The selection submodule 430b is configured as being chosen according to predetermined correspondence true with the determination sub-module 430a
The fixed corresponding optimal way of the optimization rank.
Wherein, the predetermined correspondence includes the correspondence between the optimization rank and the optimal way.
Optionally, correspond to optimal way comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way in sequence, m+1 grades of optimization ranks correspond to the preceding j kinds optimal way in the optimal way sequence;
Wherein, the k kinds optimization side being arranged in order comprising sequence from high to low according to priority in the optimal way sequence
Formula, 0 < i < j≤k, 1≤m≤M-1.
Optionally, the determination sub-module 430a, including:First level is using submodule 430a1, second level using son
Module 430a2, third level use submodule 430a4 using submodule 430a3 and fourth level.
The first level uses submodule 430a1, is configured as average more than the target when the actual mean value
When the optimization rank for being worth, and using in n-th period is five-star optimization rank, continue to adopt within (n+1)th period
With the five-star optimization rank.
The second level uses submodule 430a2, is configured as average more than the target when the actual mean value
When the optimization rank for being worth, and being used in n-th period is not up to the five-star optimization rank, in (n+1)th period
It is interior to use the optimization rank higher than the optimization rank used in n-th period.
The third level uses submodule 430a3, is configured as average less than the target when the actual mean value
When the optimization rank for being worth, and using in n-th period is the optimization rank of lowermost level, continue to adopt within (n+1)th period
With the optimization rank of the lowermost level.
The fourth level uses submodule 430a4, is configured as average less than the target when the actual mean value
When the optimization rank for being worth, and being used in n-th period is not up to the optimization rank of the lowermost level, in (n+1)th period
It is interior to use the optimization rank lower than the optimization rank used in n-th period.
Optionally, the optimal way includes:The optimization of resource acquisition approach, the optimization of resource load mode, server end are excellent
At least one of change, the network optimization, page static, code optimization.
In conclusion device provided in this embodiment, by carrying out average value to the webpage opening time under actual conditions
Statistics is dynamically determined out following sessions then according to the magnitude relationship between the actual mean value and target average counted
The optimal way of interior use;Solve the relevant technologies only with one or more fixed optimal ways to webpage opening time into
The problem of row optimization;Using target average as global optimization target, under the premise of clear global optimization target, beaten in conjunction with webpage
The actual conditions of ETAD expected time of arrival and departure selectively use different optimal ways, have reached and have been beaten according to actual demand dynamic adjustment webpage
The effect of the optimisation strategy of ETAD expected time of arrival and departure.
In addition, device provided in this embodiment sets various differences also by considering a variety of different optimal ways
Optimal way between priority orders, the preferential optimal way for selecting priority high such as preferentially selects that at low cost, risk is small
And the apparent optimal way of effect of optimization, it can both promote user and open the fluency experience of webpage, while can also effectively control
Cost and risk processed.When actual webpage opening time is not up to global optimization target, it is slightly lower to expand the other priority of selection
Optimal way, further shorten webpage opening time.And when actual webpage opening time has reached global optimization target,
Under the premise of ensuring that user opens the fluency experience of webpage, less optimal way is used as far as possible, or even do not optimize, with
Reduce processing expense, it is cost-effective and to error equivalent risk control.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram of device 600 shown according to an exemplary embodiment.There is operation in device 600 has net
The application program of the page page load and display function, such as browser.Device 600 can be mobile phone, computer, digital broadcasting
Terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, device 600 may include following one or more components:Processing component 602, memory 604, power supply
Component 606, multimedia component 608, audio component 610, the interface 612 of input/output (I/O), sensor module 614, and
Communication component 616.
The integrated operation of 602 usual control device 600 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 602 may include that one or more processors 620 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just
Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate
Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown
Example includes instruction for any application program or method that are operated on device 600, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system
System, one or more power supplys and other generated with for device 600, management and the associated component of distribution electric power.
Multimedia component 608 is included in the screen of one output interface of offer between described device 600 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 608 includes a front camera and/or rear camera.When device 600 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike
Wind (MIC), when device 600 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set
Part 616 is sent.In some embodiments, audio component 610 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented
Estimate.For example, sensor module 614 can detect the state that opens/closes of device 600, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 600, and sensor module 614 can be with 600 1 components of detection device 600 or device
Position change, the existence or non-existence that user contacts with device 600,600 orientation of device or acceleration/deceleration and device 600
Temperature change.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device
600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 620 of device 600 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 600
When device executes so that device 600 is able to carry out such as above-mentioned Fig. 2 or the optimization webpage opening time of embodiment illustrated in fig. 3 offer
Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (5)
1. a kind of method of optimization webpage opening time, which is characterized in that the method includes:
Count the actual mean value of the webpage opening time in the n-th period, n >=1;
Compare the magnitude relationship between the actual mean value and preset target average;
The optimal way used within the (n+1)th period is determined according to comparison result, the optimal way is for optimizing the webpage
Opening time;
The optimal way used within the (n+1)th period according to comparison result determination, including:
The optimization rank used within (n+1)th period is determined according to the comparison result;
Optimal way corresponding with the optimization rank is chosen according to predetermined correspondence;
Wherein, correspond in optimal way sequence comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way, m+1 grades optimization ranks correspond to the optimal way sequence in preceding j kinds optimal way;It is described excellent
The k kind optimal ways being arranged in order comprising sequence from high to low according to priority in change mode sequence, 0 < i < j≤k, 1≤m≤
M-1;
The optimization rank used within (n+1)th period according to comparison result determination, including:
When the actual mean value is more than the target average, and in n-th period optimization rank that uses to be highest
Optimization rank when, continue within (n+1)th period use the five-star optimization rank;
Alternatively,
When the actual mean value be more than the target average, and n-th period in use optimization rank be not up to institute
When stating five-star optimization rank, using higher than the optimization rank used in n-th period excellent within (n+1)th period
Change rank;
Alternatively,
When the actual mean value is less than the target average, and in n-th period optimization rank that uses for lowermost level
Optimization rank when, continue the optimization rank using the lowermost level within (n+1)th period;
Alternatively,
When the actual mean value be less than the target average, and n-th period in use optimization rank be not up to institute
When stating the optimization rank of lowermost level, using lower than the optimization rank used in n-th period excellent within (n+1)th period
Change rank.
2. according to the method described in claim 1, it is characterized in that, the optimal way includes:
The optimization of resource acquisition approach, the optimization of resource load mode, server-side optimization, the network optimization, page static, code are excellent
At least one of change.
3. a kind of device of optimization webpage opening time, which is characterized in that described device includes:
Statistical module is configured as the actual mean value of the webpage opening time in the n-th period of statistics, n >=1;
Comparing module is configured as comparing the magnitude relationship between the actual mean value and preset target average;
Determining module is configured as determining the optimal way used within the (n+1)th period, the optimal way according to comparison result
For optimizing the webpage opening time;
The determining module, including:Determination sub-module and selection submodule;
The determination sub-module is configured as determining the optimization level used within (n+1)th period according to the comparison result
Not;
The selection submodule is configured as choosing optimal way corresponding with the optimization rank according to predetermined correspondence;
Wherein, correspond in optimal way sequence comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way, m+1 grades optimization ranks correspond to the optimal way sequence in preceding j kinds optimal way;It is described excellent
The k kind optimal ways being arranged in order comprising sequence from high to low according to priority in change mode sequence, 0 < i < j≤k, 1≤m≤
M-1;
The determination sub-module, including:First level is using submodule, second level using submodule, third level using son
Module and fourth level use submodule;
The first level uses submodule, is configured as being more than the target average when the actual mean value, and described
When the optimization rank used in n-th period is five-star optimization rank, continue to use the highest within (n+1)th period
The optimization rank of grade;
The second level uses submodule, is configured as being more than the target average when the actual mean value, and described
When the optimization rank used in n-th period is not up to the five-star optimization rank, using than institute within (n+1)th period
State the high optimization rank of the optimization rank used in the n-th period;
The third level uses submodule, is configured as being less than the target average when the actual mean value, and described
When the optimization rank used in n-th period is the optimization rank of lowermost level, continue within (n+1)th period using described minimum
The optimization rank of grade;
The fourth level uses submodule, is configured as being less than the target average when the actual mean value, and described
When the optimization rank used in n-th period is not up to the optimization rank of the lowermost level, using than institute within (n+1)th period
State the low optimization rank of the optimization rank used in the n-th period.
4. device according to claim 3, which is characterized in that the optimal way includes:
The optimization of resource acquisition approach, the optimization of resource load mode, server-side optimization, the network optimization, page static, code are excellent
At least one of change.
5. a kind of device of optimization webpage opening time, which is characterized in that described device includes:
Processor;
Memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Count the actual mean value of the webpage opening time in the n-th period, n >=1;
Compare the magnitude relationship between the actual mean value and preset target average;
The optimal way used within the (n+1)th period is determined according to comparison result, the optimal way is for optimizing the webpage
Opening time;
The optimal way used within the (n+1)th period according to comparison result determination, including:
The optimization rank used within (n+1)th period is determined according to the comparison result;
Optimal way corresponding with the optimization rank is chosen according to predetermined correspondence;
Wherein, correspond in optimal way sequence comprising M grades of optimization ranks, m grades of optimization ranks in the predetermined correspondence
Preceding i kinds optimal way, m+1 grades optimization ranks correspond to the optimal way sequence in preceding j kinds optimal way;It is described excellent
The k kind optimal ways being arranged in order comprising sequence from high to low according to priority in change mode sequence, 0 < i < j≤k, 1≤m≤
M-1;
The optimization rank used within (n+1)th period according to comparison result determination, including:
When the actual mean value is more than the target average, and in n-th period optimization rank that uses to be highest
Optimization rank when, continue within (n+1)th period use the five-star optimization rank;
Alternatively,
When the actual mean value be more than the target average, and n-th period in use optimization rank be not up to institute
When stating five-star optimization rank, using higher than the optimization rank used in n-th period excellent within (n+1)th period
Change rank;
Alternatively,
When the actual mean value is less than the target average, and in n-th period optimization rank that uses for lowermost level
Optimization rank when, continue the optimization rank using the lowermost level within (n+1)th period;
Alternatively,
When the actual mean value be less than the target average, and n-th period in use optimization rank be not up to institute
When stating the optimization rank of lowermost level, using lower than the optimization rank used in n-th period excellent within (n+1)th period
Change rank.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510206427.1A CN104850595B (en) | 2015-04-27 | 2015-04-27 | Optimize the method and apparatus of webpage opening time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510206427.1A CN104850595B (en) | 2015-04-27 | 2015-04-27 | Optimize the method and apparatus of webpage opening time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104850595A CN104850595A (en) | 2015-08-19 |
CN104850595B true CN104850595B (en) | 2018-07-27 |
Family
ID=53850240
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510206427.1A Active CN104850595B (en) | 2015-04-27 | 2015-04-27 | Optimize the method and apparatus of webpage opening time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104850595B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491167B (en) * | 2016-01-25 | 2019-05-31 | 国网重庆市电力公司客户服务中心 | A kind of implementation method of real-time perception browser terminal user's operation experience |
CN110209975B (en) * | 2019-05-30 | 2021-11-02 | 百度在线网络技术(北京)有限公司 | Method, apparatus, device and storage medium for providing object |
CN111399947B (en) * | 2020-06-02 | 2020-09-04 | 平安国际智慧城市科技股份有限公司 | Application program guide page optimization pushing method and device and computer equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035883A (en) * | 2010-11-26 | 2011-04-27 | 百度在线网络技术(北京)有限公司 | Method and device for optimizing webpage in network equipment |
CN102521100A (en) * | 2011-12-01 | 2012-06-27 | 江苏仕德伟网络科技股份有限公司 | Method for determining time spent in opening web page by website visitor |
CN103412812A (en) * | 2013-08-23 | 2013-11-27 | 北京奇虎科技有限公司 | Method and device for monitoring running status of browser |
CN103778132A (en) * | 2012-10-19 | 2014-05-07 | 佳能株式会社 | Method and device for webpage operation, method and device for webpage presentation and electronic device |
CN104156401A (en) * | 2014-07-22 | 2014-11-19 | 小米科技有限责任公司 | Webpage loading method, device and equipment |
CN104461742A (en) * | 2014-12-15 | 2015-03-25 | 北京奇虎科技有限公司 | Method and device for optimizing computing equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8627204B2 (en) * | 2011-10-18 | 2014-01-07 | Microsoft Corporation | Custom optimization of web pages |
-
2015
- 2015-04-27 CN CN201510206427.1A patent/CN104850595B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035883A (en) * | 2010-11-26 | 2011-04-27 | 百度在线网络技术(北京)有限公司 | Method and device for optimizing webpage in network equipment |
CN102521100A (en) * | 2011-12-01 | 2012-06-27 | 江苏仕德伟网络科技股份有限公司 | Method for determining time spent in opening web page by website visitor |
CN103778132A (en) * | 2012-10-19 | 2014-05-07 | 佳能株式会社 | Method and device for webpage operation, method and device for webpage presentation and electronic device |
CN103412812A (en) * | 2013-08-23 | 2013-11-27 | 北京奇虎科技有限公司 | Method and device for monitoring running status of browser |
CN104156401A (en) * | 2014-07-22 | 2014-11-19 | 小米科技有限责任公司 | Webpage loading method, device and equipment |
CN104461742A (en) * | 2014-12-15 | 2015-03-25 | 北京奇虎科技有限公司 | Method and device for optimizing computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104850595A (en) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10652618B2 (en) | Transmitting video clips of viewers' reactions during a broadcast of a live video stream | |
US10142279B2 (en) | Method and system for presenting a listing of message logs | |
US11146646B2 (en) | Non-disruptive display of video streams on a client system | |
US10600224B1 (en) | Techniques for animating stickers with sound | |
US10867320B2 (en) | Navigating through content items on a computing device | |
AU2013370175B2 (en) | Re-ranking story content | |
US8825668B2 (en) | Method and apparatus for updating song playlists based on received user ratings | |
US20150160832A1 (en) | Dismissing Interactive Elements in a User Interface | |
US10917485B2 (en) | Implicit contacts in an online social network | |
US20150143260A1 (en) | State-Machine-Driven User-Interface Interactions | |
US10498614B2 (en) | Content prioritization based on packet size | |
AU2014408285A1 (en) | Device, method, and graphical user interface for presenting and installing applications | |
CN104050266B (en) | User behavior recording method, device and web browser | |
US10592558B2 (en) | User-card interfaces | |
JP2018502408A (en) | Method, apparatus, facility and system for pushing information | |
WO2022100513A1 (en) | Display method and apparatus for hotspot list, electronic device and storage medium | |
AU2014223834A1 (en) | Social context for applications | |
WO2014164446A1 (en) | Live faces | |
US20150341232A1 (en) | Daily Counts and Usage Probabilities For a User of an Online Service | |
CN104850595B (en) | Optimize the method and apparatus of webpage opening time | |
CN111709732A (en) | Display method and device and electronic equipment | |
CN110366043A (en) | Method for processing video frequency, device, electronic equipment and readable medium | |
CN110807680B (en) | Data object information processing method and device and electronic equipment | |
US9086784B2 (en) | Method, apparatus and computer program for providing user-specific information on a graphical user interface | |
WO2020235523A1 (en) | Data processing device, data processing method, data processing program, control program, and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |