Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for obtaining client side page loading time, and electronic equipment

A technology of page loading and acquisition methods, applied in the computer field, can solve problems such as inaccurate calculation of page loading time, and achieve the effect of improving accuracy

Active Publication Date: 2017-12-08
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a method for obtaining client page loading time, which solves the problem of inaccurate calculation of page loading time in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for obtaining client side page loading time, and electronic equipment
  • Method and device for obtaining client side page loading time, and electronic equipment
  • Method and device for obtaining client side page loading time, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] A method for obtaining the loading time of a client page disclosed in this application, such as figure 1 As shown, the method includes: step 110 to step 140.

[0027] Step 110, according to the loading trigger event of the client page, determine the starting time point of the client page.

[0028] During specific implementation, the user clicks a page link on the page in the current page of the client, or the user clicks a certain virtual button or control in the current page of the client, all of which can trigger the loading of a new page. When the user performs a refresh operation such as dragging on the current page of the client, it may trigger reloading of the current page of the client. The client page loading trigger event described in this embodiment of the present application may also include other situations, which are not exhaustive here.

[0029] During specific implementation, the initialization event of the client page can be obtained by setting a callb...

Embodiment 2

[0040] like figure 2 As shown, based on the first embodiment, the method for obtaining the loading time of the client page disclosed in another specific embodiment of the present application includes: step 200 to step 240 .

[0041] Step 200, setting the corresponding relationship between the functional modules of the client page and the data loading thread, and the corresponding relationship between the functional modules and the display area.

[0042] During specific implementation, the client page may be divided into multiple display areas according to functional modules. like image 3 As shown, the client page is divided into display areas 310 to 312 along the vertical axis of the display screen of the device where the client is located. During specific implementation, one functional module may correspond to multiple display areas, or may correspond to one display area. Preferably, the functional modules and display areas correspond one-to-one. For example: the display a...

Embodiment 3

[0064] Correspondingly, the embodiment of the present application discloses a device for obtaining the loading time of the client page, such as Figure 4 As shown, the device includes:

[0065]The page startup time point determining module 400 is configured to determine the startup time point of the client page according to the client page loading trigger event;

[0066] A display area acquiring module 410, configured to acquire the display area included in the client page;

[0067] A sub-display area loading timing module 420, configured to perform display data loading timing for each display area acquired by the display area acquisition module 410;

[0068] The page loading time determination module 430 is configured to use the time difference between the display data loading completion time point of the display area where the display data loading is finally completed and the start time point as the loading time of the client page.

[0069] Optionally, the device also incl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for obtaining client side page loading time, belongs to the technical field of computers and is used for solving the problem in the prior art that client side page loading time is inaccurate. The method comprises the following steps that: according to a client side page loading trigger event, determining the starting time point of a client side page; and obtaining a display area contained in the client side page, carrying out display data loading timing on each display area, and when the display data of all page areas finishes being loaded, taking a time difference between the starting time point and a display data loading finishing time point of the last display area which finishes display data loading as client side page loading time. By use of the method for obtaining the client side page loading time, page display contents are subjected to regionalization, then, the loading time of each area is independently obtained, the loading time of a whole page is determined according to the loading time of the last area which finishes being loaded, and page loading time accuracy is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for acquiring client page loading time, and electronic equipment. Background technique [0002] Page loading time refers to the time from when the page starts loading to when all views on the page are loaded. Accurately understanding the client page load time can provide an important basis for optimizing page operation efficiency. In the prior art, the time difference between the time point when the client page starts loading and the time point when the page is displayed on the screen is usually taken as the loading time of the client page. In the prior art, the interface provided by the calling system is used to capture the page start loading event and the page display to screen event, and then further use the system time when the corresponding event is captured as the time point of the corresponding event. However, in the prior art, when the pa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06F9/445
CPCG06F9/44521G06F16/958
Inventor 彭亚梁灿梅平
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products