WO2024060867A1 - 网页指标信息获取方法、装置、计算机设备以及存储介质 - Google Patents

网页指标信息获取方法、装置、计算机设备以及存储介质 Download PDF

Info

Publication number
WO2024060867A1
WO2024060867A1 PCT/CN2023/112126 CN2023112126W WO2024060867A1 WO 2024060867 A1 WO2024060867 A1 WO 2024060867A1 CN 2023112126 W CN2023112126 W CN 2023112126W WO 2024060867 A1 WO2024060867 A1 WO 2024060867A1
Authority
WO
WIPO (PCT)
Prior art keywords
web page
time point
task
target
target web
Prior art date
Application number
PCT/CN2023/112126
Other languages
English (en)
French (fr)
Inventor
罗阳
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2024060867A1 publication Critical patent/WO2024060867A1/zh

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/904Browsing; Visualisation therefor
    • 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/954Navigation, e.g. using categorised browsing
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of data processing technology, and specifically to a method, device, computer equipment, and computer-readable storage medium (storage medium for short) for obtaining web page index information.
  • TTI Time To Interactive, interactive time point
  • TTI is currently measured in an experimental environment, and TTI is measured by loading a web interface on a fixed device in a certain network environment.
  • this application provides a method for obtaining web page indicator information, which method includes:
  • the webpage indicator information of the target webpage is generated based on the end time point of the first long task and the thread tasks monitored within the preset time window; where, the start of the preset time window The time point is the end time point of the first long task.
  • thread tasks include long tasks
  • the steps of generating web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window include:
  • thread tasks include web page resource requests
  • the steps of generating web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window include:
  • web page indicator information of the target web page is generated based on the end time point of the first long task.
  • the step of generating web page indicator information of the target web page based on the end time point of the first long task includes:
  • the end time point of the first long task is determined as the interactive time point of the target web page.
  • the step of monitoring the main thread corresponding to the target web page includes:
  • the first effective rendering time point in the target webpage is obtained
  • the step of obtaining the first effective rendering time point in the target web page includes:
  • the first effective rendering time of the target web page is determined according to the loading time of the target page element.
  • the step of generating the web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window further includes:
  • this application provides a device for obtaining web page index information, which device includes:
  • Thread monitoring module used to monitor the main thread corresponding to the target web page
  • the webpage indicator acquisition module is used to generate webpage indicator information of the target webpage based on the end time point of the first long task and the thread tasks monitored within the preset time window when the first long task in the main thread ends; wherein , the starting time point of the preset time window is the end time point of the first long task.
  • this application also provides a computer device, which includes:
  • processors one or more processors
  • One or more application programs wherein one or more application programs are stored in the memory and configured to be executed by the processor to implement the web page indicator information acquisition method.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is loaded by the processor to execute the steps in the method for obtaining webpage index information.
  • the method, device, computer equipment and storage medium for obtaining webpage index information in this application monitor the main thread corresponding to the target webpage. If the first long task in the main thread ends, based on the end time point of the first long task and the preset time The thread tasks monitored in the window generate web page indicator information of the target web page; among them, the starting time point of the preset time window is the end time point of the first long task.
  • the end time point of the first long task is obtained in real time, and based on the end time point of the first long task and the preset starting time point based on the end time point of the first long task
  • the task status of the thread task within the time window generates the webpage indicator information of the target webpage, achieving the acquisition of the webpage indicator information of the target webpage in the actual use environment of different terminals, improving the accuracy of the webpage indicator information, and providing webpage code and interaction for the target webpage. Optimization of operations provides accurate data.
  • Figure 1 is a schematic diagram of a scenario of a method for obtaining web page index information in an embodiment of the present application
  • Figure 2 is a schematic flow chart of a method for obtaining web page index information in an embodiment of the present application
  • Figure 3 is a schematic flow chart of the main thread steps corresponding to the monitoring target web page in the embodiment of the present application.
  • FIG4 is a flow chart of another method for obtaining webpage index information in an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a device for obtaining web page index information in an embodiment of the present application
  • Figure 6 is a schematic structural diagram of a computer device in an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as “first” and “second” may explicitly or implicitly include one or more of the described features. In the description of this application, “plurality” means two or more than two, unless otherwise explicitly and specifically limited.
  • the method for obtaining web page index information provided by the embodiment of the present application can be applied to the system for obtaining web page index information as shown in Figure 1.
  • the web page index information acquisition system includes a terminal 110 and a server 120.
  • the terminal 110 can be a desktop terminal or a mobile terminal.
  • the terminal 110 can also be a mobile phone, a tablet computer, a notebook computer, etc.
  • the server 120 may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, multiple network server sets, or a cloud server composed of multiple servers.
  • the cloud server consists of a large number of computers or network servers based on cloud computing (Cloud Computing).
  • the terminal 110 is installed with a browser client and presents the target webpage through the browser client.
  • the terminal 110 can receive the user's triggering operation on the target webpage through the browser client, and then loads webpage resources from the server 120 to implement webpage resource-based processing. Draw and render the target web page.
  • the terminal monitors the main thread corresponding to the target web page. If the first long task in the main thread ends, based on the end time point of the first long task and the thread monitored within the preset time window Task, generate web page indicator information of the target web page; wherein, the starting time point of the preset time window is the end time point of the first long task.
  • the webpage indicator information of the webpage is an important reference parameter when optimizing the webpage.
  • the webpage indicator information of the webpage includes but is not limited to: the first effective rendering time point (first meaningful paint, FMP) and the interactive time point (time to interactive, TTI).
  • the interactive time point refers to the time point when the web page has completed loading and rendering and can respond to the interactive operations input by the user. Because the tasks generated by the user's interaction with the web page will occupy the corresponding main thread of the web page for a period of time, in order to ensure that the web page can In response to the interactive operations input by the user and the smoothness of the user's interaction with the web page, the corresponding main thread of the web page should be in an idle state for a certain period of time starting from the interactive time point.
  • the interactive time point refers to the completion of loading and rendering of the web page. The point in time after which the main thread first appears in the idle time window.
  • the application environment shown in Figure 1 is only an application scenario with the solution of the present application and does not constitute a limitation on the application scenarios of the solution of the present application.
  • Other application environments may also include those shown in Figure 1 Show more or less computer equipment, for example, only one server 120 is shown in Figure 1,
  • the web page index information acquisition system may also include one or more other servers, which are not limited here.
  • the webpage indicator information acquisition system may also include a memory for storing data, such as video surveillance data.
  • the scene diagram of the webpage index acquisition system shown in Figure 1 is only an example.
  • the webpage index acquisition system and the scene described in the embodiment of the present application are for the purpose of more clearly explaining the technical solution of the embodiment of the present application, and are not Constituting a limitation on the technical solutions provided by the embodiments of the present application, those of ordinary skill in the art will know that with the evolution of webpage indicator acquisition systems and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application can also solve similar technical problems. Be applicable.
  • an embodiment of the present application provides a method for obtaining web page index information.
  • This method is mainly applied to the terminal 110 in Figure 1 as an example.
  • the method includes steps S210 to S220, specifically as follows:
  • Step S210 monitoring the main thread corresponding to the target web page.
  • the terminal is installed with a browser client, and the terminal can present the target webpage through the browser client.
  • the terminal loads webpage resources from the server through the browser client, and draws and renders the target webpage based on the webpage resources; in this step, the target webpage is Refers to the pages of any website, such as search web pages, shopping web pages, video sharing platform web pages, etc.; the main thread of the target web page refers to the web page resources used by the browser client in the terminal to load the target web page from the server and draw the target web page. browser thread.
  • monitoring the main thread corresponding to the target web page refers to monitoring the task status of the thread task in the main thread, such as the start, end, start time, end time, etc. of the thread task; more specifically, the thread task includes but is not limited to long tasks.
  • long tasks refer to tasks whose execution time is longer than 50 milliseconds in thread tasks;
  • web page resource request tasks refer to the sending and receiving of HTTP requests, such as XHR (XML HttpRequest) requests, Fetch requests and static resource file requests.
  • Step S220 if the first long task in the main thread ends, generate the webpage indicator information of the target webpage according to the end time point of the first long task and the thread tasks monitored within the preset time window; wherein, the preset time window The starting time point is the end time point of the first long task.
  • the webpage indicator information of the target webpage may be the interactive time point (Time To Interactive, TTI) of the target webpage.
  • TTI Time To Interactive
  • the window length of the preset time window can be set based on the actual situation. For example, it can be set to 5 seconds, 4.75 seconds, etc. It can also be determined based on the time it takes for the user to interact with the target web page, or it can also be based on the end of the first long task. Make real-time settings at the time point.
  • the main thread of the target webpage executes the interactive tasks generated by the user based on the interaction between the target webpage.
  • the preset time window of the main thread after the interactive time point should be an idle time window with no other thread tasks.
  • the terminal can monitor the thread task in the main thread corresponding to the target page in real time.
  • the terminal can determine the long task as the first long task, and record the first long task at the end of the first long task.
  • the end time point of the task furthermore, start monitoring the thread tasks within the preset time window with the end time point of the first long task as the starting time point, and judge the preset value based on the task status of the thread tasks within the preset time window.
  • the time window is an idle time window
  • the webpage indicator information of the target webpage is generated based on the end time point of the first long task.
  • the webpage index information acquisition method above monitors the main thread corresponding to the target webpage. If the first long task in the main thread ends, the webpage index information of the target webpage is generated according to the end time of the first long task and the thread tasks monitored within the preset time window; wherein the start time of the preset time window is the end time of the first long task.
  • the end time of the first long task is obtained in real time, and based on the end time of the first long task and the end time of the first long task, the webpage index information of the target webpage is generated.
  • the task status of the thread task within the preset time window with the end time point as the start time point is generated to generate the web page indicator information of the target web page, so as to obtain the web page indicator information of the target web page in the actual usage environment of different terminals, improve the accuracy of the web page indicator information, and provide accurate data for the optimization of the web page code and interactive operations of the target web page.
  • thread tasks include long tasks. Since the execution time of long tasks is too long, in order to ensure the response of the main thread corresponding to the target web page to the interactive task and the smooth interaction between the user and the target web page, the main thread after the interactive time point
  • the preset time window should be an idle time window without long tasks.
  • the step of generating web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window includes: if within the preset time window Monitor the second longest task, update the second longest task to the first long task, and continue to execute the thread task based on the end time point of the first long task and the monitored thread task within the preset time window to generate web page indicators for the target web page. information.
  • the second long task refers to the long task that occurs within the preset time window after the end of the first long task.
  • the end time of the first long task is used as the starting time point to monitor the long tasks within the preset time window to obtain whether there is a long task in the preset time window; if If the second longest task is monitored within the preset time window, it is considered that the preset time window with the end time point of the first long task as the starting time point is not the idle window period when the main thread is idle.
  • the terminal cannot respond to interactive operations based on the interface input of the target web page, and the user's interaction based on the target web page is not smooth.
  • the second longest task can be determined and updated as the new first long task, and when the second longest task (that is, the new first long task) ends, the end time point of the second longest task is obtained, and the end time point of the second longest task can be obtained again as the new first long task.
  • the end time point of the second longest task is used as the starting time point of the new preset time window, and the thread tasks of the main thread in the new preset time window continue to be monitored.
  • the second long task is determined and updated to the new first long task to re-determine the new predetermined task.
  • Set the starting time of the time window to ensure that there is no execution of long tasks in the preset time window, to avoid being unable to respond to user-input interactive operations due to the execution of long tasks occupying the main thread, making the starting time of the preset time window For effective web page indicator information, improve the accuracy of the web page indicator information of the target web page.
  • the main thread can be The preset time window after the interaction time point should be an idle time window with no network resource request tasks or as few network resource request tasks as possible.
  • the thread task includes a web page resource request; the step of generating web page indicator information of the target web page according to the end time point of the first long task and the thread task monitored within the preset time window includes: obtaining The number of network resource requests monitored within the preset time window; if the number of network resource requests is less than the preset request threshold, webpage indicator information of the target webpage is generated based on the end time point of the first long task.
  • web page resource requests at least include XHR requests, Fetch requests and static resource file requests.
  • the preset request threshold can be set based on the actual situation, for example, it can be set to 3, 2, etc.
  • the preset time window with the end time point of the first long task as the starting time point is the idle window period in which the main thread is idle.
  • the terminal can respond to interactive operations based on the interface input of the target web page and the user The interaction with the target webpage is smooth, and the webpage indicator information of the target webpage can be generated based on the end time point of the first long task.
  • the terminal can continue to monitor the main thread corresponding to the target web page.
  • the end time point of the long task is used as the starting time point again within the preset time window. Monitor the thread task and generate the web page indicator information of the target web page based on the end time point of the long task and the task status of the thread task monitored within the preset time window.
  • the number of web page resource requests within the preset time window is monitored to ensure that the preset time window should be an idle time window with no network resource request tasks or with as few network resource request tasks as possible to avoid excessive web page resources.
  • the execution of the request occupies the main thread and causes lag in the interactive operation in response to user input. This makes the starting time point of the preset time window valid web page indicator information and improves the accuracy of the web page indicator information of the target web page.
  • generating web page indicator information of the target web page based on the end time point of the first long task may specifically include: determining the end time point of the first long task as the interactive time point of the target web page.
  • the end time point of the first long task can be determined as the interactive time point of the target web page, thereby improving the accuracy of the interactive time point of the target web page.
  • the step of monitoring the main thread corresponding to the target web page may specifically include:
  • the terminal is installed with a browser client, and the terminal can receive the opening operation of the target webpage input by the user through the browser client; specifically, the opening operation can be a touch operation, a cursor operation, a key operation, etc.
  • the user can input the web address of the target web page based on the browser client to trigger the opening operation of the target web page, and the terminal detects the opening operation of the target web page input by the user in real time through the browser client.
  • the first effective rendering time point (First Meaning Paint, FMP) refers to the time point when most page elements of the target web page complete rendering and drawing, and can be obtained through the API interface provided by the browser. Specifically, after detecting the opening operation of the target webpage, the terminal monitors the loading and rendering of page elements in the target webpage in real time. After monitoring the time point when all page elements in the target webpage are loaded and rendered, the terminal determines this time point as the target. The first effective rendering time point of the page.
  • FMP First Meaning Paint
  • S330 Start monitoring the main thread corresponding to the target web page after the first effective rendering time point of the target page element.
  • the terminal After determining the first effective rendering time point of the target page element, the terminal starts monitoring the main thread corresponding to the target web page.
  • the terminal starts monitoring the main thread corresponding to the target web page.
  • obtaining the first valid rendering time point in the target web page may specifically include: obtaining the site type of the target web page; determining the target page element from the page elements of the target web page based on the site type of the target web page; and determining the first valid rendering time point of the target page according to the loading time point of the target page element.
  • the site type refers to the web page type of the target web page.
  • the site type at least includes search web page type, shopping web page type, and consultation information web page type.
  • Page elements in a web page refer to the content elements displayed on the web page.
  • text, images, tables, etc. the target page elements refer to the main page elements in the web page.
  • the web page can be considered to enter an interactive state; specifically, the target page elements in web pages of different site types different.
  • the target page element in a search web page can be a search box
  • the target page element in a shopping web page can be a product image on the first screen
  • the target page element in a consultation information web page can be a banner image on the first screen. wait.
  • the terminal can obtain the site type corresponding to the target webpage, determine the target page element among the page elements of the target webpage according to the site type, and then monitor the loading time of the target page element to complete loading and rendering. point, and determine the loading time point as the first effective rendering time point of the target page, and then monitor the main thread of the target web page after the first effective rendering time point.
  • the target web page elements in the target web page can receive and respond to the interactive tasks input by the user; in this embodiment, the target page elements are determined according to the site type of the target web page, The time point when the target page element completes rendering is determined as the first effective rendering time point of the target page. There is no need to wait for all page elements in the target page to be rendered before acquiring web page indicator information such as interactive time points, effectively improving the efficiency of the target page.
  • the accuracy of the interactive time points provides accurate data for the optimization of the web code and interactive operations of the target web page.
  • the step before the step of generating the webpage indicator information of the target webpage based on the end time point of the first long task and the thread tasks monitored within the preset time window, the step further includes: obtaining the first effective rendering time point and the first effective rendering time point.
  • the web page loading time between the end time points of a long task; the window length of the preset time window is determined based on the web page loading time.
  • the window length of the preset time window can be set according to the webpage loading time between the first effective rendering time point and the end time point of the first long task.
  • the web page loading time between the first effective rendering time point and the end time point of the first long task is inversely proportional to the window length of the preset time window. For example, when the first effective rendering time point is between the first effective rendering time point and the end time of the first long task
  • the window length of the preset time window can be set to a smaller value.
  • the default time window length can be set to a smaller value.
  • the window length of the time window can be set to a larger value.
  • a mapping relationship between the web page loading time and the window length of the preset time window can be preset. After the web page loading time is obtained, the specific value of the window length of the corresponding preset time window can be obtained based on the mapping relationship.
  • the window length of the preset time window and the webpage loading time between the first effective rendering time point and the end time point of the first long task can reflect the loading time of the target webpage.
  • the first effective rendering time point and the end of the first long task When the web page loading time between time points is long (that is, the target web page loading time is long), by setting the window length of the preset time window to a smaller value, the target web page will be longer at the end time of the first long task.
  • the window length of the preset time window is flexibly set based on the web page loading time between the first effective rendering time point and the end time point of the first long task, so that the interactive time point of the target web page can be flexibly set according to the loading situation of the target web page, thereby improving the accuracy of the interactive time point of the target web page and providing accurate data for the optimization of the web page code and interactive operations of the target web page.
  • the web page indicator information acquisition method includes:
  • S430 After the first effective rendering time point of the target page element, start monitoring whether the first long task in the main thread corresponding to the target web page ends; if the first long task ends, execute S440, otherwise continue to execute S430.
  • S440 Obtain the webpage loading time between the first effective rendering time point and the end time point of the first long task, and determine the window length of the preset time window based on the webpage loading time.
  • S450 Use the end time point of the first long task as the starting time point to monitor long tasks and web page resource requests within the preset time window.
  • S460 Determine whether the second longest task is monitored within the preset time window. If so, update the second longest task to the first long task and jump to execution S430; otherwise, execute S470.
  • S480 Determine whether the number of network resource requests is greater than the preset request threshold; if so, execute S490; if not, execute S430.
  • S490 Generate web page indicator information of the target web page based on the end time point of the first long task.
  • the loading and rendering process of the target web page includes: running JavaScript, updating the Document Object Model (DOM) and updating styles, calculating the layout on the page, and painting each layer of the layout respectively, etc. Any step in this process will generate a long task, and when the main thread executes a long task, the interactive operations input by the user usually enter the task queue, etc., causing the main thread of the target web page to be unable to respond to the interactive operations input by the user.
  • the target web page is not in an interactive state at that time, so the end time point of the long task can be used as a candidate time point for the target web page to enter the interactive state.
  • the long task is determined as the first long task, and the first long task is called back.
  • the end time of the long task is monitored in real time.
  • the request threshold at this time, whether the preset time window is an idle time window, the end time point of the first long task can be determined as the interactive time point of the target web page.
  • the preset time window is an idle time window. Only when the task status of the long tasks and web resource requests simultaneously meet the conditions of the idle time window, the end time point of the first long task is determined as the interactive time point of the target web page, which can effectively improve the accuracy of the interactive time point and provide accurate data for the optimization of the web page code and interactive operations of the target web page.
  • the target page element is determined according to the site type of the target web page, and the rendering is completed with the target page element.
  • the time point is determined as the first effective rendering time point of the target page, and the long tasks and web page resource requests within the preset time window are monitored. There is no need to wait for the completion of rendering of all page elements in the target page before obtaining web page indicator information such as the interactive time point, which effectively improves the accuracy of the interactive time point of the target web page, and provides accurate data for the optimization of the web page code and interactive operations of the target web page. In addition, the user's waiting time for the target web page to load is also taken into consideration.
  • the window length of the preset time window is flexibly set based on the web page loading time between the first effective rendering time point and the end time point of the first long task, so as to realize the flexible setting of the interactive time point of the target web page according to the loading situation of the target web page, improve the accuracy of the interactive time point of the target web page, and provide accurate data for the optimization of the web page code and interactive operations of the target web page.
  • the embodiment of the present application also provides a device for obtaining web page index information, as shown in Figure As shown in 5, the web page index information acquisition device 500 includes:
  • Thread monitoring module 510 is used to monitor the main thread corresponding to the target web page
  • the web page indicator acquisition module 520 is configured to generate web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window when the first long task in the main thread ends;
  • the starting time point of the preset time window is the end time point of the first long task.
  • the thread tasks include long tasks; the web page indicator acquisition module 520 is used to monitor the second long task within the preset time window, update the second long task to the first long task, and continue Execute and generate web page indicator information of the target web page based on the end time point of the first long task and the thread tasks monitored within the preset time window.
  • thread tasks include web page resource requests; the web page indicator acquisition module 520 is used to obtain the number of network resource requests monitored within the preset time window; if the number of network resource requests is less than the preset request Threshold, generate web page indicator information of the target web page based on the end time point of the first long task.
  • the web page indicator acquisition module is used to determine the end time point of the first long task as the interactive time point of the target web page.
  • a thread monitoring module is used to detect an opening operation on a target web page; when an opening operation on a target web page is detected, the first valid rendering time point in the target web page is obtained; and after the first valid rendering time point, the main thread corresponding to the target web page is started to be monitored.
  • the thread listening module is used to obtain the site type of the target web page; determine the target page element from the page elements of the target web page based on the site type of the target web page; determine the target web page based on the loading time point of the target page element The first effective rendering time point.
  • the thread monitoring module is also used to obtain the webpage loading time between the first effective rendering time point and the end time point of the first long task; and determine the window length of the preset time window based on the webpage loading time.
  • Each module in the above-mentioned web page indicator information acquisition device can be implemented in whole or in part by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • the device 500 for obtaining web page index information can be implemented in the form of a computer program, and the computer program can run on the computer device as shown in Figure 6.
  • the memory of the computer device may store various program modules that make up the apparatus 500 for obtaining web page index information, such as the thread monitoring module 510 and the web page index obtaining module 520 shown in FIG. 5 .
  • the computer program composed of each program module causes the processor to execute the web page index information acquisition of various embodiments of the present application described in this specification. Take the steps in the method.
  • the computer device shown in FIG. 6 can perform step S210 through the thread monitoring module 510 in the apparatus 500 for obtaining web page index information as shown in FIG. 5 .
  • the computer device may perform step S220 through the web page indicator acquisition module 520.
  • the computer device includes a processor, memory, and network interfaces connected through a system bus. Wherein, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes non-volatile storage media and internal memory.
  • the non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media.
  • the network interface of the computer device is used to communicate with external computer devices through a network connection. When the computer program is executed by the processor, a method for obtaining web page index information is implemented.
  • FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
  • a computer device including one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory, and is configured so that the processor executes the steps of the above method for obtaining web page indicator information.
  • the steps of the method for obtaining web page index information here may be the steps in the methods for obtaining web page index information in each of the above embodiments.
  • a computer-readable storage medium which stores a computer program.
  • the computer program is loaded by a processor, causing the processor to perform the steps of the above method for obtaining web page index information.
  • the steps in the method for obtaining web page index information may be the steps in the methods for obtaining web page index information in the above embodiments.
  • Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供一种网页指标信息获取方法、装置、计算机设备以及存储介质,该方法通过监听目标网页对应的主线程,若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成网页指标信息;预设时间窗口的起始时间点为第一长任务的结束时间点。本申请方案提高网页指标信息的准确性。

