CN107451193B - A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment - Google Patents

A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment Download PDF

Info

Publication number
CN107451193B
CN107451193B CN201710518237.2A CN201710518237A CN107451193B CN 107451193 B CN107451193 B CN 107451193B CN 201710518237 A CN201710518237 A CN 201710518237A CN 107451193 B CN107451193 B CN 107451193B
Authority
CN
China
Prior art keywords
load
display area
customer terminal
time
terminal 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
Application number
CN201710518237.2A
Other languages
Chinese (zh)
Other versions
CN107451193A (en
Inventor
彭亚
梁灿
梅平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710518237.2A priority Critical patent/CN107451193B/en
Publication of CN107451193A publication Critical patent/CN107451193A/en
Application granted granted Critical
Publication of CN107451193B publication Critical patent/CN107451193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

This application provides the acquisition methods of customer terminal webpage load time a kind of, belong to field of computer technology, obtain customer terminal webpage load time inaccuracy in the prior art for solving the problems, such as.The described method includes: loading trigger event according to customer terminal webpage, the starting time point of the customer terminal webpage is determined;Obtain the display area that the customer terminal webpage includes, and display data load timing is carried out to each display area, when the display data of all page areas, which load, to be completed, the display data load deadline point that the display area of display data load will be finally completed and the time difference between the starting time point, the load time as the customer terminal webpage.Page load time acquisition methods disclosed in the present application, by by page display content compartmentalization, then the load time for obtaining each region respectively, the load time of full page is determined according to the load time in the region for finally completing load, improve the accuracy rate of page load time.

Description

A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment
Technical field
This application involves field of computer technology, a kind of acquisition methods more particularly to customer terminal webpage load time and Device, electronic equipment.
Background technique
Page load time refers to: time of the page start-up loading to all view loadeds of the page.It is accurate to understand visitor Family end page load time can provide important evidence for optimization page operational efficiency.In the prior art usually by customer terminal webpage When the time point of start-up loading and the page are shown to load of the time difference between the time point of screen as the customer terminal webpage Between.In the prior art, interface capture page start-up loading event is provided by calling system and the page is shown to screen event, so Afterwards, it further will be captured time point of the system time as corresponding event of corresponding event.But in the prior art, page When face is shown to screen event generation, there is no all displays to complete for usual customer terminal webpage, for example, usually having shown in system One page elements or after having shown page framework or having shown the static data of the page, will generate the page and be shown to screen thing Part.
As it can be seen that at least there is the page load time calculated in the prior art when calculating the customer terminal webpage load time The defect of inaccuracy.
Summary of the invention
The embodiment of the present application provides the acquisition methods of customer terminal webpage load time a kind of, solves the page in the prior art Load time calculates the problem of inaccuracy.
To solve the above-mentioned problems, in a first aspect, the embodiment of the present application provides a kind of customer terminal webpage load time Acquisition methods, comprising:
Trigger event is loaded according to customer terminal webpage, determines the starting time point of the customer terminal webpage;
Obtain the display area that the customer terminal webpage includes;
Display data load timing is carried out to each display area;
The display data for finally completing the display area of display data load are loaded into deadline point, when with the starting Between point between time difference, the load time as the customer terminal webpage.
Second aspect, the embodiment of the present application provide the acquisition device of customer terminal webpage load time a kind of, comprising:
The page starts time point determining module, for loading trigger event according to customer terminal webpage, determines the client The starting time point of the page;
Display area obtains module, the display area for including for obtaining the customer terminal webpage;
Point display area loads timing module, for the display area obtain each display area that module obtains into Row display data load timing;
Page load time determining module, for adding the display data for finally completing the display area of display data load Time difference between load deadline point, with the starting time point, the load time as the customer terminal webpage.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory, processor and are stored in described On memory and the computer program that can run on a processor, the processor realize this Shen when executing the computer program Please the customer terminal webpage load time described in embodiment acquisition methods.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence, the program realize the step of the acquisition methods of customer terminal webpage load time described in the embodiment of the present application when being executed by processor Suddenly.
The acquisition methods of customer terminal webpage load time disclosed in the embodiment of the present application, by being loaded according to customer terminal webpage Trigger event determines the starting time point of the customer terminal webpage, then, obtains the viewing area that the customer terminal webpage includes Domain, and display data load timing is carried out to each display area, it is completed when the display data of all page areas load When, the display data for finally completing the display area of display data load are loaded into deadline point, with the starting time point Between time difference, as the load time of the customer terminal webpage, solve in the prior art page load time calculate not Accurate problem.Page load time acquisition methods disclosed in the present application, by then distinguishing page display content compartmentalization When obtaining the load time in each region, and determining the load of full page according to the load time in the region for finally completing load Between, improve the accuracy rate for obtaining page load time.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the application Example is applied, it for those of ordinary skill in the art, without any creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow chart of the acquisition methods of the customer terminal webpage load time of the embodiment of the present application one;
Fig. 2 is the flow chart of the acquisition methods of the customer terminal webpage load time of the embodiment of the present application two;
Fig. 3 is the customer terminal webpage display area schematic diagram of the embodiment of the present application two;
Fig. 4 is one of acquisition device structural schematic diagram of customer terminal webpage load time of the embodiment of the present application three;
Fig. 5 is the acquisition device second structural representation of the customer terminal webpage load time of the embodiment of the present application three.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
Embodiment one
The acquisition methods of a kind of customer terminal webpage load time disclosed in the present application, as shown in Figure 1, this method comprises: step Rapid 110 to step 140.
Step 110, trigger event is loaded according to customer terminal webpage, determines the starting time point of the customer terminal webpage.
When it is implemented, user clicks page link on the page, user in client in the current page of client Current page in click a certain virtual push button or control, the load to the new page can be triggered.User is in client Dilatory equal refresh operations are executed in current page, then can trigger reloading to the current page of client.The application is real Applying the load of customer terminal webpage described in example trigger event may also include other situations, not do exhaustion herein.
When it is implemented, can by being arranged call back function in the initialization event of customer terminal webpage, or by after The page for holding system shows class, and the interface for obtaining customer terminal webpage load trigger event is arranged, to obtain customer terminal webpage Initialization event.After getting customer terminal webpage load trigger event, that is, determine the load operation for starting to execute the page When, present system time is obtained by the interface that calling system provides, and the present system time that will acquire is as the visitor The starting time point in family end page face.
Step 120, the display area that the customer terminal webpage includes is obtained.
When it is implemented, customer terminal webpage can be divided according to functional module according to the display content of customer terminal webpage At multiple display areas.When loading customer terminal webpage, system executes data according to functional module and loads, and according to functional module pair The display area answered executes display.Therefore, when it is implemented, can be determined according to the data load time of each functional module corresponding The load time of display area, and further determine that the load time of full page.
When it is implemented, client main thread, which will start multiple sub threads, obtains each functional module from server end parallel Show data, then, the data setting that the server end that main thread obtains each sub thread returns to the corresponding viewing area of the page In the view in domain.In general, main thread can start a sub thread for each functional module, i.e. data load thread, with from clothes Business device end obtains the display data of the functional module, and therefore, the quantity of usual sub thread and the quantity of functional module correspond. And functional module and display area have preset corresponding relationship, therefore, sub thread and display area can pass through functional module Establish corresponding relationship.When it is implemented, can determine the number of the display area of customer terminal webpage by the quantity of statistics sub thread Amount, may further determine that the corresponding display area of sub thread according to the corresponding functional module of sub thread.
Step 130, display data load timing is carried out to each display area.
The time point that the display data load of display area is completed is equal to main thread for the mutually corresponding sub-line in the display area The system time when data that journey obtains are arranged into the view of the display area, display data load time of display area etc. In the time point that the load is completed and the time (i.e. the starting time of the page where the display area) for starting the display area Between difference.
When it is implemented, the display data that each sub thread of main thread real-time reception returns, when main thread receives a certain son After the display data that thread returns, the view to corresponding display area is arranged in the display data that main thread returns to the sub thread In.Meanwhile after data of the main thread in the view for setting up display area, present system time is obtained, and will acquire The time point that present system time is completed as display area load.
Step 140, the display data for finally completing the display area of display data load are loaded into deadline point, with institute State the time difference between starting time point, the load time as the customer terminal webpage.
When the sub thread of all display data for loading the corresponding display area of functional module is all obtained from server end It has taken display data, and after being arranged by main thread into the view of corresponding display area, display area the latest has been loaded Time difference between the time point of completion and the starting time point of the page, the load time as the customer terminal webpage.
The acquisition methods of customer terminal webpage load time disclosed in the embodiment of the present application, by being loaded according to customer terminal webpage Trigger event determines the starting time point of the customer terminal webpage, then, obtains the viewing area that the customer terminal webpage includes Domain, and display data load timing is carried out to each display area, it is completed when the display data of all page areas load When, the display data for finally completing the display area of display data load are loaded into deadline point, with the starting time point Between time difference, as the load time of the customer terminal webpage, solve in the prior art page load time calculate not Accurate problem.Page load time acquisition methods disclosed in the present application, by then distinguishing page display content compartmentalization When obtaining the load time in each region, and determining the load of full page according to the load time in the region for finally completing load Between, improve the accuracy rate for obtaining page load time.
Embodiment two
As shown in Fig. 2, embodiment one is based on, when customer terminal webpage disclosed in the another specific embodiment of the application loads Between acquisition methods include: step 200 to step 240.
Step 200, the functional module of customer terminal webpage and corresponding relationship and the function of data loaded line journey are set The corresponding relationship of module and display area.
When it is implemented, customer terminal webpage can be divided into multiple display areas according to functional module.As shown in figure 3, Along device display screen vertical pivot where client, customer terminal webpage is divided into display area 310 to 312.When it is implemented, one A functional module can correspond to multiple display areas, can also correspond to a display area, it is preferred that functional module and viewing area Domain corresponds.Such as: corresponding first functional module in display area 310;Display area 311 corresponds to the second functional module;Display Region 312 corresponds to third functional module.
Then, for each functional module, setting loads thread with its one-to-one data, for loading the function mould The display data of block.Such as: for the first functional module, it is corresponding to load first functional module that data load thread 1 is set Display area 310 display data;For the second functional module, data are set and load thread 2 to load the second function mould The display data of the corresponding display area 311 of block;For third functional module, data are set and load thread 3 to load the third The display data of the corresponding display area 312 of functional module.
When it is implemented, data load thread is sub thread, for obtaining the corresponding function of the sub thread from server end The display data of the corresponding display area of module.For the main thread of client according to pre-set functional module, parallel calling is each The corresponding data load thread of functional module shortens the load time of customer terminal webpage to improve data loading efficiency.It is specific real Shi Shi, the functional module of customer terminal webpage and the corresponding relationship of data loaded line journey and the functional module and display area Corresponding relationship can be written into the program code of client, or where being stored in client by client configuration file In the memory of equipment, so that client main thread obtains the corresponding relationship.
Step 210, trigger event is loaded according to customer terminal webpage, determines the starting time point of the customer terminal webpage.
Trigger event is loaded according to customer terminal webpage, determines the specific embodiment party at the starting time point of the customer terminal webpage Formula is referring to embodiment one, and details are not described herein again.
Step 220, the display area that the customer terminal webpage includes is obtained.
Obtain the display area that the customer terminal webpage includes, comprising: start when determining the load customer terminal webpage Data load thread, wherein the data load thread is corresponding with the functional module that the customer terminal webpage carries;It determines all The corresponding display area of the functional module, the display area for including as the customer terminal webpage.
When it is implemented, client main thread starts for obtaining after detecting that customer terminal webpage loads trigger event The sub thread of display data is taken, i.e., data corresponding with the functional module of the page to be loaded load thread, obtain from server end Show data.When it is implemented, the function mould for the customer terminal webpage that client main thread can be stored according to local profile Block and the corresponding relationship of data loaded line journey determine data load thread to be launched, and according to local profile storage The corresponding relationship of the functional module and display area determines the corresponding display area of each functional module, to further determine that institute State the display area that customer terminal webpage includes.Alternatively, client main thread can be according to the client's end page stored in program code The functional module in face and the corresponding relationship of data loaded line journey determine data load thread to be launched and the functional module The corresponding display area of each functional module is determined with the corresponding relationship of display area, to further determine that the customer terminal webpage The display area for including.
Assuming that above-mentioned corresponding relationship is stored in configuration file in the form of key-value pair, concrete form for example: (function mould Block, data load thread), (functional module, display area).By taking customer terminal webpage shown in Fig. 3 is the page to be loaded as an example, function The corresponding relationship of energy module and data loaded line journey can indicate are as follows: (the first functional module, data load thread 1), (the second function Energy module, data load thread 2) and (third functional module, data load thread 3);The correspondence of functional module and display area Relationship can indicate are as follows: (the first functional module, display area 310), (the second functional module, display area 311) and (third function Energy module, display area 312).Client main thread can be determined according to the corresponding relationship stored in configuration file to be needed to start Data load thread 1, data load thread 2 and data loaded line journey 3.Wherein, data load thread 1 is for loading first function The display data of the corresponding display area 310 of energy module;Data load thread 2 is corresponding aobvious for loading second functional module Show the display data in region 311;Data load thread 3 is used to load the aobvious of the corresponding display area 312 of the third functional module Registration evidence.
Further, it can determine that the current page to be loaded includes according to the corresponding relationship of functional module and display area Display area, and further determine that the corresponding relationship of display area and data loaded line journey.
When it is implemented, client can also directly memory function module, data load thread, display area three pair It should be related to.For example, with the format memory function module of (functional module, data load thread, display area), data loaded line Journey, display area three corresponding relationship, be the viewing area that can determine the current page to be loaded and include according to three's corresponding relationship Domain.
Step 230, display data load timing is carried out to each display area.
Display data load timing is carried out to each display area, comprising: receive the corresponding number of the functional module According to the data of load thread load;By the view of the data received setting to corresponding display area;To the viewing area Domain carries out getting label ready, and loads deadline point for present system time as the display data of the display area.
The time point that the display data load of display area is completed is equal to main thread for the mutually corresponding sub-line in the display area The system time when data that journey obtains are arranged into the view of the display area, display data load time of display area etc. In the time point that the load is completed and the time (i.e. the starting time of the page where the display area) for starting the display area Between difference.
When it is implemented, after main thread starts data load thread corresponding with functional module, each sub-line of real-time reception The display data that journey returns, after main thread receives the display data that a certain sub thread returns, main thread returns the sub thread The display data returned are arranged into the view of corresponding display area.Data of the main thread in the view for setting up display area Later, the present system time of equipment where obtaining client, and the present system time that will acquire adds as the display area Carry the time point completed.For example, obtaining data load in real time after the main thread log-on data load thread 1,2,3 of client The first functional module, the second functional module and the corresponding viewing area of third functional module that thread 1,2,3 is obtained from server end The display data in domain.After main thread receives the display data that data load thread 1 obtains, main thread is according to pre-establishing Data load thread and display area corresponding relationship, data loads into the data that thread 1 returns and are arranged to display area 310 View in.Later, main thread obtains the current time in system, and the current time in system that will acquire is as display area 310 Show that data load deadline point.Meanwhile main thread carries out getting label ready to the display area 310, for identifying display Region 310 has loaded completion.
Preferably, it is described using present system time as the display area display data load deadline point it Before, further includes: judge whether the display area has carried out getting label ready;If the display area does not carry out getting label ready, Then the display area is carried out to get label ready, and has been loaded present system time as the display data of the display area At time point.
When it is implemented, when client main thread reloads the data of some display area in order to prevent, it is right The load time of the display area reclocks, and the display data that data load thread acquisition are arranged to phase in main thread After in the view for the display area answered, the display area is being carried out to get label ready, and using present system time as institute Before the display data load deadline point for stating display area, first determine whether the display area has been got ready.If The display area does not carry out getting label ready, then get ready label to the display area, and using present system time as The display data of the display area load deadline point.It is no longer heavy if the display area has carried out getting label ready The data load time of the display area is recorded again.
Step 240, the display data for finally completing the display area of display data load are loaded into deadline point, with institute State the time difference between starting time point, the load time as the customer terminal webpage.
When it is implemented, the display data for the display area for finally completing display data load are loaded into deadline point, With the time difference between the starting time point, load time as the customer terminal webpage, comprising: judge whether all institutes Display area is stated to have carried out getting label ready;If so, by the display data for the display area for finally completing display data load Deadline point is loaded, when loading end time point as the page, and the page being loaded end time point and the starting Between point between time difference, the load time as the customer terminal webpage.
When it is implemented, client main thread often receives the data of data loaded line journey acquisition, just by the number In view according to setting to the corresponding display area of data load thread, then the display area is carried out to get label ready. Later, main thread judges whether that all areas have carried out getting label ready, if all display areas have carried out getting label ready, says Data have all been arranged in view in whole display areas of the bright page to be loaded, and the page can completely be shown, then will finally complete Show that the display data load deadline point of the display area of data load loads end time point as the page, and will be described The page loads the time difference between end time point and the starting time point, the load time as the customer terminal webpage. If still there is display area not carry out getting label ready, illustrate the view for still having part display area in the display area of the page to be loaded Need to be arranged data, the page can't completely be shown, therefore, main thread continues to the data of data load thread load, directly Data load is completed to all data load thread, and is set into the view of corresponding display area by main thread.
The acquisition methods of customer terminal webpage load time disclosed in the embodiment of the present application, by presetting customer terminal webpage Functional module and data loaded line journey corresponding relationship and the functional module and display area corresponding relationship, then, Trigger event is loaded according to customer terminal webpage, the starting time point of the customer terminal webpage is determined, obtains the customer terminal webpage The display area for including, and display data load timing is carried out to each display area, when the display of all page areas When data load is completed, the display data for finally completing the display area of display data load are loaded into deadline point, with institute The time difference stated between starting time point solves the page in the prior art and adds as the load time of the customer terminal webpage Carry the problem of time calculating inaccuracy.Page load time acquisition methods disclosed in the present application, by by page display content area Then domain obtains the load time in each region respectively, and determined according to the load time in the region for finally completing load whole The load time of a page improves the accuracy rate for obtaining page load time.By carrying out getting label ready to display area, use Data setting whether is completed in the view for recording corresponding display area, it is possible to prevente effectively from the repetition load that system is initiated is led The page load time of cause calculates the problem of inaccuracy, further promotes the accuracy rate for obtaining page load time.
Embodiment three
Correspondingly, a kind of acquisition device of customer terminal webpage load time disclosed in the embodiment of the present application, as shown in figure 4, Described device includes:
The page starts time point determining module 400, for loading trigger event according to customer terminal webpage, determines the client The starting time point in end page face;
Display area obtains module 410, the display area for including for obtaining the customer terminal webpage;
Display area is divided to load timing module 420, for obtaining each display that module 410 obtains to the display area Region carries out display data load timing;
Page load time determining module 430, the display number of the display area for display data load will to be finally completed Load time according to the time difference between load deadline point, with the starting time point, as the customer terminal webpage.
Optionally, described device further includes function correspondence setting module (not shown), for client's end page to be arranged The corresponding relationship of the functional module in face and the corresponding relationship of data loaded line journey and the functional module and display area.
When it is implemented, customer terminal webpage can be divided into multiple display areas, and establish client according to functional module The functional module in end page face and the corresponding relationship of display area.
Optionally, as shown in figure 5, display area acquisition module 410 includes:
Data load thread determination unit 4101, the data loaded line started when loading the customer terminal webpage for determining Journey, wherein the data load thread is corresponding with the functional module that the customer terminal webpage carries;
Display area determination unit 4102, for determining the corresponding display area of all functional modules, as described The display area that customer terminal webpage includes.
Optionally, as shown in figure 5, described point of display area load timing module 420 includes:
Data receipt unit 4201, for receiving the data of the corresponding data load thread load of the functional module;
View setting unit 4202, for being arranged the data received into the view of corresponding display area;
Get timing unit 4203 ready, for get ready label to the display area, and using present system time as The display data of the display area load deadline point.
Optionally, as shown in figure 5, described divide display area to load timing module 420 further include:
First judging unit 4204, for judging whether the display area has carried out getting label ready, if the display Region does not carry out getting label ready, then gets timing unit 4203 described in calling ready and carry out getting label ready to the display area, and will Present system time loads deadline point as the display data of the display area.
Optionally, as shown in figure 5, the page load time determining module 430 includes:
Second judgment unit 4301, for judging whether that all display areas have carried out getting label ready;
Page load time determination unit 4302 will if having carried out getting label ready for all display areas The display data load deadline point for finally completing the display area of display data load loads end time point as the page, And the page is loaded into the time difference between end time point and the starting time point, as adding for the customer terminal webpage Carry the time.
The acquisition device of customer terminal webpage load time disclosed in the embodiment of the present application, by being loaded according to customer terminal webpage Trigger event determines the starting time point of the customer terminal webpage, then, obtains the viewing area that the customer terminal webpage includes Domain, and display data load timing is carried out to each display area, it is completed when the display data of all page areas load When, the display data for finally completing the display area of display data load are loaded into deadline point, with the starting time point Between time difference, as the load time of the customer terminal webpage, solve in the prior art page load time calculate not Accurate problem.Page load time acquisition methods disclosed in the present application, by then distinguishing page display content compartmentalization When obtaining the load time in each region, and determining the load of full page according to the load time in the region for finally completing load Between, improve the accuracy rate for obtaining page load time.By carrying out getting label ready to display area, for recording corresponding display Whether the view in region has completed data setting, it is possible to prevente effectively from when the repetition that system is initiated loads caused page load Between calculate inaccuracy problem, further promoted obtain page load time accuracy rate.
Correspondingly, disclosed herein as well is a kind of electronic equipment, including memory, processor and it is stored in the memory Computer program that is upper and can running on a processor, the processor are realized when executing the computer program as the application is real Apply the acquisition methods of customer terminal webpage load time described in example one and embodiment two.The electronic equipment can be mobile whole End, smart phone, navigator, personal digital assistant, tablet computer etc..
Disclosed herein as well is a kind of computer readable storage mediums, are stored thereon with computer program, which is located Managing the acquisition methods for realizing the customer terminal webpage load time as described in the embodiment two of the embodiment of the present application one when device executes Step.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.For Installation practice For, since it is basically similar to the method embodiment, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.
Detailed Jie has been carried out to the acquisition methods and device of a kind of customer terminal webpage load time provided by the present application above It continues, specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above embodiments is only It is to be used to help understand the method for this application and its core ideas;At the same time, for those skilled in the art, according to this Shen Thought please, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is the limitation to the application.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware realization.Based on such reason Solution, substantially the part that contributes to existing technology can embody above-mentioned technical proposal in the form of software products in other words Come, which may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively Method described in certain parts of a embodiment or embodiment.

Claims (8)

1. a kind of acquisition methods of customer terminal webpage load time characterized by comprising
Trigger event is loaded according to customer terminal webpage, determines the starting time point of the customer terminal webpage;
Obtain the display area that the customer terminal webpage includes;
Display data load timing is carried out to each display area;
The display data for finally completing the display area of display data load are loaded into deadline point, with the starting time point Between time difference, the load time as the customer terminal webpage;
Wherein, described the step of obtaining the display area that the customer terminal webpage includes, comprising:
Determine the data load thread started when loading the customer terminal webpage, wherein the data load thread and the visitor The functional module of family end page face carrying is corresponding;
Determine the corresponding display area of all functional modules, the display area for including as the customer terminal webpage;
Described the step of display data load timing is carried out to each display area, comprising:
Receive the data of the corresponding data load thread load of the functional module;
The data received are arranged into the view of corresponding display area;
The display area is carried out to get label ready, and is loaded present system time as the display data of the display area Deadline point.
2. the method according to claim 1, wherein described carry out the display area to get label ready, and will Before the step of present system time loads deadline point as the display data of the display area, further includes:
Judge whether the display area has carried out getting label ready;
If the display area does not carry out getting label ready, the display area is carried out to get label ready, and when by current system Between as the display area display data load deadline point.
3. method according to claim 1 or 2, which is characterized in that the display that display data load will be finally completed The display data in region load deadline point, and time difference between the starting time point, as the customer terminal webpage Load time the step of, comprising:
Judge whether that all display areas have carried out getting label ready;
If so, the display data load deadline point for the display area for finally completing display data load is added as the page End time point is carried, and the page is loaded into the time difference between end time point and the starting time point, as described The load time of customer terminal webpage.
4. a kind of acquisition device of customer terminal webpage load time characterized by comprising
The page starts time point determining module, for loading trigger event according to customer terminal webpage, determines the customer terminal webpage Starting time point;
Display area obtains module, the display area for including for obtaining the customer terminal webpage;
Divide display area to load timing module, is shown for obtaining each display area that module obtains to the display area Registration is according to load timing;
Page load time determining module has been loaded for that will finally complete the display data of display area of display data load Load time at the time difference between time point, with the starting time point, as the customer terminal webpage;
Wherein, the display area acquisition module includes:
Data load thread determination unit, and the data started when loading the customer terminal webpage for determining load thread, wherein The data load thread is corresponding with the functional module that the customer terminal webpage carries;
Display area determination unit, for determining the corresponding display area of all functional modules, as client's end page The display area that bread contains;
Described point of display area loads timing module
Data receipt unit, for receiving the data of the corresponding data load thread load of the functional module;
View setting unit, for being arranged the data received into the view of corresponding display area;
It gets timing unit ready, gets label ready for carrying out to the display area, and using present system time as the display The display data in region load deadline point.
5. device according to claim 4, which is characterized in that described that display area is divided to load timing module further include:
First judging unit, for judging whether the display area has carried out getting label ready, if the display area not into Row gets label ready, then gets timing unit described in calling ready and get ready label to the display area, and by present system time Display data as the display area load deadline point.
6. device according to claim 4 or 5, which is characterized in that the page load time determining module includes:
Second judgment unit, for judging whether that all display areas have carried out getting label ready;
Page load time determination unit will finally complete if having carried out getting label ready for all display areas Show that the display data load deadline point of the display area of data load loads end time point as the page, and will be described The page loads the time difference between end time point and the starting time point, the load time as the customer terminal webpage.
7. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on a processor Computer program, which is characterized in that the processor realizes claims 1 to 3 any one when executing the computer program The acquisition methods of customer terminal webpage load time described in claim.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of acquisition methods of customer terminal webpage load time described in claims 1 to 3 any one are realized when row.
CN201710518237.2A 2017-06-29 2017-06-29 A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment Active CN107451193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710518237.2A CN107451193B (en) 2017-06-29 2017-06-29 A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710518237.2A CN107451193B (en) 2017-06-29 2017-06-29 A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment

Publications (2)

Publication Number Publication Date
CN107451193A CN107451193A (en) 2017-12-08
CN107451193B true CN107451193B (en) 2019-06-11

Family

ID=60488236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710518237.2A Active CN107451193B (en) 2017-06-29 2017-06-29 A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment

Country Status (1)

Country Link
CN (1) CN107451193B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287441A (en) * 2019-06-27 2019-09-27 广州华多网络科技有限公司 Detection method, device, equipment and the storage medium of page load duration
CN112650959A (en) * 2019-10-11 2021-04-13 腾讯科技(深圳)有限公司 Page loading duration statistical method, device, equipment and storage medium
CN110837589A (en) * 2019-11-08 2020-02-25 北京字节跳动网络技术有限公司 Information display method and device
CN112905255A (en) * 2019-11-19 2021-06-04 阿里巴巴集团控股有限公司 Information processing method and device and electronic equipment
CN110968508B (en) * 2019-11-21 2021-05-14 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for determining loading time of applet
CN111581558B (en) * 2020-04-27 2024-03-05 北京达佳互联信息技术有限公司 Page loading time length determining method, device, equipment and storage medium
CN113760631A (en) * 2020-07-06 2021-12-07 北京沃东天骏信息技术有限公司 Page loading duration determination method, device, equipment and storage medium
CN113703872A (en) * 2021-09-01 2021-11-26 北京云蝶智学科技有限公司 Method and device for acquiring page loading time

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479151B (en) * 2010-11-26 2014-10-22 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
US8644623B2 (en) * 2011-11-16 2014-02-04 Microsoft Corporation Measuring web page rendering time
CN103559222B (en) * 2013-10-18 2017-04-12 北京奇虎科技有限公司 Method and device for displaying page loading time in browsers
CN105373617A (en) * 2015-11-27 2016-03-02 中国联合网络通信集团有限公司 Web page first screen determination method and apparatus
CN106897209A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 A kind of interface load time computational methods and device

Also Published As

Publication number Publication date
CN107451193A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107451193B (en) A kind of acquisition methods and device of customer terminal webpage load time, electronic equipment
CN106802935B (en) Page fluency testing method and device
CN104461903B (en) The method and apparatus of test client based on browser
CN105446827B (en) Date storage method and equipment when a kind of database failure
CN102479151A (en) Testing method and device of webpage access speed
CN109976966A (en) A kind of application program launching time counting method, apparatus and system
CN109344044A (en) Calculate the method and system of page head screen render time
CN105354090B (en) The management method and device of virtual unit
CN107038736B (en) Animation display method based on frame rate and terminal equipment
WO2016188101A1 (en) Service system test method and device
CN110019372A (en) Data monitoring method, device, server and storage medium
CN111930391B (en) Application data processing method and device, server and user terminal
CN103530370A (en) Method and system for visualization deduction based on electronic map
CN110750424B (en) Resource inspection method and device
CN112711519B (en) Method and device for detecting fluency of picture, storage medium and computer equipment
CN113221042A (en) Webpage operation process recording method and device, electronic equipment and computer readable medium
US10165074B2 (en) Asynchronous custom exit points
CN112688834A (en) Conference call completing rate testing method and device, terminal and storage medium
CN108229978B (en) Customer satisfaction return visit method, equipment and storage medium
CN116720224B (en) Display method, device, equipment and storage medium
CN114896013A (en) Page loading duration determining method and device, electronic equipment and storage medium
CN111694624B (en) Rollback display processing method, apparatus, device and medium
CN107769933B (en) Automatic testing method and system based on Internet of things timing task
CN112073587A (en) Terminal equipment and setting method and device for background of telephone interface
CN117237043A (en) Parallel-writing payment information notification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant