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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com