Description

网页指标信息获取方法、装置、计算机设备以及存储介质
本申请要求于2022年09月22日提交中国专利局、申请号为202211159748.7、申请名称为“网页指标信息获取方法、装置、计算机设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,具体涉及一种网页指标信息获取方法、装置、计算机设备以及计算机可读存储介质(简称存储介质)。
背景技术
TTI(Time To Interactive,可交互时间点)用来标识用户对网页界面的可操作时间,是衡量网页界面的相关性能的重要指标。
现有技术中,目前关于TTI的测定都是在实验环境中,在一定的网络环境中通过固定设备加载网页界面进行TTI的测定。
技术问题
移动设备的实际使用过程中,由于移动设备以及网络环境的不同,其TTI与在实验环境中所测定的TTI有一定误差。
技术解决方案
基于此,有必要针对上述技术问题,提供一种网页指标信息获取方法、装置、计算机设备以及存储介质,用以提高网页指标信息的准确率。
第一方面,本申请提供一种网页指标信息获取方法,该方法包括:
监听目标网页对应的主线程;
若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。
在本申请一些实施例中,线程任务包括长任务;
根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤,包括:
若在预设时间窗口内监听到第二长任务,将第二长任务更新为第一长任务,并继续执行根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息。
在本申请一些实施例中,线程任务包括网页资源请求;
根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤,包括:
获取在预设时间窗口内所监听到的网络资源请求的数量;
若网络资源请求的数量小于预设请求阈值,基于第一长任务的结束时间点生成目标网页的网页指标信息。
在本申请一些实施例中,基于第一长任务的结束时间点生成目标网页的网页指标信息的步骤,包括:
将第一长任务的结束时间点确定为目标网页的可交互时间点。
在本申请一些实施例中,监听目标网页对应的主线程的步骤,包括:
检测针对目标网页的打开操作;
当检测到针对目标网页的打开操作,获取目标网页中的首次有效渲染时间点;
在首次有效渲染时间点后开始监听目标网页对应的主线程。
在本申请一些实施例中,获取目标网页中的首次有效渲染时间点的步骤,包括:
获取目标网页的站点类型;
基于目标网页的站点类型从目标网页的页面元素中确定目标页面元素;
根据目标页面元素的加载时间点确定目标网页的首次有效渲染时间点。
在本申请一些实施例中,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤之前,还包括:
获取首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长;
根据网页加载时长确定预设时间窗口的窗口长度。
第二方面,本申请提供一种网页指标信息获取装置,该装置包括:
线程监听模块,用于监听目标网页对应的主线程;
网页指标获取模块,用于在主线程中的第一长任务结束时,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。
第三方面,本申请还提供一种计算机设备,该计算机设备包括:
一个或多个处理器;
存储器;以及
一个或多个应用程序,其中一个或多个应用程序被存储于存储器中,并配置为由处理器执行以实现网页指标信息获取方法。
第四方面,本申请还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器进行加载,以执行网页指标信息获取方法中的步骤。
有益效果
本申请网页指标信息获取方法、装置、计算机设备以及存储介质,通过监听目标网页对应的主线程,若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。通过对网页界面加载的主线程进行监听,实时获取第一长任务的结束时间点,并基于第一长任务的结束时间点以及以第一长任务的结束时间点为起始时间点的预设时间窗口内的线程任务的任务状态,生成目标网页的网页指标信息,实现获取不同终端在实际使用环境中目标网页的网页指标信息,提高网页指标信息的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例中网页指标信息获取方法的场景示意图;
图2是本申请实施例中网页指标信息获取方法的流程示意图;
图3是本申请实施例中监听目标网页对应的主线程步骤的流程示意图;
图4是本申请实施例中另一个网页指标信息获取方法的流程示意图;
图5是本申请实施例中网页指标信息获取装置的结构示意图;
图6是本申请实施例中计算机设备的结构示意图。
本发明的实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在本申请的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。
在本申请的描述中,“例如”一词用来表示“用作例子、例证或说明”。本申请中被描述为“例如”的任何实施例不一定被解释为比其它实施例更优选或更具优势。为了使本领域任何技术人员能够实现和使用本申请,给出了以下描述。在以下描述中,为了解释的目的而列出了细节。应当明白的是,本领域普通技术人员可以认识到,在不使用这些特定细节的情况下也可以实现本申请。在其它实例中,不会对公知的结构和过程进行详细阐述,以避免不必要的细节使本申请的描述变得晦涩。因此,本申请并非旨在限于所示的实施例,而是与符合本申请所公开的原理和特征的最广范围相一致。
本申请实施例提供的网页指标信息获取方法,可以应用于如图1所示的网页指标信息获取系统中。其中,该网页指标信息获取系统包括终端110和服务器120,终端110具体可以是台式终端或移动终端,终端110具体还可以是手机、平板电脑、笔记本电脑等中的一种。服务器120可以是独立的服务器,也可以是服务器组成的服务器网络或服务器集群,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云服务器。其中,云服务器由基于云计算(Cloud Computing)的大量计算机或网络服务器构成。具体地,终端110安装有浏览器客户端并通过浏览器客户端呈现目标网页,终端110通过浏览器客户端可接收用户对目标网页的触发操作,进而从服务器120中加载网页资源实现基于网页资源绘制渲染目标网页。终端在加载、渲染目标网页的过程中,监听目标网页对应的主线程,若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。
其中,网页的网页指标信息是在对网页进行优化工作时重要的参考参数,网页的网页指标信息包括但不限于:首次有效渲染时间点(first meaningful paint,FMP)和可交互时间点(time to interactive,TTI)。可交互时间点是指网页的网页页面完成加载渲染,且能够响应用户所输入的交互操作的时间点,因为用户与网页进行交互所产生的任务会占用网页对应主线程一段时长,为了保证网页能够响应用户所输入的交互操作、以及用户与网页进行交互的流畅性,从可交互时间点开始的一定时长的时段内网页对应主线程应处于空闲状态,即可交互时间点是指网页完成加载渲染之后主线程首次出现的空闲时间窗口的时间点。
本领域技术人员可以理解,图1中示出的应用环境,仅仅是与本申请方案一种应用场景,并不构成对本申请方案应用场景的限定,其他的应用环境还可以包括比图1中所示更多或更少的计算机设备,例如图1中仅示出1个服务器120, 可以理解的,该网页指标信息获取系统还可以包括一个或多个其他服务器,具体此处不作限定。另外,如图1所示,该网页指标信息获取系统还可以包括存储器,用于存储数据,如存储视频监控数据。
还需说明的是,图1所示网页指标获取系统的场景示意图仅仅是一个示例,本申请实施例描述的网页指标获取系统以及场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网页指标获取系统的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
参阅图2,本申请实施例提供了一种网页指标信息获取方法,主要以该方法应用于上述图1中的终端110来举例说明,该方法包括步骤S210至S220,具体如下:
步骤S210,监听目标网页对应的主线程。
其中,终端安装有浏览器客户端,终端可通过浏览器客户端呈现目标网页,终端通过浏览器客户端从服务器中加载网页资源,并基于网页资源绘制渲染目标网页;本步骤中,目标网页是指任意网站站点的页面,例如搜索网页、购物网页、视频分享平台网页等;目标网页的主线程是指终端中浏览器客户端用于从服务器中加载目标网页的网页资源以及对目标网页进行绘制的浏览器线程。
具体地,监听目标网页对应的主线程是指监听主线程中的线程任务的任务情况,例如线程任务的开始、结束、开始时间、结束时间等;更具体地,线程任务包括但不限于长任务以及网页资源请求任务,长任务是指线程任务中执行时长大于50毫秒的任务;网页资源请求任务是指HTTP请求的发送以及接收,例如XHR(XML HttpRequest)请求、Fetch请求以及静态资源文件请求。
步骤S220,若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。
其中,目标网页的网页指标信息可以是目标网页的可交互时间点(Time To interactive,TTI)。预设时间窗口的窗口长度可以基于实际情况进行设置,例如,可以设置为5秒、4.75秒等,也可以根据用户与目标网页进行交互占用的时长进行确定,还可以基于第一长任务的结束时间点进行实时设置。
在目标网页的主线程处于空闲状态的情况下,主线程才执行用户基于目标网页间交互操作所产生的交互任务,为了保证目标网页对应主线程对交互任务的响应以及用户与目标网页间交互的顺畅性,主线程在可交互时间点后的预设时间窗口应为无其他线程任务的空闲时间窗口。
具体地,终端可以实时监听目标页面对应主线程中的线程任务,当监听到一个长任务时,可将该长任务确定为第一长任务,并在第一长任务结束时记录该第一长任务的结束时间点;进而,以该第一长任务的结束时间点为起始时间点开始监听预设时间窗口内的线程任务,并根据预设时间窗口内的线程任务的任务情况判断预设时间窗口是否为空闲时间窗口,当判断预设时间窗口为空闲时间窗口,则基于第一长任务的结束时间点生成目标网页的网页指标信息。
上述网页指标信息获取方法,通过监听目标网页对应的主线程,若主线程中的第一长任务结束,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。通过对网页界面加载的主线程进行监听,实时获取第一长任务的结束时间点,并基于第一长任务的结束时间点以及以第一长任务的结 束时间点为起始时间点的预设时间窗口内的线程任务的任务状态,生成目标网页的网页指标信息,实现获取不同终端在实际使用环境中目标网页的网页指标信息,提高网页指标信息的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。
如上述,线程任务包括长任务,由于长任务的执行时长过长,为了保证目标网页对应主线程对交互任务的响应以及用户与目标网页间交互的顺畅性,主线程在可交互时间点后的预设时间窗口应为无长任务的空闲时间窗口。具体地,在一个实施例中,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤,包括:若在预设时间窗口内监听到第二长任务,将第二长任务更新为第一长任务,并继续执行根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息。
其中,第二长任务是指第一长任务结束后、在预设时间窗口内发生的长任务。
在监听到第一长任务结束时,以第一长任务的结束时间点为起始时间点监听预设时间窗口内的长任务,以获取在预设时间窗口内是否有长任务进行;若在预设时间窗口内监听到第二长任务,则认为以第一长任务的结束时间点为起始时间点的预设时间窗口并非主线程处于空闲状态的空闲窗口期,在预设时间窗口内终端无法响应基于目标网页的界面输入的交互操作,用户基于目标网页的交互卡顿不流畅。此时,可以将第二长任务确定更新为新的第一长任务,并在第二长任务(即新的第一长任务)结束时,获取第二长任务的结束时间点,并重新以第二长任务的结束时间点作为新的预设时间窗口的起始时间点,继续监听在新的预设时间窗口内主线程的线程任务。
本实施例中,在第一长任务结束后,若在预设时间窗口内监听到第二长任务,通过将第二长任务确定更新为新的第一长任务,以实现重新确定新的预设时间窗口的起始时间,保证预设时间窗口应为无长任务的执行,避免由于长任务的执行占用过主线程而无法响应用户输入的交互操作,使得预设时间窗口的起始时间点为有效的网页指标信息,提高目标网页的网页指标信息的准确性。
此外,考虑到终端与服务器间TCP连接的上限值,在同一时间内终端所发起网络资源请求任务的数量固定往往会导致网页资源下载的阻塞,使得目标网页的加载渲染完成时间以及可交互时间点延后,且网络资源的下载以及下载完成后的加载渲染过程往往占用一定的内存,为了保证目标网页对应主线程对交互任务的响应以及用户与目标网页间交互的顺畅性,主线程在可交互时间点后的预设时间窗口应为无网络资源请求任务或尽量少执行网络资源请求任务的空闲时间窗口。因此,在一个实施例中,线程任务包括网页资源请求;根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤,包括:获取在预设时间窗口内所监听到的网络资源请求的数量;若网络资源请求的数量小于预设请求阈值,基于第一长任务的结束时间点生成目标网页的网页指标信息。
其中,网页资源请求至少包括XHR请求、Fetch请求以及静态资源文件请求,监听目标网页对应的主线程中的网页资源请求,具体可以是通过代理XML HttpRequest.send的方法监听XHR请求,通过代理fetch的方法监听fetch请求,以及通过MutationObserver监听节点的变化以监听静态资源文件的加载状态。
其中,预设请求阈值可基于实际情况设置,例如可以设置为3、2等。
在监听到第一长任务结束后,以第一长任务的结束时间点为起始时间点监听预设时间窗口内的网页资源请求,以获取在预设时间窗口内所监听到的网络资源 请求的数量,进而判断在预设时间窗口内监听到的网络资源请求的数量是否大于预设请求阈值;当预设时间窗口内所监听到的网络资源请求的数量小于预设请求阈值,则认为以第一长任务的结束时间点为起始时间点的预设时间窗口为主线程处于空闲状态的空闲窗口期,在预设时间窗口内终端可响应基于目标网页的界面输入的交互操作且用户与目标网页交互流畅,可基于第一长任务的结束时间点生成目标网页的网页指标信息。
进一步地,当预设时间窗口内所监听到的网络资源请求的数量大于或等于预设请求阈值,则认为以第一长任务的结束时间点为起始时间点的预设时间窗口非空闲窗口期,此时,终端可继续监听目标网页对应的主线程,在监听到下一个长任务且该长任务结束时,再次以该长任务的结束时间点作为起始时间点在预设时间窗口内监听到的线程任务,并根据该长任务的结束时间点和在预设时间窗口内监听到的线程任务的任务情况生成目标网页的网页指标信息。
本实施例中,通过监听预设时间窗口内网页资源请求的数量,以保证预设时间窗口应为无网络资源请求任务或尽量少执行网络资源请求任务的空闲时间窗口,避免由于过多网页资源请求的执行占用过主线程而导致响应用户输入的交互操作出现卡顿,使得预设时间窗口的起始时间点为有效的网页指标信息,提高目标网页的网页指标信息的准确性。
在一个实施例中,基于第一长任务的结束时间点生成目标网页的网页指标信息,具体可以包括:将第一长任务的结束时间点确定为目标网页的可交互时间点。
本实施例中,由于在第一长任务的结束时间点为起始时间的预设时间窗口内,网络资源请求的数量小于预设请求阈值,即在预设时间窗口内主线程处于空闲状态的空闲窗口期,保证主线程可响应用户与目标网页间的交互任务,此时,可以将第一长任务的结束时间点确定为目标网页的可交互时间点,提高目标网页的可交互时间点的准确性。
在一个实施例中,如图3所示,监听目标网页对应的主线程的步骤,具体可以包括:
S310,检测针对目标网页的打开操作。
其中,如上述,终端安装有浏览器客户端,终端可以通过浏览器客户端接收用户输入的目标网页的打开操作;具体地,打开操作具体可以是触摸操作、光标操作、按键操作等。
例如,用户可基于浏览器客户端输入目标网页的网页地址以触发针对目标网页的打开操作,终端通过浏览器客户端实时检测用户输入的目标网页的打开操作。
S320,当检测到针对目标网页的打开操作,获取目标网页中的首次有效渲染时间点;
其中,首次有效渲染时间点(First Meaning Paint,FMP)是指目标网页大部分页面元素完成渲染绘制的时间点,具体可以由通过浏览器提供的API接口获取。具体地,终端在检测到针对目标网页的打开操作后,实时监测目标网页中页面元素的加载、渲染,在监听到目标网页中所有页面元素加载渲染完成的时间点,将该时间点确定为目标页面的首次有效渲染时间点。
S330,在目标页面元素的首次有效渲染时间点后开始监听目标网页对应的主线程。
具体地,终端在确定到目标页面元素的首次有效渲染时间点后,开始监听目标网页对应的主线程。通过在目标网页的所有页面元素加载渲染完成后,才进行目标网页的主线程的监听,可有效降低目标网页对主线程进行监听所带来的性能 开销。
进一步地,在一个实施例中,获取目标网页中的首次有效渲染时间点,具体可以包括:获取目标网页的站点类型;基于目标网页的站点类型从目标网页的页面元素中确定目标页面元素;根据目标页面元素的加载时间点确定目标页面的首次有效渲染时间点。
其中,站点类型是指目标网页的网页类型,例如,站点类型至少包括搜索网页类型、购物网页类型以及咨询信息网页类型。网页中页面元素是指网页中所显示的内容元素。例如文本、图像、表格等,目标页面元素是指网页中的主要页面元素,当目标页面元素完成渲染绘制,则可以认为网页进入可交互状态;具体地,不同站点类型的网页中的目标页面元素不同。
例如,搜索网页类型的网页中目标页面元素可以是搜索框,购物网页类型的网页中目标页面元素可以是首屏的产品图片,咨询信息网页类型的网页中目标页面元素可以是首屏的横幅图片等。
具体地,终端在接收到目标网页的打开操作后,可获取目标网页对应的站点类型,并根据站点类型在目标网页的页面元素中确定目标页面元素,进而监听目标页面元素完成加载渲染的加载时间点,并将该加载时间点确定为目标页面的首次有效渲染时间点,进而在首次有效渲染时间点后进行目标网页的主线程的监听。
当目标网页中主要页面元素完成加载渲染,此时可认为目标网页完成加载渲染,目标网页即可接收、响应用户输入的交互任务;本实施例中,根据目标网页的站点类型确定目标页面元素,以目标页面元素完成渲染的时间点确定为目标页面的首次有效渲染时间点,无需等待目标页面中所有的页面元素渲染完成后才进行可交互时间点等网页指标信息的获取,有效提高目标网页的可交互时间点的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。
在一个实施例中,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息的步骤之前,还包括:获取首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长;根据网页加载时长确定预设时间窗口的窗口长度。
其中,可根据首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长,对预设时间窗口的窗口长度进行设置。具体地,首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长与预设时间窗口的窗口长度成反比关系,例如,当首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长较大时,预设时间窗口的窗口长度可设置为一个较小值,当首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长较小时,预设时间窗口的窗口长度可设置为一个较大值。
具体地,可预先设置网页加载时长与预设时间窗口的窗口长度间的映射关系,在获取到网页加载时长后,可基于映射关系获取相应预设时间窗口的窗口长度的具体取值。
其中,预设时间窗口的窗口长度与首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长可反映目标网页的加载时长,当首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长较大(即目标网页加载时间较长)时,通过将预设时间窗口的窗口长度设置为一个较小的值,使得目标网页在第一长任务的结束时间点较大概率进入可交互状态,降低用户等待目标页面加载的时间,提高用户体验较差;当首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长较小(即目标网页加载时间较短)时,通过将预设时间窗口的窗口长度 设置为一个较大的值,使得目标网页进入可交互状态后的空闲时间段较长,保证用户与目标页面间的交互顺畅,提高用户体验。
本实施例中,基于首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长灵活设置预设时间窗口的窗口长度,实现根据目标网页的加载情况灵活设置目标网页的可交互时间点,提高目标网页可交互时间点的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。
以下结合应用场景对上述网页指标信息获取进行进一步说明,在一个实施例中,如图4所示,该网页指标信息获取方法,包括:
S410,检测针对目标网页的打开操作。
S420,当检测到针对目标网页的打开操作,获取目标网页中的首次有效渲染时间点。
S430,在目标页面元素的首次有效渲染时间点后开始监听目标网页对应的主线程中的第一长任务是否结束;若第一长任务结束,执行S440,否则继续执行S430。
S440,获取首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长,根据网页加载时长确定预设时间窗口的窗口长度。
S450,以第一长任务的结束时间点为起始时间点监听预设时间窗口内的长任务以及网页资源请求。
S460,判断预设时间窗口内是否监听到第二长任务,若是,将第二长任务更新为第一长任务,跳转至执行S430;否则,执行S470。
S470,获取在预设时间窗口内所监听到的网络资源请求的数量。
S480,判断网络资源请求的数量是否大于预设请求阈值;若是,执行S490;若否,执行S430。
S490,基于第一长任务的结束时间点生成目标网页的网页指标信息。
其中,目标网页的加载渲染过程包括:运行JavaScript、更新文档对象模型(Document Object Model,DOM)以及更新样式、计算页面上的布局(layout)以及对各层布局分别进行绘制(paint)等等。在这一过程中任意一个步骤都会产生长任务,而主线程执行长任务时,用户输入的交互操作通常进入任务队列中进行等等,导致目标网页的主线程无法响应用户输入的交互操作,此时目标网页并非一个可交互状态,因此,可以将长任务的结束时间点作为目标网页进入可交互状态的候选时间点。
具体地,可以通过浏览器客户端提供的API接口监听目标网页对应的主线程中的长任务是否结束,当一个长任务结束时,将该长任务确定为第一长任务,并回调该第一长任务的结束时间点。进而,以第一长任务的结束时间点为起始时间点,实时监听预设时间窗口内的长任务以及网页资源请求,当预设时间窗口内既无长任务且网页资源请求的数量小于预设请求阈值时,此时,预设时间窗口内是否为空闲时间窗口,可将第一长任务的结束时间点确定为目标网页的可交互时间点。
本实施例中,通过检测以第一长任务的结束时间点为起始时间点预设时间窗口内的长任务以及网页资源请求的任务情况,判断该预设时间窗口内是否为空闲时间窗口,在长任务以及网页资源请求的任务情况同时满足空闲时间窗口的条件时,才将第一长任务的结束时间点确定为目标网页的可交互时间点,可有效提高可交互时间点的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。同时,根据目标网页的站点类型确定目标页面元素,以目标页面元素完成渲染的 时间点确定为目标页面的首次有效渲染时间点,开始监听预设时间窗口内的长任务以及网页资源请求,无需等待目标页面中所有的页面元素渲染完成后才进行可交互时间点等网页指标信息的获取,有效提高目标网页的可交互时间点的准确性,为目标网页的网页代码、交互操作的优化提供准确数据;此外,还考虑到用户等待目标网页加载时长,基于首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长灵活设置预设时间窗口的窗口长度,实现根据目标网页的加载情况灵活设置目标网页的可交互时间点,提高目标网页可交互时间点的准确性,为目标网页的网页代码、交互操作的优化提供准确数据。
为了更好实施本申请实施例提供的网页指标信息获取方法,在本申请实施例所提网页指标信息获取方法的基础之上,本申请实施例中还提供一种网页指标信息获取装置,如图5所示,网页指标信息获取装置500包括:
线程监听模块510,用于监听目标网页对应的主线程;
网页指标获取模块520,用于在主线程中的第一长任务结束时,根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息;其中,预设时间窗口的起始时间点为第一长任务的结束时间点。
在本申请一些实施例中,线程任务包括长任务;网页指标获取模块520,用于在预设时间窗口内监听到第二长任务时,将第二长任务更新为第一长任务,并继续执行根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息。
在本申请一些实施例中,线程任务包括网页资源请求;网页指标获取模块520,用于获取在预设时间窗口内所监听到的网络资源请求的数量;若网络资源请求的数量小于预设请求阈值,基于第一长任务的结束时间点生成目标网页的网页指标信息。
在本申请一些实施例中,网页指标获取模块,用于将第一长任务的结束时间点确定为目标网页的可交互时间点。
在本申请一些实施例中,线程监听模块,用于检测针对目标网页的打开操作;当检测到针对目标网页的打开操作,获取目标网页中的首次有效渲染时间点;在首次有效渲染时间点后开始监听目标网页对应的主线程。
在本申请一些实施例中,线程监听模块,用于获取目标网页的站点类型;基于目标网页的站点类型从目标网页的页面元素中确定目标页面元素;根据目标页面元素的加载时间点确定目标网页的首次有效渲染时间点。
在本申请一些实施例中,线程监听模块,还用于获取首次有效渲染时间点与第一长任务的结束时间点间的网页加载时长;根据网页加载时长确定预设时间窗口的窗口长度。
关于网页指标信息获取装置的具体限定可以参见上文中对于网页指标信息获取方法的限定,在此不再赘述。上述网页指标信息获取装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在本申请一些实施例中,网页指标信息获取装置500可以实现为一种计算机程序的形式,计算机程序可在如图6所示的计算机设备上运行。计算机设备的存储器中可存储组成该网页指标信息获取装置500的各个程序模块,比如,图5所示的线程监听模块510以及网页指标获取模块520。各个程序模块构成的计算机程序使得处理器执行本说明书中描述的本申请各个实施例的网页指标信息获 取方法中的步骤。
例如,图6所示的计算机设备可以通过如图5所示的网页指标信息获取装置500中的线程监听模块510执行步骤S210。计算机设备可通过网页指标获取模块520执行步骤S220。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的计算机设备通过网络连接通信。该计算机程序被处理器执行时以实现一种网页指标信息获取方法。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在本申请一些实施例中,提供了一种计算机设备,包括一个或多个处理器;存储器;以及一个或多个应用程序,其中所述一个或多个应用程序被存储于所述存储器中,并配置为由所述处理器执行上述网页指标信息获取方法的步骤。此处网页指标信息获取方法的步骤可以是上述各个实施例的网页指标信息获取方法中的步骤。
在本申请一些实施例中,提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器进行加载,使得处理器执行上述网页指标信息获取方法的步骤。此处网页指标信息获取方法的步骤可以是上述各个实施例的网页指标信息获取方法中的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上对本申请实施例所提供的一种网页指标信息获取方法、装置、计算机设备以及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种网页指标信息获取方法,其中,所述方法包括:
    监听目标网页对应的主线程;
    若所述主线程中的第一长任务结束,根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息;其中,所述预设时间窗口的起始时间点为所述第一长任务的结束时间点。
  2. 根据权利要求1所述的方法,其中,所述线程任务包括长任务;
    所述根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息的步骤,包括:
    若在所述预设时间窗口内监听到第二长任务,将所述第二长任务更新为第一长任务,并继续执行根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息。
  3. 根据权利要求1所述的方法,其中,所述线程任务包括网页资源请求;
    所述根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息的步骤,包括:
    获取在所述预设时间窗口内所监听到的网络资源请求的数量;
    若所述网络资源请求的数量小于预设请求阈值,基于所述第一长任务的结束时间点生成所述目标网页的网页指标信息。
  4. 根据权利要求3所述的方法,其中,所述基于所述第一长任务的结束时间点生成所述目标网页的网页指标信息的步骤,包括:
    将所述第一长任务的结束时间点确定为所述目标网页的可交互时间点。
  5. 根据权利要求1所述的方法,其中,所述监听目标网页对应的主线程的步骤,包括:
    检测针对目标网页的打开操作;
    当检测到针对目标网页的打开操作,获取所述目标网页中的首次有效渲染时间点;
    在所述首次有效渲染时间点后开始监听目标网页对应的主线程。
  6. 根据权利要求5所述的方法,其中,所述获取所述目标网页中的首次有效渲染时间点的步骤,包括:
    获取所述目标网页的站点类型;
    基于所述目标网页的站点类型从所述目标网页的页面元素中确定目标页面元素;
    根据所述目标页面元素的加载时间点确定所述目标网页的首次有效渲染时间点。
  7. 根据权利要求5所述的方法,其中,所述根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息的步骤之前,还包括:
    获取所述首次有效渲染时间点与所述第一长任务的结束时间点间的网页加载时长;
    根据所述网页加载时长确定所述预设时间窗口的窗口长度。
  8. 根据权利要求7所述的方法,其中,所述首次有效渲染时间点与所述第一长任务的结束时间点间的网页加载时长与所述预设时间窗口的窗口长度成反比关系。
  9. 根据权利要求5所述的方法,其中,所述获取所述目标网页中的首次有效渲染时间点的步骤,包括:
    检测到针对所述目标网页的打开操作后,实时监测所述目标网页中页面元素的加载、渲染;
    在监听到所述目标网页中所有页面元素加载渲染完成的时间点,将所述所有页面元素加载渲染完成的时间点确定为所述目标页面的所述首次有效渲染时间点。
  10. 根据权利要求3所述的方法,其中,所述方法还包括:
    当所述预设时间窗口内所监听到的所述网络资源请求的数量大于或等于所述预设请求阈值,继续监听所述目标网页对应的主线程;
    在监听到下一个长任务且所述下一个长任务结束时,再次以所述下一个长任务的结束时间点作为起始时间点在预设时间窗口内监听线程任务;
    根据所述下一个长任务的结束时间点和在预设时间窗口内监听到的线程任务的任务情况生成目标网页的网页指标信息。
  11. 根据权利要求6所述的方法,其中,所述站点类型至少包括搜索网页类型、购物网页类型以及咨询信息网页类型;所述搜索网页类型的目标网页中目标页面元素是搜索框;所述购物网页类型的目标网页中目标页面元素是首屏的产品图片;所述咨询信息网页类型的目标网页中目标页面元素是首屏的横幅图片。
  12. 根据权利要求1所述的方法,其中,所述若所述主线程中的第一长任务结束,根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息,包括:
    在所述第一长任务结束时记录该第一长任务的结束时间点;
    以所述第一长任务的结束时间点为起始时间点开始监听所述预设时间窗口内的线程任务,并根据所述预设时间窗口内的线程任务的任务情况判断所述预设时间窗口是否为空闲时间窗口;
    当判断所述预设时间窗口为空闲时间窗口,则基于所述第一长任务的结束时间点生成所述目标网页的网页指标信息。
  13. 根据权利要求3所述的方法,其中,所述方法还包括:
    当所述预设时间窗口内所监听到的网络资源请求的数量大于或等于所述预设请求阈值,则继续监听所述目标网页对应的主线程;
    在监听到下一个长任务且所述下一个长任务结束时,再次以所述下一个长任务的结束时间点作为起始时间点在预设时间窗口内监听线程任务,并根据所述下一个长任务的结束时间点和在预设时间窗口内监听到的线程任务的任务情况生成所述目标网页的网页指标信息。
  14. 一种网页指标信息获取装置,其中,所述装置包括:
    线程监听模块,用于监听目标网页对应的主线程;
    网页指标获取模块,用于在所述主线程中的第一长任务结束时,根据所述第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成所述目标网页的网页指标信息;其中,所述预设时间窗口的起始时间点为所述第一长任务的结束时间点。
  15. 根据权利要求14所述的装置,其中,所述线程任务包括长任务;所述网页指标获取模块,用于:在预设时间窗口内监听到第二长任务时,将第二长任务更新为第一长任务,并继续执行根据第一长任务的结束时间点和在预设时间窗口内监听到的线程任务,生成目标网页的网页指标信息。
  16. 根据权利要求14所述的装置,其中,所述线程任务包括网页资源请求;所述网页指标获取模块,用于:获取在预设时间窗口内所监听到的网络资源请求的数量;若网络资源请求的数量小于预设请求阈值,基于第一长任务的结束时间点生成目标网页的网页指标信息。
  17. 根据权利要求16所述的装置,其中,所述网页指标获取模块,用于:将第一长任务的结束时间点确定为目标网页的可交互时间点。
  18. 根据权利要求14所述的装置,其中,所述线程监听模块,用于:检测针对目标网页的打开操作;当检测到针对目标网页的打开操作,获取目标网页中的首次有效渲染时间点;在首次有效渲染时间点后开始监听目标网页对应的主线程。
  19. 一种计算机设备,其中,所述计算机设备包括:
    一个或多个处理器;
    存储器;以及
    一个或多个应用程序,其中所述一个或多个应用程序被存储于所述存储器中,并配置为由所述处理器执行以实现权利要求1至11中任一项所述的网页指标信息获取方法。
  20. 一种计算机可读存储介质,其中,其上存储有计算机程序,所述计算机程序被处理器进行加载,以执行权利要求1至11任一项所述的网页指标信息获取方法中的步骤。
