CN104778167A - Webpage loading progress control method, device and terminal - Google Patents
Webpage loading progress control method, device and terminal Download PDFInfo
- Publication number
- CN104778167A CN104778167A CN201410010100.2A CN201410010100A CN104778167A CN 104778167 A CN104778167 A CN 104778167A CN 201410010100 A CN201410010100 A CN 201410010100A CN 104778167 A CN104778167 A CN 104778167A
- Authority
- CN
- China
- Prior art keywords
- loading
- web page
- current web
- webpage
- timer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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 invention provides a webpage loading progress control method, device and terminal. The method comprises the following steps: obtaining a loading state signal reported by a browser in a loading process of a current webpage; when a phenomenon that the webpage in the current loading state signal begins to load a signal is detected, detecting whether the main resource content of the current webpage is completely loaded or not, and obtaining a first detection result; when the first detection result indicates that the main resource content of the current webpage is completely loaded, starting a timer of which the timing duration is a first time threshold value, wherein the first time threshold value is inversely proportional to a current webpage loading speed; and when the timer is up, stopping loading the sub-resource content of the current webpage, and controlling the progress bar of the browser to display that a loading progress is finished. The problem that a user feels webpage loading is too slow since the progress bar is not finished for a long time when webpage content appears can be solved, and user experience is improved.
Description
Technical field
The present invention relates to the browser technology field in terminal, particularly relate to a kind of webpage and load progress monitoring method, device and terminal.
Background technology
Along with the develop rapidly of wireless communication technique and Internet technology, the user of browser online is used to get more and more on mobile terminals.As mobile interchange web portal, the importance of browser is self-evident.How improving the Consumer's Experience of browser on mobile terminals, thus obtain bright spot and share in perfervid market competition, is the emphasis of current browser technology research.
In browser technology, the loading of webpage and progress monitoring are one of basic fundamentals, and whether its web page loading process is quick and smooth is very directly perceived and important to Consumer's Experience.In use Conventional browsers process, we often can find following phenomenon:
Sometimes when the some webpages of loading, even if in the reasonable situation of network condition, when web page contents is presented in terminal form substantially completely, but loading progress bar rests on certain position all motionless, and progress for a long time of just arrives absolutely display web page again and loads successfully always.
This often phenomenon that last card pauses causes very bad Consumer's Experience.
By analysis, cause the reason of this phenomenon be the child resource (Cascading Style Sheet CSS, script JS, picture etc.) for client Web exploitation of some webpage too much.Namely after the primary resource (framework of webpage and content etc.) of the page loads and draws and terminate, must wait for that all child resources load and successfully perform end with initialized JS, just report loading to complete message and reach absolutely to make progress.Particularly when running into some network congestions or other abnormal conditions, child resource cannot load all child resources completely in time or initialization JS performs too frequent, whole loading progress can be caused to rest on and do not respond somewhere.
The existing mode addressed this problem is as follows.
< mode one >
Delay loading child resource, such as first blocks the loading of picture, just reports loading to complete message, carry out the loading of picture after this information reporting again after primary resource loading terminates.
Although this mode can be eliminated progress bar to a certain extent and cross stop of a specified duration, progress bar can be caused to arrive long period picture absolutely and just start the problem shown, this Consumer's Experience is also not so good.
< mode two >
Arranging after progress bar reaches certain value and start timer expiry, if timer time does not also report to loading the message terminated, just forcing progress displaying to reach absolutely.
The shortcoming of this mode mainly progress value itself is one and is non-ly worth accurately roughly, and the time of its progress value and timer is difficult to accurately control, although thus often cause progress to reach absolutely, the situation that the main interface of webpage does not also show.
Summary of the invention
The object of this invention is to provide a kind of webpage and load progress monitoring method, device and terminal, avoid the progress bar when web page contents occurs also not terminate for a long time, webpage loads too slow problem to cause user to feel, promotes Consumer's Experience.
To achieve these goals, embodiments provide a kind of webpage and load progress monitoring method, the browser in terminal, described browser is by progress bar display loading progress, and described method comprises:
Obtain the stress state signal that described browser reports in the loading procedure of current web page;
When getting after the webpage in described stress state signal starts load signal, detecting the primary resource content whether loaded of current web page, obtaining the first testing result;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
When timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Above-mentioned webpage loads progress monitoring method, and wherein, whether the primary resource content loaded of described detection current web page, obtain the first testing result and be specially:
Whether the content width detecting current web page is greater than 0, and confirms that when the content width of current web page is greater than 0 described first testing result is the primary resource content loaded of current web page.
Above-mentioned webpage loads progress monitoring method, wherein, described when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to and specifically comprise:
According to the header signal in the described stress state signal got and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Calculate described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
Above-mentioned webpage loads progress monitoring method, and wherein, described method also comprises:
Detect the webpage whether got then in described stress state signal at described timer and load end signal, obtain the second testing result;
Described when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress has completed and be specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
To achieve these goals, the embodiment of the present invention additionally provides a kind of webpage and loads progress monitoring device, the browser in terminal, and described browser is by progress bar display loading progress, and described device comprises:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Above-mentioned webpage loads progress monitoring device, and wherein, described first detection module specifically comprises:
Whether detection sub-module, be greater than 0 for the content width detecting current web page, and confirm that when the content width of current web page is greater than 0 described first testing result is the primary resource content loaded of current web page.
Above-mentioned webpage loads progress monitoring device, and wherein, described timer initiation module specifically comprises:
Loading velocity parameter determination submodule, for according to the header signal in the described stress state signal that gets and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Calculating sub module, for calculating described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
Timer initiation submodule, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
Above-mentioned webpage loads progress monitoring device, and wherein, described device also comprises:
Second detection module, loading end signal for detecting the webpage whether got then in described stress state signal at described timer, obtaining the second testing result;
Described processing module is specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
To achieve these goals, the embodiment of the present invention additionally provides a kind of terminal, and described terminal comprises browser, and described browser is by progress bar display loading progress, and described terminal also comprises processor, and described processor is used for:
Obtain the stress state signal that described browser reports in the loading procedure of current web page;
When getting after the webpage in described stress state signal starts load signal, detecting the primary resource content whether loaded of current web page, obtaining the first testing result;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
When timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Above-mentioned terminal, wherein, described processor comprises:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
The primary resource content that the embodiment of the present invention needs to detect current page, after loaded, just starts timer, this assures content of pages and show; Meanwhile, the duration of timer is determined by the loading velocity of current web page, is inversely proportional to loading velocity, can control the duration of timing accurately.Further, timer then after, just stop the child resource content loading current page, and control the progress bar of described browser and be shown as loading progress and complete, this avoid current web page content and occur that rear progress bar does not also terminate for a long time, webpage loads too slow problem to cause user to feel, improves Consumer's Experience.
Accompanying drawing explanation
The schematic flow sheet of the webpage loading progress monitoring method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of the webpage loading progress monitoring device that Fig. 2 provides for the embodiment of the present invention;
The general frame schematic diagram of the webpage loading progress monitoring that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of the webpage loading progress monitoring method bulk treatment process that Fig. 4 provides for the embodiment of the present invention.
Embodiment
For the embodiment of the present invention will be solved technical matters, technical scheme and advantage clearly, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiments provide a kind of webpage and load progress monitoring method, the browser in terminal, described browser is by progress bar display loading progress, and described method as shown in Figure 1, comprising:
Step 11, obtains the stress state signal that described browser reports in the loading procedure of current web page;
Whether step 12, when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Step 13, when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Step 14, when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
In the method that the embodiment of the present invention provides, ensure that webpage primary resource part may be displayed in form and just can start to start timer and go to stop loading progress, thus progress bar just terminates phenomenon to avoid the major part of webpage also to lose sight of.Further, timer then after, just stop the child resource content loading current page, and control the progress bar of described browser and be shown as loading progress and complete, this avoid current web page content and occur that rear progress bar does not also terminate for a long time, webpage loads too slow problem to cause user to feel, improves Consumer's Experience.
Wherein, the duration of timer is determined by the loading velocity of current web page, is inversely proportional to loading velocity, can control the duration of timing accurately.
Above-mentioned webpage loads in progress monitoring method, and when getting after the webpage in described stress state signal starts load signal, step 12 is specially:
Whether the content width detecting current web page is greater than 0, and confirms that when the content width of current web page is greater than 0 described 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, primary resource content loaded is described, timer timing can be started.Certainly, in actual applications, whether the content width not needing the moment to detect current web page is greater than 0, can detect once every fixing duration.
In embodiments of the present invention, preferably, step 13 specifically can comprise:
Step 131, according to the header signal in the described stress state signal got and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Step 132, calculate described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
Step 133, when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
When determining the loading velocity parameter of webpage loading velocity, according to the header signal in the described stress state signal got and get the time difference that described current web page starts between load signal and determine.
When current page starts to load, browser can report webpage to start load signal, and it is T1 that this tense marker browser reports webpage to start timestamp corresponding to load signal.After webpage starts to load a period of time, if the title in webpage shows, then browser can report header signal, and the timestamp that this tense marker browser reports header signal corresponding is T2.So, loading velocity parameter DT is the time difference (T2-T1) that header signal and webpage start between load signal.Wherein, be inverse relation between loading velocity parameter and webpage loading velocity, DT is less, illustrates that webpage started to load in the very short time and just demonstrates title, represents that this webpage loading velocity is faster; Otherwise it is then slower.
After determining loading velocity parameter, to be directly proportional to the loading velocity parameter of webpage according to very first time threshold value and to calculate very first time threshold value, can be calculated by following formula:
Very first time threshold value H=a*DT, a are the fixed coefficients that dispatches from the factory.
Because loading velocity parameter and network loading velocity are inversely proportional to, and very first time threshold value is directly proportional to loading velocity parameter, be then inversely proportional between very first time threshold value and webpage loading velocity.When network condition itself is relatively good, just need Quick stop progress, if instead network condition itself is poor, just need more slowly to stop progress, such Consumer's Experience is just more natural, and timing duration fixing in prior art does not reach this requirement.
It should be noted that in embodiments of the present invention, if current web page just completes the loading of child resource content then at timer, then the progress bar directly controlling described browser is shown as loading progress and completes.Current web page, only when timer does not complete the loading of child resource content then, just needs force termination to load child resource content, and allows progress bar be shown as loading progress to complete.Wherein, end signal can be loaded detect the loading whether completing child resource content with whether receiving webpage that browser reports.
Namely described method also comprises:
Detect the webpage whether got then in described stress state signal at described timer and load end signal, obtain the second testing result;
Described when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress has completed and be specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
The embodiment of the present invention additionally provides a kind of webpage and loads progress monitoring device, the browser in terminal, and described browser is by progress bar display loading progress, and described device as shown in Figure 2, comprising:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Above-mentioned webpage loads progress monitoring device, and wherein, described first detection module specifically comprises:
Whether detection sub-module, be greater than 0 for the content width detecting current web page, and confirm that when the content width of current web page is greater than 0 described first testing result is the primary resource content loaded of current web page.
Above-mentioned webpage loads progress monitoring device, and wherein, described timer initiation module specifically comprises:
Loading velocity parameter determination submodule, for according to the header signal in the described stress state signal that gets and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Calculating sub module, for calculating described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
Timer initiation submodule, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
Above-mentioned webpage loads progress monitoring device, and wherein, described device also comprises:
Second detection module, loading end signal for detecting the webpage whether got then in described stress state signal at described timer, obtaining the second testing result;
Described processing module is specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Additionally provide the functional entity that a kind of webpage loads progress monitoring device in embodiments of the present invention, specifically comprise:
Acquisition module specifically can be realized by bottom core signal receiver, and the webpage reported for intercepting browser bottom kernel starts load signal, reception web page title signal, webpage progress signal, webpage loading end signal etc.;
Whether first detection module specifically can be realized by web page contents detecting device, loading, resolving and drawing end for detecting webpage primary resource;
Timer initiation module can be realized by webpage loading velocity monitor, timeout threshold regulator and progress overtime timer, is specially:
Webpage loading velocity monitor is for determining the loading velocity parameter of current web page loading velocity, and the time difference that this loading velocity parameter starts between load signal primarily of reception web page title signal and webpage is weighed;
Timeout threshold regulator is used for the loading velocity parameter calculated according to webpage loading velocity monitor, and determine very first time threshold value, very first time threshold value is directly proportional to loading velocity parameter;
Progress overtime timer is for starting timer, and the timing length of this timer is the very first time threshold value that timeout threshold regulator is determined;
Processing module realizes by loading progress monitoring device, after the timing then of progress overtime timer, forces to stop loading child resource content, and controls progress bar display loading progress and complete.
Based on above-mentioned functional entity, the general frame when realizing webpage loading progress monitoring as shown in Figure 3.
Introduce below in conjunction with Fig. 3 the webpage that the embodiment of the present invention provides and load progress monitoring method bulk treatment process, as shown in Figure 4, comprising:
Step 1, starts to start webpage and loads, and bottom core signal receiver receives the webpage that browser kernel process reports and starts load signal, and records the timestamp of this signal, is designated as T1;
Step 2, browser start mutual with web page server after, bottom core signal receiver receives kernel process and reports webpage to load progress signal, is directly used in the normal progress display of control progress control;
Step 3, what bottom core signal receiver received that kernel process reports receives web page title signal, and records the timestamp of this signal, is designated as T2;
Step 4, bottom core signal receiver notice web page contents detecting device starts to detect the whether meaningful display of webpage;
Step 5, web page contents detecting device goes the content width detecting current web page whether to be greater than 0 by the interface that kernel is publicly-owned, processes if enter step 6, if not then fixed time intervals (such as 50 milliseconds) proceeds to step 4 continuation execution;
Step 6, the time stamp T 1 of the beginning load signal obtained in step 1 and step 3 and header signal time stamp T 2 are assigned to webpage loading velocity monitor and calculate loading velocity parameter DT by bottom core signal receiver, and its computing formula is as follows:
DT=T2-T1
Loading velocity parameter DT is less, represents that this webpage loading velocity is faster, otherwise then slower;
Step 7, the loading velocity parameter DT calculated in step 6 is assigned to timeout threshold regulator to calculate the very first time threshold value H of timer by webpage loading velocity monitor, and computing formula is as follows:
H=a*DT
Wherein a is the fixed coefficient that dispatches from the factory.Can find out that the time threshold H of timer and webpage loading velocity are inversely proportional to by this formula, if namely webpage loading velocity is fast, then time threshold H is just little;
Step 8, web page contents detecting device starts progress overtime timer, and the time threshold of its timer is exactly the very first time threshold value H that in step 7, timeout threshold regulator calculates;
Step 9, before progress overtime timer timing time, detect current bottom core signal receiver by the no signal receiving the webpage loading end that kernel process reports, if having received, present treatment flow process terminates; If do not receive and enter step 10;
Step 10, load the child resource content that progress monitoring device stops loading current web page, control progress bar and be shown as absolutely, present treatment flow process terminates.
In embodiments of the present invention, the primary resource content needing to detect current page, after loaded, just starts timer, thus avoids the major part of webpage also to lose sight of the phenomenon that progress bar just stops; Meanwhile, the duration of timer is determined by the loading velocity of current web page, can control the duration of timing accurately; In addition, timer then after, just stop the child resource content loading current page, and control the progress bar of described browser and be shown as loading progress and complete, this avoid current web page content and occur that rear progress bar does not also terminate for a long time, webpage loads too slow problem to cause user to feel, improves Consumer's Experience.
The embodiment of the present invention additionally provides a kind of terminal, and described terminal comprises browser, and described browser is by progress bar display loading progress, and described terminal also comprises processor, and described processor is used for:
Obtain the stress state signal that described browser reports in the loading procedure of current web page;
When getting after the webpage in described stress state signal starts load signal, detecting the primary resource content whether loaded of current web page, obtaining the first testing result;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
When timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
Above-mentioned terminal, wherein, described processor comprises:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (10)
1. webpage loads a progress monitoring method, the browser in terminal, and described browser is by progress bar display loading progress, and it is characterized in that, described method comprises:
Obtain the stress state signal that described browser reports in the loading procedure of current web page;
When getting after the webpage in described stress state signal starts load signal, detecting the primary resource content whether loaded of current web page, obtaining the first testing result;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
When timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
2. webpage as claimed in claim 1 loads progress monitoring method, and it is characterized in that, whether the primary resource content loaded of described detection current web page, obtain the first testing result and be specially:
Whether the content width detecting current web page is greater than 0, and confirms that when the content width of current web page is greater than 0 described first testing result is the primary resource content loaded of current web page.
3. webpage as claimed in claim 1 loads progress monitoring method, it is characterized in that, described when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to and specifically comprise:
According to the header signal in the described stress state signal got and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Calculate described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
4. the webpage as described in any one of claim 1-3 loads progress monitoring method, and it is characterized in that, described method also comprises:
Detect the webpage whether got then in described stress state signal at described timer and load end signal, obtain the second testing result;
Described when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress has completed and be specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
5. webpage loads a progress monitoring device, the browser in terminal, and described browser is by progress bar display loading progress, and it is characterized in that, described device comprises:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
6. webpage as claimed in claim 5 loads progress monitoring device, and it is characterized in that, described first detection module specifically comprises:
Whether detection sub-module, be greater than 0 for the content width detecting current web page, and confirm that when the content width of current web page is greater than 0 described first testing result is the primary resource content loaded of current web page.
7. webpage as claimed in claim 5 loads progress monitoring device, and it is characterized in that, described timer initiation module specifically comprises:
Loading velocity parameter determination submodule, for according to the header signal in the described stress state signal that gets and get the loading velocity parameter that described current web page starts the time difference determination current web page loading velocity between load signal;
Calculating sub module, for calculating described very first time threshold value according to described loading velocity parameter, described very first time threshold value is directly proportional to described loading velocity parameter;
Timer initiation submodule, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value.
8. the webpage as described in any one of claim 5-7 loads progress monitoring device, and it is characterized in that, described device also comprises:
Second detection module, loading end signal for detecting the webpage whether got then in described stress state signal at described timer, obtaining the second testing result;
Described processing module is specially:
When described second testing result instruction does not get described webpage loading end signal at described timer then, when described timer then after, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
9. a terminal, described terminal comprises browser, and described browser is by progress bar display loading progress, and it is characterized in that, described terminal also comprises processor, and described processor is used for:
Obtain the stress state signal that described browser reports in the loading procedure of current web page;
When getting after the webpage in described stress state signal starts load signal, detecting the primary resource content whether loaded of current web page, obtaining the first testing result;
When described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
When timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
10. terminal as claimed in claim 9, it is characterized in that, described processor comprises:
Acquisition module, for obtaining the stress state signal that described browser reports in the loading procedure of current web page;
Whether first detection module, for when getting after the webpage in described stress state signal starts load signal, detecting the primary resource content loaded of current web page, obtaining the first testing result;
Timer initiation module, for when described first testing result instruction current web page primary resource content loaded time, start the timer that timing duration is very first time threshold value, wherein said very first time threshold value and current web page loading velocity are inversely proportional to;
Processing module, for when timer then, stop loading the child resource content of current web page, and the progress bar controlling described browser is shown as loading progress completes.
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 true CN104778167A (en) | 2015-07-15 |
CN104778167B 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) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812949A (en) * | 2016-03-14 | 2016-07-27 | 烽火通信科技股份有限公司 | EPG page self-adaptive switching method based on screen locking mode |
CN106598821A (en) * | 2015-10-14 | 2017-04-26 | 腾讯科技(深圳)有限公司 | Webpage loading speed test method and device |
CN108037968A (en) * | 2017-12-01 | 2018-05-15 | 东软集团股份有限公司 | Display methods, device, storage medium and the electronic equipment of implementation progress |
CN109739571A (en) * | 2018-12-20 | 2019-05-10 | 努比亚技术有限公司 | Application program launching method, mobile terminal and computer readable storage medium |
CN109800025A (en) * | 2018-12-13 | 2019-05-24 | 平安普惠企业管理有限公司 | Page loading method, device, equipment and storage medium |
CN110347446A (en) * | 2019-07-16 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of page resource loading method and system |
CN111177605A (en) * | 2019-12-20 | 2020-05-19 | 中国平安财产保险股份有限公司 | Single-page loading performance monitoring method and device and related equipment |
CN112486783A (en) * | 2020-11-25 | 2021-03-12 | 建信金融科技有限责任公司 | Progress bar display method and device |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050044240A1 (en) * | 2003-08-07 | 2005-02-24 | International Business Machines Corporation | Method, system and program product for delayed disconnection of a client from a server |
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050044240A1 (en) * | 2003-08-07 | 2005-02-24 | International Business Machines Corporation | Method, system and program product for delayed disconnection of a client from a server |
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 |
---|
KONAGAYA, T.等: "Big blackboard: on a large Web page by using a fast page loading method", 《THE 2005 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106598821A (en) * | 2015-10-14 | 2017-04-26 | 腾讯科技(深圳)有限公司 | Webpage loading speed test method and device |
CN105812949A (en) * | 2016-03-14 | 2016-07-27 | 烽火通信科技股份有限公司 | EPG page self-adaptive switching method based on screen locking mode |
CN108037968A (en) * | 2017-12-01 | 2018-05-15 | 东软集团股份有限公司 | Display methods, device, storage medium and the electronic equipment of implementation progress |
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 |
CN110347446A (en) * | 2019-07-16 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of page resource loading method and system |
CN111177605A (en) * | 2019-12-20 | 2020-05-19 | 中国平安财产保险股份有限公司 | Single-page loading performance monitoring method and device and related equipment |
CN111177605B (en) * | 2019-12-20 | 2022-06-21 | 中国平安财产保险股份有限公司 | Single-page loading performance monitoring method and device and related equipment |
CN112486783A (en) * | 2020-11-25 | 2021-03-12 | 建信金融科技有限责任公司 | Progress bar display method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2015103850A1 (en) | 2015-07-16 |
CN104778167B (en) | 2019-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778167A (en) | Webpage loading progress control method, device and terminal | |
CN107122192B (en) | Webpage view methods of exhibiting, calculates equipment and storage medium at device | |
US9906613B2 (en) | Determining relevant content for keyword extraction | |
EP2847688B1 (en) | A method and system for monitoring and tracking browsing activity on handheld devices | |
CN110020367B (en) | Page rendering method and device | |
JP5646359B2 (en) | Calculation apparatus and method | |
US20150310484A1 (en) | System and Method for Tracking User Engagement with Online Advertisements | |
CN103399866A (en) | Webpage rendering method, device and equipment | |
CN108512879A (en) | A kind of information-pushing method and device | |
CN104007990A (en) | Webpage loading method and browser | |
CN103559130A (en) | Method and device for testing fluency of browser | |
CN103678307A (en) | Page display method and client-side | |
CN110188296B (en) | Application program embedded page processing method, browser, equipment and storage medium | |
CN103581987B (en) | The test method and device of the page download speed of mobile terminal device | |
CN103793436A (en) | Page browsing method and browser | |
US20220374582A1 (en) | Method and apparatus for obtaining loading time length of image in webpage, and electronic device | |
CN102662837A (en) | Testing method and system of browser | |
US20220020047A1 (en) | Automated testing of multiple on-line coupons | |
JPWO2005032175A1 (en) | Position information service providing system and method | |
US10810019B2 (en) | Method for interface refresh synchronization, terminal device, and non-transitory computer-readable storage medium | |
CN103678343A (en) | Method and device for prompting webpage loading progress | |
CN106599023A (en) | Picture display optimization method and apparatus | |
CN110717122A (en) | Page performance acquisition method and device and electronic equipment | |
CN108712676B (en) | Method and device for automatically playing video based on React framework | |
CN114254222A (en) | Method and device for counting interactive time of single-page application and electronic equipment |
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 |