CN104778167B - A kind of webpage load progress control method, device and terminal - Google Patents
A kind of webpage load progress control method, device and terminal Download PDFInfo
- Publication number
- CN104778167B CN104778167B CN201410010100.2A CN201410010100A CN104778167B CN 104778167 B CN104778167 B CN 104778167B CN 201410010100 A CN201410010100 A CN 201410010100A CN 104778167 B CN104778167 B CN 104778167B
- Authority
- CN
- China
- Prior art keywords
- web page
- current web
- load
- timer
- webpage
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of webpage load progress control method, device and terminals, the method comprise the steps that obtaining the stress state signal that the browser reports in the loading procedure of current web page;After getting the webpage in the stress state signal and starting to load signal, the primary resource content of current web page whether loaded is detected, the first testing result is obtained;When the primary resource content loaded of first testing result instruction current web page, starting timing duration is the timer of first time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is shown as load progress and is completed.The present invention can to avoid when web page contents occur progress bar do not terminate for a long time also, cause user to feel that webpage loads too slow problem, promote user experience.
Description
Technical field
The present invention relates to the browser technology fields more particularly to a kind of webpage load progress control method, dress in terminal
It sets and terminal.
Background technique
With the rapid development of wireless communication technique and Internet technology, on mobile terminals using the use of browser online
Family is more and more.As mobile interchange web portal, the importance of browser is self-evident.How browsing is improved on mobile terminals
The user experience of device is the weight of current browser technology research to obtain bright spot and share in perfervid market competition
Point.
In browser technology, the load and progress monitoring of webpage are one of basic fundamentals, and whether web page loading process
Quickly and smoothness is very intuitive and important to user experience.During using Conventional browsers, we can often be sent out
Existing following phenomenon:
Sometimes when loading some webpage, even if in the case where Network status is relatively good, when web page contents base
It has been more fully shown in sheet in terminal form, but load progress item rests on always all motionless on some position, very long
Time schedule just reaches absolutely shows that webpage loads successfully again.
The phenomenon that this often last Caton, causes very bad user experience.
By analysis, the reason of causing the phenomenon is that the child resource of certain webpages (Cascading Style Sheet CSS, is used for client
Scripting language JS, the picture etc. of Web exploitation) it is excessive.Loaded simultaneously at the primary resource of the page (frame of webpage and content etc.)
After drafting, it is necessary to which waiting all child resources to load successfully terminates with the JS of initialization execution, and load is just reported to complete to disappear
It ceases reach progress absolutely.Especially when encountering some network congestions or other abnormal conditions, child resource can not be complete
It loads all child resources in time entirely or initialization JS executes excessively frequent, will cause entire load progress and rest on and do not have somewhere
There is response.
The existing mode for solving this problem is as follows.
<mode one>
Delay loading child resource, for example first block the load of picture, just report load to complete after primary resource load
Message carries out the load of picture after the information reporting again.
Although this mode can eliminate progress bar to a certain extent and stop too long, it will cause progress bar and reach percentage
Hundred after long period picture just start display the problem of, the user experience is also not so good.
<mode two>
Setting progress bar reach some value after start timer expiry, if timer time to load end message also
It does not report, just display progress is forced to reach absolutely.
The shortcomings that this mode mainly progress value itself is rough non-accurate value, progress value and a timer
Time be difficult accurately to control, although reach absolutely to often result in progress, but the main interface of webpage has not yet been displayed
Out the case where.
Summary of the invention
The object of the present invention is to provide a kind of webpage load progress control method, device and terminals, avoid working as web page contents
Progress bar does not terminate also for a long time when appearance, causes user to feel that webpage loads too slow problem, promotes user experience.
To achieve the goals above, it the embodiment of the invention provides a kind of webpage load progress control method, is used for
Browser in terminal, the browser show load progress by progress bar, which comprises
Obtain the stress state signal that the browser reports in the loading procedure of current web page;
When get the webpage in the stress state signal start load signal after, detect in the primary resource of current web page
Hold whether loaded, obtains the first testing result;
When the primary resource content loaded of first testing result instruction current web page, start timing duration
For the timer of first time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
Above-mentioned webpage load progress control method, wherein whether the primary resource content of the detection current web page
Loaded obtains the first testing result specifically:
Whether the content width of detection current web page is greater than 0, and when the content width of current web page is greater than 0 described in confirmation
First testing result is the primary resource content loaded of current web page.
Above-mentioned webpage load progress control method, wherein described when first testing result indicates current web page
Primary resource content loaded when, starting timing duration be first time threshold timer, wherein the first time
Threshold value is inversely proportional with current web page loading velocity and specifically includes:
Start to load with the current web page is got according to the header signal in the stress state signal got
Time difference between signal determines the loading velocity parameter of current web page loading velocity;
The first time threshold, the first time threshold and load speed are calculated according to the loading velocity parameter
It is directly proportional to spend parameter;
When the primary resource content loaded of first testing result instruction current web page, start timing duration
For the timer of first time threshold.
Above-mentioned webpage load progress control method, wherein the method also includes:
In the timer, then the preceding webpage whether got in the stress state signal loads end signal for detection,
Obtain the second testing result;
It is described when the timer then after, stop the child resource content of load current web page, and control the browser
Progress bar be shown as load progress and be completed specifically:
When the webpage load end signal then before has not been obtained in the timer in second testing result instruction
When, when the timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
To achieve the goals above, the embodiment of the invention also provides a kind of webpage load progress control devices, for eventually
Browser on end, the browser show that load progress, described device include: by progress bar
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for when get the webpage in the stress state signal start load signal after, detection
Whether the primary resource content of current web page loaded obtains the first testing result;
Timer initiation module, for having been loaded when the primary resource content of first testing result instruction current web page
When finishing, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page load
Speed is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browsing for working as timer then
The progress bar of device is shown as load progress and is completed.
Above-mentioned webpage load progress control device, wherein the first detection module specifically includes:
Whether detection sub-module, the content width for detecting current web page are greater than 0, and in the content width of current web page
The primary resource content loaded that first testing result is current web page is confirmed when greater than 0.
Above-mentioned webpage load progress control device, wherein the timer initiation module specifically includes:
Loading velocity parameter determination submodule, for according in the stress state signal that gets header signal with
The current web page is got to start to load the loading velocity ginseng that the time difference between signal determines current web page loading velocity
Number;
Computational submodule, for calculating the first time threshold, the first time according to the loading velocity parameter
Threshold value is directly proportional to the loading velocity parameter;
Timer initiation submodule, for having added when the primary resource content of first testing result instruction current web page
When load finishes, starting timing duration is the timer of first time threshold.
Above-mentioned webpage load progress control device, wherein described device further include:
Second detection module, for detect the timer then before whether get in the stress state signal
Webpage loads end signal, obtains the second testing result;
The processing module specifically:
When the webpage load end signal then before has not been obtained in the timer in second testing result instruction
When, when the timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
To achieve the goals above, the embodiment of the invention also provides a kind of terminals, and the terminal includes browser, described
Browser shows load progress by progress bar, and the terminal further includes processor, and the processor is used for:
Obtain the stress state signal that the browser reports in the loading procedure of current web page;
When get the webpage in the stress state signal start load signal after, detect in the primary resource of current web page
Hold whether loaded, obtains the first testing result;
When the primary resource content loaded of first testing result instruction current web page, start timing duration
For the timer of first time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
Above-mentioned terminal, wherein the processor includes:
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for when get the webpage in the stress state signal start load signal after, detection
Whether the primary resource content of current web page loaded obtains the first testing result;
Timer initiation module, for having been loaded when the primary resource content of first testing result instruction current web page
When finishing, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page load
Speed is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browsing for working as timer then
The progress bar of device is shown as load progress and is completed.
The embodiment of the present invention needs to detect that the primary resource content of current page after loaded, just starts timing
Device, this assures content of pages to have shown that;Meanwhile the duration of timer is determined by the loading velocity of current web page, with
Loading velocity is inversely proportional, and can be accurately controlled the duration of timing.Further, timer then after, just stop load working as
The child resource content of the preceding page, and control and control the progress bar of the browser and be shown as load progress and be completed, it thus is avoided that
Progress bar does not terminate also for a long time after current web page content occurs, and causes user to feel that webpage loads too slow problem, is promoted
User experience.
Detailed description of the invention
Fig. 1 is the flow diagram of webpage load progress control method provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of webpage load progress control device provided in an embodiment of the present invention;
Fig. 3 is the general frame schematic diagram of webpage load progress provided in an embodiment of the present invention control;
Fig. 4 is the schematic diagram of webpage load progress control method disposed of in its entirety process provided in an embodiment of the present invention.
Specific embodiment
To keep technical problems to be solved of the embodiment of the present invention, technical solution and advantage clearer, below in conjunction with attached
Figure and specific embodiment are described in detail.
The embodiment of the invention provides a kind of webpage load progress control methods, the browser in terminal, described clear
Device is look at by progress bar display load progress, the method is as shown in Figure 1, comprising:
Step 11, the stress state signal that the browser reports in the loading procedure of current web page is obtained;
Step 12, when get the webpage in the stress state signal start load signal after, detect current web page
Whether primary resource content loaded obtains the first testing result;
Step 13, when the primary resource content loaded of first testing result instruction current web page, starting
Timing duration is the timer of first time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
Step 14, when timer then, stop load current web page child resource content, and control the browser into
Degree item is shown as load progress and is completed.
In method provided in an embodiment of the present invention, guarantees that webpage primary resource part may be displayed in form and just may be used
It goes to terminate load progress to start to start timer, so that it is existing to avoid the major part of webpage from also losing sight of that progress bar just terminates
As.Further, timer then after, just stop the child resource content of load current page, and control the control browsing
The progress bar of device is shown as load progress and is completed, and progress bar is not tied also for a long time after occurring this avoid current web page content
Beam causes user to feel that webpage loads too slow problem, and the user experience is improved.
Wherein, the duration of timer is determined by the loading velocity of current web page, is inversely proportional with loading velocity, can be accurate
Control the duration of timing.
In above-mentioned webpage load progress control method, when the webpage got in the stress state signal starts to load
After signal, step 12 specifically:
Whether the content width of detection current web page is greater than 0, and when the content width of current web page is greater than 0 described in confirmation
First testing result is the primary resource content loaded of current web page.
When the content width of current web page is greater than 0, illustrates primary resource content loaded, can star timer meter
When.Certainly, in practical applications, whether the content width for not needing to detect current web page constantly is greater than 0, can be when fixed
Long detection is primary.
In embodiments of the present invention, it is preferable that step 13 can specifically include:
Step 131, according in the stress state signal got header signal and get the current web page
Start to load the loading velocity parameter that the time difference between signal determines current web page loading velocity;
Step 132, the first time threshold, the first time threshold and institute are calculated according to the loading velocity parameter
It is directly proportional to state loading velocity parameter;
Step 133, when the primary resource content loaded of first testing result instruction current web page, starting
Timing duration is the timer of first time threshold.
In the loading velocity parameter for determining webpage loading velocity, according to the mark in the stress state signal got
It inscribes signal and gets the time difference that the current web page starts to load between signal and determine.
When current page starts load, browser can report webpage to start to load signal, mark browser to report net at this time
Page starts to load the corresponding timestamp of signal to be T1.After webpage starts to load a period of time, if the title in webpage is
It shows, then browser can report header signal, and marking browser to report the corresponding timestamp of header signal at this time is T2.That
, loading velocity parameter DT is that header signal and webpage start to load the time difference (T2-T1) between signal.Wherein, it loads
It is inverse relation between speed parameter and webpage loading velocity, DT is smaller, and it is just aobvious in the very short time to illustrate that webpage starts to load
Title is shown, indicates that the webpage loading velocity is faster;It is on the contrary then slower.
After loading velocity parameter has been determined, the is calculated according to first time threshold is directly proportional to the loading velocity parameter of webpage
One time threshold can be calculated by following equation:
First time threshold H=a*DT, a are a factory fixed coefficients.
Due to loading velocity parameter be inversely proportional with network loading velocity and first time threshold and loading velocity parameter at
Direct ratio is then inversely proportional between first time threshold and webpage loading velocity.When network condition itself is relatively good, it is necessary to quickly eventually
Only progress, if instead network condition itself is poor, it is necessary to more slowly terminate progress, such user experience just more from
So, this requirement is not achieved in the timing duration fixed in the prior art.
It should be noted that in embodiments of the present invention, if current web page completes sub- money if timer is then preceding
The load of source contents, the then progress bar for directly controlling the browser are shown as load progress and are completed.Current web page is only
Have timer then before unfinished child resource content load when, just need force termination to load child resource content, and allow into
Degree item is shown as load progress and is completed.Wherein it is possible to whether receive the webpage load end signal that browser reports come
Detect whether to complete the load of child resource content.
I.e. the method also includes:
In the timer, then the preceding webpage whether got in the stress state signal loads end signal for detection,
Obtain the second testing result;
It is described when the timer then after, stop the child resource content of load current web page, and control the browser
Progress bar be shown as load progress and be completed specifically:
When the webpage load end signal then before has not been obtained in the timer in second testing result instruction
When, when the timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
The embodiment of the invention also provides a kind of webpage load progress control devices, the browser in terminal, described
Browser shows that load progress, described device are as shown in Figure 2 by progress bar, comprising:
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for when get the webpage in the stress state signal start load signal after, detection
Whether the primary resource content of current web page loaded obtains the first testing result;
Timer initiation module, for having been loaded when the primary resource content of first testing result instruction current web page
When finishing, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page load
Speed is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browsing for working as timer then
The progress bar of device is shown as load progress and is completed.
Above-mentioned webpage load progress control device, wherein the first detection module specifically includes:
Whether detection sub-module, the content width for detecting current web page are greater than 0, and in the content width of current web page
The primary resource content loaded that first testing result is current web page is confirmed when greater than 0.
Above-mentioned webpage load progress control device, wherein the timer initiation module specifically includes:
Loading velocity parameter determination submodule, for according in the stress state signal that gets header signal with
The current web page is got to start to load the loading velocity ginseng that the time difference between signal determines current web page loading velocity
Number;
Computational submodule, for calculating the first time threshold, the first time according to the loading velocity parameter
Threshold value is directly proportional to the loading velocity parameter;
Timer initiation submodule, for having added when the primary resource content of first testing result instruction current web page
When load finishes, starting timing duration is the timer of first time threshold.
Above-mentioned webpage load progress control device, wherein described device further include:
Second detection module, for detect the timer then before whether get in the stress state signal
Webpage loads end signal, obtains the second testing result;
The processing module specifically:
When the webpage load end signal then before has not been obtained in the timer in second testing result instruction
When, when the timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
A kind of functional entity of webpage load progress control device is additionally provided in embodiments of the present invention, is specifically included:
Obtaining module can specifically be realized by bottom core signal receiver, be reported for listening to browser bottom kernel
Webpage start to load signal, receive web page title signal, webpage progress signal, webpage load end signal etc.;
First detection module can specifically be realized by web page contents detector, for detecting whether webpage primary resource has added
It carries, parsing and drafting terminate;
Timer initiation module can pass through webpage loading velocity monitor, timeout threshold adjuster and progress time-out timing
Device realization, specifically:
Webpage loading velocity monitor is used to determine the loading velocity parameter of current web page loading velocity, loading velocity ginseng
Number mainly starts to load the time difference between signal by reception web page title signal and webpage to measure;
Timeout threshold adjuster is used for the loading velocity parameter that is calculated according to webpage loading velocity monitor, determines the
One time threshold, first time threshold are directly proportional to loading velocity parameter;
For progress overtime timer for starting timer, the timing length of the timer is what timeout threshold adjuster determined
First time threshold;
Processing module is realized by load progress controller, is stopped for forcing after the timing then of progress overtime timer
Child resource content is loaded, and controls progress bar and shows that load progress is completed.
Based on above-mentioned functional entity, the general frame when realizing the control of webpage load progress is as shown in Figure 3.
Webpage load progress control method disposed of in its entirety mistake provided in an embodiment of the present invention is introduced below with reference to Fig. 3
Journey, as shown in Figure 4, comprising:
Step 1, start to start webpage load, bottom core signal receiver receives the net that browser kernel process reports
Page starts to load signal, and records the timestamp of the signal, is denoted as T1;
Step 2, browser starts with after web page server interaction, and bottom core signal receiver receives on kernel process
Webpage load progress signal is reported, the normal progress of control progress control is directly used in and shows;
Step 3, what bottom core signal receiver received that kernel process reports receives web page title signal, and records
The timestamp of the signal, is denoted as T2;
Step 4, bottom core signal receiver notice web page contents detector starts to detect whether webpage has content to show;
Step 5, whether web page contents detector goes the content width of detection current web page big by the publicly-owned interface of kernel
In 0, if entering step 6 processing, if not then fixed time intervals (such as 50 milliseconds) are transferred to step 4 and continue to execute;
Step 6, bottom core signal receiver will start the time stamp T 1 of load signal obtained in step 1 and step 3
Webpage loading velocity monitor is assigned to header signal time stamp T 2 and calculates loading velocity parameter DT, and calculation formula is as follows:
DT=T2-T1
Loading velocity parameter DT is smaller, indicates that the webpage loading velocity is faster, on the contrary then slower;
Step 7, the loading velocity parameter DT calculated in step 6 is assigned to timeout threshold tune by webpage loading velocity monitor
Device is saved to calculate the first time threshold H of timer, calculation formula is as follows:
H=a*DT
Wherein a is a factory fixed coefficient.It can be seen that the time threshold H of timer and webpage are loaded by the formula
Speed is inversely proportional, i.e., if webpage loading velocity is fast, time threshold H is with regard to small;
Step 8, web page contents detector starts progress overtime timer, and the time threshold of timer is exactly in step 7
The first time threshold H that timeout threshold adjuster is calculated;
Step 9, before progress overtime timer timing time, current bottom core signal receiver is detected by no receive
The signal that the webpage load that core process reports terminates, if having received, present treatment process terminates;It is entered step if not receiving
10;
Step 10, load progress controller stops the child resource content of load current web page, and control progress bar is shown as hundred
/ hundred, present treatment process terminates.
In embodiments of the present invention, need to detect that the primary resource content of current page after loaded, just starts
Timer, so that the major part of webpage be avoided also to lose sight of the phenomenon that progress bar just terminates;Meanwhile the duration of timer is by working as
The loading velocity of preceding webpage determines, can be accurately controlled the duration of timing;In addition, timer then after, just stop load
The child resource content of current page, and control and control the progress bar of the browser and be shown as load progress and be completed, it keeps away in this way
Exempted from progress bar after current web page content occurs does not terminate also for a long time, causes user to feel that webpage loads too slow problem, mentions
User experience is risen.
The embodiment of the invention also provides a kind of terminal, the terminal includes browser, and the browser passes through progress bar
Show load progress, the terminal further includes processor, and the processor is used for:
Obtain the stress state signal that the browser reports in the loading procedure of current web page;
When get the webpage in the stress state signal start load signal after, detect in the primary resource of current web page
Hold whether loaded, obtains the first testing result;
When the primary resource content loaded of first testing result instruction current web page, start timing duration
For the timer of first time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is aobvious
Load progress is shown as to be completed.
Above-mentioned terminal, wherein the processor includes:
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for when get the webpage in the stress state signal start load signal after, detection
Whether the primary resource content of current web page loaded obtains the first testing result;
Timer initiation module, for having been loaded when the primary resource content of first testing result instruction current web page
When finishing, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page load
Speed is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browsing for working as timer then
The progress bar of device is shown as load progress and is completed.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of webpage load progress control method, the browser in terminal, the browser is shown by progress bar to be added
Degree of being loaded into, which is characterized in that the described method includes:
Obtain the stress state signal that the browser reports in the loading procedure of current web page;
When get the webpage in the stress state signal start load signal after, the primary resource content for detecting current web page is
No loaded obtains the first testing result;
When the primary resource content loaded of first testing result instruction current web page, starting timing duration is the
The timer of one time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is shown as
Load progress is completed.
2. webpage load progress control method as described in claim 1, which is characterized in that the main money of the detection current web page
Whether source contents loaded obtains the first testing result specifically:
Whether the content width of detection current web page is greater than 0, and confirms described first when the content width of current web page is greater than 0
Testing result is the primary resource content loaded of current web page.
3. webpage load progress control method as described in claim 1, which is characterized in that described to work as first testing result
Indicate current web page primary resource content loaded when, starting timing duration be first time threshold timer,
Described in first time threshold be inversely proportional and specifically include with current web page loading velocity:
Start to load signal with the current web page is got according to the header signal in the stress state signal got
Between time difference determine the loading velocity parameter of current web page loading velocity;
The first time threshold is calculated according to the loading velocity parameter, the first time threshold and the loading velocity are joined
Number is directly proportional;
When the primary resource content loaded of first testing result instruction current web page, starting timing duration is the
The timer of one time threshold.
4. webpage load progress control method as described in any one of claims 1-3, which is characterized in that the method is also wrapped
It includes:
In the timer, then the preceding webpage whether got in the stress state signal loads end signal for detection, obtains
Second testing result;
It is described when the timer then after, stop load current web page child resource content, and control the browser into
Degree item is shown as load progress and is completed specifically:
When second testing result instruction is when webpage load end signal then before has not been obtained in the timer, when
The timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is shown as
Load progress is completed.
5. a kind of webpage load progress control device, the browser in terminal, the browser is shown by progress bar to be added
Degree of being loaded into, which is characterized in that described device includes:
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for after getting the webpage in the stress state signal and starting to load signal, detection to be current
Whether the primary resource content of webpage loaded obtains the first testing result;
Timer initiation module, for the primary resource content loaded when first testing result instruction current web page
When, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page loading velocity
It is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browser for working as timer then
Progress bar is shown as load progress and is completed.
6. webpage load progress control device as claimed in claim 5, which is characterized in that the first detection module specifically wraps
It includes:
Detection sub-module, whether the content width for detecting current web page is greater than 0, and is greater than in the content width of current web page
The primary resource content loaded that first testing result is current web page is confirmed when 0.
7. webpage load progress control device as claimed in claim 5, which is characterized in that the timer initiation module is specific
Include:
Loading velocity parameter determination submodule, for according to the header signal and acquisition in the stress state signal got
Start the loading velocity parameter that the time difference between load signal determines current web page loading velocity to the current web page;
Computational submodule, for calculating the first time threshold, the first time threshold according to the loading velocity parameter
It is directly proportional to the loading velocity parameter;
Timer initiation submodule, for having been loaded when the primary resource content of first testing result instruction current web page
Bi Shi, starting timing duration are the timer of first time threshold.
8. such as the described in any item webpage load progress control devices of claim 5-7, which is characterized in that described device is also wrapped
It includes:
Second detection module, for detect the timer then before whether get webpage in the stress state signal
End signal is loaded, the second testing result is obtained;
The processing module specifically:
When second testing result instruction is when webpage load end signal then before has not been obtained in the timer, when
The timer then after, stop the child resource content of load current web page, and the progress bar for controlling the browser is shown as
Load progress is completed.
9. a kind of terminal, the terminal includes browser, and the browser shows that load progress, feature exist by progress bar
In the terminal further includes processor, and the processor is used for:
Obtain the stress state signal that the browser reports in the loading procedure of current web page;
When get the webpage in the stress state signal start load signal after, the primary resource content for detecting current web page is
No loaded obtains the first testing result;
When the primary resource content loaded of first testing result instruction current web page, starting timing duration is the
The timer of one time threshold, wherein the first time threshold is inversely proportional with current web page loading velocity;
When timer then, stop the child resource content of load current web page, and the progress bar for controlling the browser is shown as
Load progress is completed.
10. terminal as claimed in claim 9, which is characterized in that the processor includes:
Obtain module, the stress state signal reported in the loading procedure of current web page for obtaining the browser;
First detection module, for after getting the webpage in the stress state signal and starting to load signal, detection to be current
Whether the primary resource content of webpage loaded obtains the first testing result;
Timer initiation module, for the primary resource content loaded when first testing result instruction current web page
When, starting timing duration is the timer of first time threshold, wherein the first time threshold and current web page loading velocity
It is inversely proportional;
Processing module stops the child resource content of load current web page, and control the browser for working as timer then
Progress bar is shown as load progress and is completed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410010100.2A CN104778167B (en) | 2014-01-09 | 2014-01-09 | A kind of webpage load progress control method, device and terminal |
PCT/CN2014/079692 WO2015103850A1 (en) | 2014-01-09 | 2014-06-11 | Method, apparatus and terminal for controlling page loading progress |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410010100.2A CN104778167B (en) | 2014-01-09 | 2014-01-09 | A kind of webpage load progress control method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104778167A CN104778167A (en) | 2015-07-15 |
CN104778167B true CN104778167B (en) | 2019-05-03 |
Family
ID=53523505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410010100.2A Active CN104778167B (en) | 2014-01-09 | 2014-01-09 | A kind of webpage load progress control method, device and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104778167B (en) |
WO (1) | WO2015103850A1 (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598821B (en) * | 2015-10-14 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Method and device for testing webpage loading speed |
CN105812949B (en) * | 2016-03-14 | 2018-06-01 | 烽火通信科技股份有限公司 | A kind of method of the page self-adapted switchings of EPG based on screen locking pattern |
CN108037968B (en) * | 2017-12-01 | 2021-11-05 | 东软集团股份有限公司 | Execution progress display method and device, storage medium and electronic equipment |
CN109800025A (en) * | 2018-12-13 | 2019-05-24 | 平安普惠企业管理有限公司 | Page loading method, device, equipment and storage medium |
CN109739571A (en) * | 2018-12-20 | 2019-05-10 | 努比亚技术有限公司 | Application program launching method, mobile terminal and computer readable storage medium |
CN110347446B (en) * | 2019-07-16 | 2022-11-25 | 创新先进技术有限公司 | Page resource loading method and system |
CN111177605B (en) * | 2019-12-20 | 2022-06-21 | 中国平安财产保险股份有限公司 | Single-page loading performance monitoring method and device and related equipment |
CN112486783B (en) * | 2020-11-25 | 2022-09-27 | 建信金融科技有限责任公司 | Progress bar display method and device |
CN114785859B (en) * | 2022-04-20 | 2024-01-09 | 中国工商银行股份有限公司 | Service registration method, device, equipment and storage medium |
CN117076284B (en) * | 2023-10-18 | 2024-04-05 | 荣耀终端有限公司 | Page loading time length detection method, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880616A (en) * | 2011-07-15 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Browser page loading method and device |
CN103257989A (en) * | 2011-12-27 | 2013-08-21 | 特克特朗尼克公司 | Webpage download time analysis |
CN103365761A (en) * | 2012-03-09 | 2013-10-23 | 苹果公司 | Progress bar |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7380009B2 (en) * | 2003-08-07 | 2008-05-27 | Interantional Business Machines, Incorporated | Method, system and program product for delayed disconnection of a client from a server |
US8375319B2 (en) * | 2009-06-05 | 2013-02-12 | Apple Inc. | Progress indicator for loading dynamically-sized contents |
US20120159325A1 (en) * | 2010-12-15 | 2012-06-21 | Microsoft Corporation | Delayed Progress Meter for Long Running Tasks in Web Applications |
CN102799678A (en) * | 2012-07-23 | 2012-11-28 | 深圳市同洲电子股份有限公司 | Method for customizing progress bar of browser and method for customizing error page of browser |
CN103064925B (en) * | 2012-12-21 | 2016-04-13 | 广东欧珀移动通信有限公司 | The square law device of Timing Processing webpage |
-
2014
- 2014-01-09 CN CN201410010100.2A patent/CN104778167B/en active Active
- 2014-06-11 WO PCT/CN2014/079692 patent/WO2015103850A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880616A (en) * | 2011-07-15 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Browser page loading method and device |
CN103257989A (en) * | 2011-12-27 | 2013-08-21 | 特克特朗尼克公司 | Webpage download time analysis |
CN103365761A (en) * | 2012-03-09 | 2013-10-23 | 苹果公司 | Progress bar |
Non-Patent Citations (1)
Title |
---|
Big blackboard: on a large Web page by using a fast page loading method;Konagaya, T.等;《The 2005 IEEE/WIC/ACM International Conference on》;20051017;第112-115页 |
Also Published As
Publication number | Publication date |
---|---|
WO2015103850A1 (en) | 2015-07-16 |
CN104778167A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778167B (en) | A kind of webpage load progress control method, device and terminal | |
US10937046B1 (en) | Methods and systems for automatically testing and applying codes to electronic shopping carts | |
CN102479151B (en) | Testing method and device of webpage access speed | |
EP3296441A1 (en) | Laundry detergent release control method and washing machine | |
CN105045620B (en) | Measure the method and detection device of webpage head screen load time | |
US9479408B2 (en) | Detecting and alerting performance degradation during features ramp-up | |
JP5646359B2 (en) | Calculation apparatus and method | |
US20230161685A1 (en) | Performance utilities for mobile applications | |
US20150310484A1 (en) | System and Method for Tracking User Engagement with Online Advertisements | |
CN103559130A (en) | Method and device for testing fluency of browser | |
US10552290B2 (en) | Measuring user interface responsiveness | |
WO2017162099A1 (en) | Method and apparatus for multimedia evaluation based on heart rate measurement | |
CN103581987B (en) | The test method and device of the page download speed of mobile terminal device | |
CN108804171A (en) | A kind of webpage lazyness loading method of simplicity | |
CN104185195B (en) | A kind of measuring method of mobile network property, device and system | |
EP3851966A1 (en) | Method for acquiring launching duration of application interface, apparatus, and terminal device | |
CN110908864A (en) | Equipment blocking processing method, device, equipment and medium | |
WO2016188101A1 (en) | Service system test method and device | |
CN114723866A (en) | Stuck detection method and device | |
CN114254222A (en) | Method and device for counting interactive time of single-page application and electronic equipment | |
CN116069619A (en) | Method and device for detecting performance of applet, electronic equipment and medium | |
CN109740093A (en) | The determination method and device of initial screen time | |
CN106528149A (en) | Screen locking method and device | |
CN109885492A (en) | A kind of response time test method and terminal based on image recognition and curve matching | |
US20140325479A1 (en) | Synchronization of an automation script |
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 |