PCT/CN2023/112126 2022-09-22 2023-08-10 网页指标信息获取方法、装置、计算机设备以及存储介质 WO2024060867A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211159748.7 2022-09-22
CN202211159748.7A CN117171469A (zh) 2022-09-22 2022-09-22 网页指标信息获取方法、装置、计算机设备以及存储介质

Publications (1)

Publication Number Publication Date
WO2024060867A1 true WO2024060867A1 (zh) 2024-03-28

Family

ID=88945631

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/112126 WO2024060867A1 (zh) 2022-09-22 2023-08-10 网页指标信息获取方法、装置、计算机设备以及存储介质

Country Status (2)

Country Link
CN (1) CN117171469A (zh)
WO (1) WO2024060867A1 (zh)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006164200A (ja) * 2004-12-02 2006-06-22 Takeharu Koga ウェブページ評価値取得プログラム
CN104899336A (zh) * 2015-07-01 2015-09-09 北京博睿宏远科技发展有限公司 一种测量网页首屏完全渲染时间的方法
US20180034721A1 (en) * 2016-07-27 2018-02-01 Facebook, Inc. Methods and systems for benchmarking web browser performance
CN110633412A (zh) * 2019-08-15 2019-12-31 平安普惠企业管理有限公司 页面停留意愿分析方法、装置、计算机设备及存储介质
CN111538885A (zh) * 2020-04-24 2020-08-14 腾讯音乐娱乐科技(深圳)有限公司 页面监听方法、装置、电子设备及存储介质
CN113641924A (zh) * 2021-10-13 2021-11-12 恒生电子股份有限公司 网页可交互时间点检测方法、装置、电子设备及存储介质
CN113849758A (zh) * 2021-09-16 2021-12-28 北京百度网讯科技有限公司 网页指标的生成方法、装置、电子设备及存储介质
CN114006891A (zh) * 2021-10-28 2022-02-01 平安普惠企业管理有限公司 信息的上报方法、装置、设备及存储介质
CN114254222A (zh) * 2021-11-29 2022-03-29 中国平安财产保险股份有限公司 一种统计单页应用的可交互时间的方法、装置及电子设备
CN114741266A (zh) * 2022-05-17 2022-07-12 盐城金堤科技有限公司 页面白屏时长确定方法、装置、电子设备及存储介质

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006164200A (ja) * 2004-12-02 2006-06-22 Takeharu Koga ウェブページ評価値取得プログラム
CN104899336A (zh) * 2015-07-01 2015-09-09 北京博睿宏远科技发展有限公司 一种测量网页首屏完全渲染时间的方法
US20180034721A1 (en) * 2016-07-27 2018-02-01 Facebook, Inc. Methods and systems for benchmarking web browser performance
CN110633412A (zh) * 2019-08-15 2019-12-31 平安普惠企业管理有限公司 页面停留意愿分析方法、装置、计算机设备及存储介质
CN111538885A (zh) * 2020-04-24 2020-08-14 腾讯音乐娱乐科技(深圳)有限公司 页面监听方法、装置、电子设备及存储介质
CN113849758A (zh) * 2021-09-16 2021-12-28 北京百度网讯科技有限公司 网页指标的生成方法、装置、电子设备及存储介质
CN113641924A (zh) * 2021-10-13 2021-11-12 恒生电子股份有限公司 网页可交互时间点检测方法、装置、电子设备及存储介质
CN114006891A (zh) * 2021-10-28 2022-02-01 平安普惠企业管理有限公司 信息的上报方法、装置、设备及存储介质
CN114254222A (zh) * 2021-11-29 2022-03-29 中国平安财产保险股份有限公司 一种统计单页应用的可交互时间的方法、装置及电子设备
CN114741266A (zh) * 2022-05-17 2022-07-12 盐城金堤科技有限公司 页面白屏时长确定方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN117171469A (zh) 2023-12-05

Similar Documents

Publication Publication Date Title
CN110865888B (zh) 一种资源加载方法、装置、服务器及存储介质
US9436572B2 (en) Method and system to detect a cached web page
CN110825456B (zh) 加载时间计算方法、装置、计算机设备及存储介质
JP5347648B2 (ja) プログラム、情報処理装置及び状態出力方法
WO2015180601A1 (zh) WebApp启动运行、生成镜像文件的方法和装置
WO2018054170A1 (zh) 浏览器资源预拉取方法、终端及存储介质
US20140365861A1 (en) Prefetching binary data for use by a browser plugin
CN103678506B (zh) 在浏览器中加载应用程序快捷方式的方法、装置和浏览器
CN110457632B (zh) 网页加载的处理方法及装置
WO2016150324A1 (zh) 一种页面模块的渲染方法、装置以及显示设备
US20240179224A1 (en) Systems and methods for rendering interactive web pages
CN112507259A (zh) 网页加载方法及装置、电子设备、存储介质
WO2023019736A1 (zh) 基于云主机的qga服务管理方法、装置、设备及介质
WO2020077681A1 (zh) 一种延迟加载js脚本的方法和装置
CN113778581A (zh) 页面加载方法、电子设备和存储介质
WO2024060867A1 (zh) 网页指标信息获取方法、装置、计算机设备以及存储介质
US20140331117A1 (en) Application-based dependency graph
CN110708270B (zh) 异常链接检测方法以及装置
CN108062224B (zh) 基于文件句柄的数据读写方法、装置及计算设备
CN110825603A (zh) 页面首次加载时间确定方法、装置、电子设备及存储介质
US20150074224A1 (en) Method and apparatus for automatic reload of documents
US8402367B1 (en) Smart reload pages
CN116627521A (zh) 业务模块预加载方法、跳转方法、装置及存储介质
CN114461950A (zh) 一种全局缓存方法、装置、电子设备及存储介质
CN108846141B (zh) 一种离线缓存加载方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23867162

Country of ref document: EP

Kind code of ref document: A1