CN117909201A - Method and device for determining first screen time of page, electronic equipment and storage medium - Google Patents

Method and device for determining first screen time of page, electronic equipment and storage medium Download PDF

Info

Publication number
CN117909201A
CN117909201A CN202410316292.3A CN202410316292A CN117909201A CN 117909201 A CN117909201 A CN 117909201A CN 202410316292 A CN202410316292 A CN 202410316292A CN 117909201 A CN117909201 A CN 117909201A
Authority
CN
China
Prior art keywords
change
page
determining
entropy
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410316292.3A
Other languages
Chinese (zh)
Other versions
CN117909201B (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.)
Dark Matter Beijing Intelligent Technology Co ltd
DMAI Guangzhou Co Ltd
Original Assignee
Dark Matter Beijing Intelligent Technology Co ltd
DMAI Guangzhou 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 Dark Matter Beijing Intelligent Technology Co ltd, DMAI Guangzhou Co Ltd filed Critical Dark Matter Beijing Intelligent Technology Co ltd
Priority to CN202410316292.3A priority Critical patent/CN117909201B/en
Publication of CN117909201A publication Critical patent/CN117909201A/en
Application granted granted Critical
Publication of CN117909201B publication Critical patent/CN117909201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method and a device for determining page first screen time, electronic equipment and a storage medium, wherein if the change of page elements is determined in the process of monitoring the loading of a webpage; determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the hierarchy where each target element is positioned; when the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values; and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time. Therefore, the accuracy rate of the first screen time determination is improved, and meanwhile, the determination efficiency, the universality and the expandability of the first screen time determination are improved.

Description

Method and device for determining first screen time of page, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for determining a first screen time of a page, an electronic device, and a storage medium.
Background
The front loading of the webpage can be rendered through the HTML5, when the webpage is rendered, the first screen of the whole webpage is completely rendered, the time when the user can interact completely is called first screen time, and the first screen performance is an important index for evaluating the webpage performance and is used for representing the webpage rendering efficiency and the rendering speed.
The method for determining the first screen time adopted by the measurement of the first screen time at the present stage is generally lagged behind the screen rendering completion node, so that the time node for specifically rendering the page cannot be captured, and further the accuracy rate for determining the first screen time is lower.
On the basis, the novel MVVM front end framework is internally provided with a self-defined dotting or a subsequent additional monitoring on the visibility of a specific element, and the monitoring mode can realize the accurate measurement of the first screen time, but the mode needs to bind internal logic codes, different monitoring logics are required to be set for different monitoring elements, and the problems of low first screen time determining efficiency, low universality and low expandability exist.
Disclosure of Invention
In view of the above, the present application aims to provide a method, an apparatus, an electronic device, and a storage medium for determining a first screen time of a page, wherein in a webpage loading process, the webpage loading process is monitored, if it is determined that a change occurs in a page element, an element change entropy value corresponding to a page change moment is determined according to the number of elements in a window visualization area and the level where the elements are located, and then the first screen time is determined according to the difference between the determined element change entropy values. When the page changes, the element change entropy value and the page change moment are recorded, so that the accuracy of first screen time determination is improved; meanwhile, only page changes are monitored, logic processing time adapting to different elements and different codes is reduced, and determination efficiency, universality and expandability of first screen time determination are further improved.
In a first aspect, an embodiment of the present application provides a method for determining a first screen time of a page, where the method includes:
Monitoring the webpage loading process in the webpage front-end loading process;
if the change of the page elements is monitored and determined, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed;
determining an element change entropy value corresponding to the page change moment based on each target element positioned in a window visual area and the level of each target element;
When the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values;
and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time.
In one possible implementation, the page element is determined to change by:
In the process of loading the front end of the webpage, determining monitoring elements for monitoring;
If the change of the sub-elements of the monitoring element meets the preset element change condition, determining that the page element is changed;
wherein the preset element change condition includes at least one of:
sub-element insertion, sub-element deletion, sub-element modification.
In a possible implementation manner, the determining the element change entropy value corresponding to the page change moment based on each target element located in the window visualization area and the level where each target element is located includes:
determining entropy value scores corresponding to each target element based on the hierarchy of each target element;
adding the entropy value scores corresponding to at least one target element of each level, and determining the level entropy value score corresponding to each level;
And adding the level entropy value scores corresponding to the multiple levels, and determining the element change entropy value corresponding to the page change moment.
In one possible implementation, the elements located within the window visualization area are determined by:
acquiring a transverse offset and a longitudinal offset of each page element relative to the window visualization area;
And determining the page elements with the longitudinal offset of the window visualization area larger than or equal to a preset offset threshold and smaller than the height of the window visualization area and the transverse offset larger than or equal to a preset offset threshold and smaller than the width of the window visualization area as the elements in the window visualization area.
In one possible implementation manner, before the determining, based on each target element located in the window visualization area and the level where each target element is located, an element change entropy value corresponding to the page change moment is determined, the determining method further includes:
for each page element, determining whether the element belongs to any preset element type to be deleted or not based on the element type of the page element;
and deleting the page element belonging to any preset element type to be deleted in the plurality of page elements, and determining the target element positioned in the window visual area.
In a possible implementation manner, when the monitoring of the web page loading process is finished, the obtained at least one element change entropy value is ordered according to the corresponding page change time, and the entropy value difference between the adjacent element change entropy values is respectively determined, which includes:
When the monitoring of the webpage loading process is finished, sequencing at least one acquired element change entropy value according to the corresponding page change moment, wherein the entropy value sequenced after the adjacent element change entropy value is smaller than the element change entropy value sequenced before the adjacent element change entropy value, determining the element change entropy value to be deleted, and after the element change entropy value to be deleted is deleted, circularly deleting the element change entropy value process to be deleted until the element change entropy value to be deleted does not exist;
and sequencing at least one element change entropy value obtained after the process of deleting the element change entropy value to be deleted is stopped, and respectively determining entropy value differences between adjacent element change entropy values.
In one possible implementation, the end of monitoring the web page loading process is determined by:
Monitoring the webpage loading process in the webpage front-end loading process, and determining the monitoring starting time;
And if the time difference between the current time and the monitoring starting time is larger than a preset monitoring time threshold, determining that the monitoring of the webpage loading process is finished.
In a second aspect, an embodiment of the present application further provides a device for determining a first screen time of a page, where the determining device includes:
The monitoring module is used for monitoring the webpage loading process in the webpage front-end loading process;
the element determining module is used for determining the number of elements and the level of the elements in the window visual area if the change of the page elements is determined by monitoring, and acquiring the page change moment when the page elements are changed;
The entropy value determining module is used for determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the level where each target element is positioned;
The difference value screening module is used for sequencing the acquired at least one element change entropy value according to the corresponding page change moment when the webpage loading process is finished, respectively determining entropy value differences between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy value differences;
And the first screen time determining module is used for determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of determining page head time as described in any of the first aspects.
In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the method for determining a page first time according to any one of the first aspects.
The method, the device, the electronic equipment and the storage medium for determining the first screen time of the page provided by the embodiment of the application monitor the loading process of the webpage in the loading process of the front end of the webpage; if the change of the page elements is monitored and determined, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed; determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the hierarchy where each target element is positioned; when the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values; and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time. In this way, in the webpage loading process, the webpage loading process is monitored, if the webpage elements are determined to change, the element change entropy value corresponding to the webpage change moment is determined according to the element number in the window visual area and the level where the elements are located, and then the first screen time is determined according to the difference value between the determined element change entropy values. When the page changes, the element change entropy value and the page change moment are recorded, so that the accuracy of first screen time determination is improved; meanwhile, only page changes are monitored, logic processing time adapting to different elements and different codes is reduced, and determination efficiency, universality and expandability of first screen time determination are further improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for determining a first time of a page according to an embodiment of the present application;
FIG. 2 is a flow chart of measurement of first screen time according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a device for determining a first time of a page according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of a device for determining a first time of a page according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
First, an application scenario to which the present application is applicable will be described. The application can be applied to the technical field of Internet.
The front loading of the webpage can be rendered through the HTML5, when the webpage is rendered, the first screen of the whole webpage is completely rendered, the time when the user can interact completely is called first screen time, and the first screen performance is an important index for evaluating the webpage performance and is used for representing the webpage rendering efficiency and the rendering speed.
In the prior art, a plurality of methods and standards are adopted to determine the first screen time:
DOMContentLoaded events using HTML or load events of doucment. The former can only capture html parsing completion, but does not contain other associated resources (e.g., pictures, style sheets). The latter can only monitor the initial structure content of documents, but for some new MVVM front end frames, the documents are re-rendered through JavaScript hysteresis operation, and in this case, the nodes with specific rendering completion cannot be captured; related Api (FCP, LCP) through browser performance. FCP (first content drawing) can only capture the time when rendering starts, and has a large deviation from the final rendering completion time. LCP (maximum content rendering) is based on FCP time to capture listening elements, and for asynchronous rendering elements with hysteresis such as code logic and network requests, LCP cannot capture specific first screen content rendering nodes, which results in lower accuracy in determining first screen time.
On the basis, the novel MVVM front end framework is internally provided with a custom dotting function, if the fixed-point calculation is carried out under the Vue framework after onMounted (mounting is completed), or the visible line monitoring of a specific element is added later. The dotting method can realize accurate measurement of the first screen time, but can add additional logic codes for different pages, and form tight coupling with service codes, and different frames need to be respectively rendered and used for different code writing aiming at the frames, so that the problems of low first screen time determining efficiency, low universality and low expandability exist.
Based on the above, the embodiment of the application provides a method for determining the first screen time of a page, so as to improve the accuracy, the determination efficiency, the universality and the expandability of the first screen time determination.
Referring to fig. 1, fig. 1 is a flowchart of a method for determining a first time of a page according to an embodiment of the present application. As shown in FIG. 1, the method for determining the first screen time of the page provided by the embodiment of the application comprises the following steps:
S101, monitoring a webpage loading process in the webpage front end loading process.
S102, if the change of the page elements is determined through monitoring, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed.
S103, determining an element change entropy value corresponding to the page change moment based on each target element located in the window visual area and the level where each target element is located.
And S104, when the monitoring of the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy value differences between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy value differences.
S105, determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time at the back of the page change time corresponding to the two element change entropy values as the first screen time.
According to the method for determining the first screen time of the page, which is provided by the embodiment of the application, in the webpage loading process, the webpage loading process is monitored, if the webpage elements are determined to be changed, the element change entropy value corresponding to the page change moment is determined according to the element number in the window visual area and the level where the elements are located, and then the first screen time is determined according to the difference value between the determined element change entropy values. When the page changes, the element change entropy value and the page change moment are recorded, so that the accuracy of first screen time determination is improved; meanwhile, only page changes are monitored, logic processing time adapting to different elements and different codes is reduced, and determination efficiency, universality and expandability of first screen time determination are further improved.
Exemplary steps of embodiments of the present application are described below:
S101, monitoring a webpage loading process in the webpage front end loading process.
In the embodiment of the application, the front loading of the webpage can be rendered through an application (HTML 5) under a standard general markup language, and when the webpage is rendered, the whole first screen of the webpage is completely rendered, the time of the complete interaction of the user is called first screen time, and the first screen performance is an important index for evaluating the webpage performance and is used for representing the webpage rendering efficiency and rendering speed.
In one possible implementation manner, a listener can be created through MutationObserver according to the characteristic of HTML5 in the webpage loading process, and the listening document element is bound, so that when the element changes in the whole webpage, the program is notified to perform specific response operation.
The document element may be understood as an overall element of the web page with the highest hierarchy.
Further, when the change of the page element is detected by the monitor, a trigger flow aiming at element calculation and first screen time needs to be triggered, and the change of the page element can be understood as the change of the child node element of the target element of binding detection.
Specifically, the page element is determined to change by:
a1: and in the process of loading the front end of the webpage, determining the monitored elements.
A2: and if the change of the sub-element of the monitoring element meets the preset element change condition, determining that the page element is changed.
Wherein the preset element change condition comprises at least one of the following:
sub-element insertion, sub-element deletion, sub-element modification.
In the embodiment of the application, the monitoring can be Document elements, and each HTML Document loaded into the browser becomes a Document object; for each child node of the target element, it may be inserted, deleted or modified during the loading process, which may be considered as a change in the page element.
In one possible implementation, the child element insertion may be a child element that is newly added in the interface to a node during rendering; the sub-element deletion may be that the element is not required to be rendered at a certain time node in the rendering process; the child element modification may be a modification to a style (color, size, etc.) of the child element or a rendering location of the child element.
Further, if the page element is determined to change during the process of loading the front end of the webpage, it is required to further determine that the page element is located in the window visualization area, and determine the number of elements and the level of the elements in the window visualization area.
S102, if the change of the page elements is determined through monitoring, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed.
In the embodiment of the application, the current time can be acquired through calling a browser time API function (e.g. a new Date function), and the current time is determined as the page change time when the page element changes.
In one possible implementation, the window visualization area may refer to a visual area of a browser window, which characterizes a portion of an area where a user opens a web page to display, i.e., an area that may be used for display, in addition to an address bar, a menu bar, a function bar, a status bar, and the like.
In the embodiment of the application, after the change of the page element is determined, the execution of the subsequent calculation logic is performed according to the element positioned in the window visual area, so that after the change of the page element is determined, the element positioned in the window visual area is required to be determined first.
Specifically, the elements located within the window visualization area are determined by:
b1: and acquiring the transverse offset and the longitudinal offset of each page element relative to the window visualization area.
B2: and determining the page elements with the longitudinal offset of the window visualization area larger than or equal to a preset offset threshold and smaller than the height of the window visualization area and the transverse offset larger than or equal to a preset offset threshold and smaller than the width of the window visualization area as the elements in the window visualization area.
Wherein the preset offset threshold may be set to 0, i.e. the page element is offset in the portrait and/or landscape direction with respect to the window visualization area.
In one possible implementation manner, the positions of the elements can be obtained through getBoundingClientRect, so that the offset of each page element corresponding to the window visualization area is determined; and may obtain the height and width of the window visualization area according to INNERHEIGHT and INNERWIDTH, determine, by comparing the element offset with the height and width of the window visualization area, page elements that are greater than or equal to a preset offset threshold (0) and less than the height of the window visualization area, and lateral offsets greater than or equal to a preset offset threshold (0) and less than the width of the window visualization area, as elements that are within the window visualization area.
For example, the offset of each page element corresponding to the window visual area may be an offset relative to the center position of the window visual area, if the height of the window visual area is 3 and the width of the window visual area is 5 based on INNERHEIGHT, and the page element a and the page element B exist at the same time, at this time, the offset of the page element a is obtained according to getBoundingClientRect and is 1, the offset of the page element B is obtained according to getBoundingClientRect and is 7, and it may be determined that the page element a is not located in the window visual area according to the comparison; the page element B is located within the window visualization area.
In a possible implementation manner, for different page elements, the elements may be only descriptions or definitions of the page elements, and the page elements do not participate in page rendering, and before the calculation process of the first screen time is determined, the elements which do not participate in page rendering need to be deleted, so that interference to the calculation process of the first screen time and calculation steps are reduced, and the determination efficiency of the first screen time is improved.
Specifically, before the step of determining the element change entropy value corresponding to the page change moment based on each target element located in the window visualization area and the level where each target element is located, the determining method further includes:
c1: for each page element, determining whether the element belongs to any preset element type to be deleted based on the element type of the page element.
C2: and deleting the page element belonging to any preset element type to be deleted in the plurality of page elements, and determining the target element positioned in the window visual area.
In an embodiment of the present application, the element types to be deleted may include script elements (scripts); a region Style specification element (Style), which is a modification to each tag in the code; a head element (head) of a web document, and any metadata information element (meta) that cannot be represented by one of the other HTML meta-related elements (< base >, < link >, < script >, < style > or < title >).
In one possible implementation manner, for each web page element, if it is determined that the uniform speed type of the web page element belongs to any element type to be deleted according to the element type of the web page element, the web page element is deleted, and the web page element does not participate in the subsequent calculation process any more, so that erroneous calculation is avoided.
In one possible implementation, the determination program logic for the retention mode of the page element is implemented as follows:
if (++ | [ ' script ', ' style ', ' meta ', ' head ', ' include ] (tagName: element label number).
Further, after determining the elements located in the window visualization area and deleting the elements belonging to the element type to be deleted, calculating an element change entropy value corresponding to the page change time according to each target element and the hierarchy where each target element is located.
S103, determining an element change entropy value corresponding to the page change moment based on each target element located in the window visual area and the level where each target element is located.
In the embodiment of the application, for each target element in the window visual area, all the offspring elements of the monitored documents are traversed, and then each target element in the window visual area is calculated to obtain an entropy value, and then the corresponding entropy values are accumulated according to the hierarchy to obtain the element change entropy value corresponding to the page change moment.
Specifically, the step of determining an element change entropy value corresponding to the page change moment based on each target element located in the window visualization area and the hierarchy where each target element is located includes:
d1: and determining the entropy value score corresponding to each target element based on the hierarchy of each target element.
D2: and adding the entropy value scores corresponding to at least one target element of each hierarchy, and determining the hierarchy entropy value score corresponding to each hierarchy.
D3: and adding the level entropy value scores corresponding to the multiple levels, and determining the element change entropy value corresponding to the page change moment.
In the embodiment of the present application, for each target element, calculation may be performed by a transCount (layer) function, where el is a node; layer is layer node number, which represents layer number from top to bottom; identify indicates whether each hierarchy score is 0.
In one possible implementation, the calculation function may be recursively invoked from the body element to the child element for calculation, the first invocation being a transCount (1, false).
Wherein, for each target element, the entropy value score corresponding to the target element may be determined by the following formula:
The score is an entropy score corresponding to the target element, and the layer is a layer where the target element is located.
Further, after determining entropy value scores corresponding to at least one target element located in the same hierarchy, adding entropy values corresponding to each target element located in the hierarchy, and determining a hierarchy entropy value score corresponding to each hierarchy; and then, the hierarchical entropy values corresponding to each hierarchical level are added layer by layer, and the element change entropy value corresponding to the final page change moment is determined.
In one possible implementation, for an element height that exceeds the window visualization area height, then the entropy value score corresponding to the element is determined to be 0.
Illustratively, assume that the final rendered DOM results are as follows:
<body>
<div>
<div>
<div>1</div>
<div>2</div>
</div>
<div>3</div>
<div style="display: none;">4</div>
</div>
<ul>
<li>1</li>
<li>2</li>
</ul></body>;
Monitoring node changes of DOM objects by utilizing MutationObserver interfaces, and calculating scores when the DOM changes; when the change of the DOM is monitored for the first time by the Mutation, the div label is rendered, but the ul label is not rendered at the moment; the entropy value was calculated for the first DOM change, which was 8.5, and score for each level as follows:
body =》 transCount(body, 1, false); score = 8.5;
div =》 transCount(div, 2, false); score = 8.5;
div =》 transCount(div, 3, false);score = 6;
div=》 transCount(div, 4, false);score = 3;
div=》 transCount(div, 4, false);score = 3;
div =》 transCount(div, 3, false);score = 2.5;
div =》 transCount(div, 3, false);score = 0。
wherein, the element of the div= (layer) is located outside the window visual area so that the entropy value of the element is divided into 0; div= (passing formula) Calculating to obtain 2.5; the hierarchical entropy value score for the third layer may be 3+3=6 determined by the hierarchical entropy value score of the fourth layer; the hierarchical entropy value score for the second layer may be 6+2.5=8.5 determined by the hierarchical entropy value score of the third layer; the level entropy score of the element change entropy corresponding to the page change time as the first level can be obtained as 8.5 according to the level entropy score of the second level.
Further, when the change of the DOM is monitored for the second time by the Mutation, the ul tag is rendered, the entropy value of the change is 10, and the score of each level is as follows:
body =》 transCount(body, 1, false); score = 10;
div =》 transCount(div, 2, false); score = 5;
div =》 transCount(div, 3, false);score = 2.5;
div =》 transCount(div, 3, false);score = 2.5;
div =》 transCount(div, 3, false);score = 0;
ul =》 transCount(div, 2, false); score = 5;
li =》 transCount(div, 3, false);score = 2.5;
li =》 transCount(div, 3, false);score = 2.5;
wherein li= "passes the formula Calculating to obtain 2.5; the hierarchical entropy value score for the second layer may be 2.5+2.5=5 (ul) determined by the hierarchical entropy value score for the third layer; the hierarchical entropy value score for the second layer may be 2.5+2.5+0=5 (div) determined from the hierarchical entropy value score of the third layer; the level entropy score for the element change entropy corresponding to the page change time is 5 (ul) +5 (div) =10 according to the level entropy score of the second layer, which is obtained as 10.
Further, if it is determined that the web page loading process is finished, the obtained at least one element change entropy value needs to be ordered according to the page change moment, then the entropy value difference value between the adjacent element change entropy values is determined, and meanwhile, a target difference value with the largest difference value among the entropy value difference values is screened out.
And S104, when the monitoring of the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy value differences between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy value differences.
In the embodiment of the application, whether the current monitoring of the webpage loading process is finished can be determined according to the difference value between the current moment and the monitoring starting moment.
Specifically, the end of monitoring the web page loading process is determined by the following steps:
e1: in the process of loading the front end of the webpage, monitoring the webpage loading process and determining the monitoring starting time.
E2: and if the time difference between the current time and the monitoring starting time is larger than a preset monitoring time threshold, determining that the monitoring of the webpage loading process is finished.
In the embodiment of the application, when the front end of the webpage starts to load, the webpage loading process is monitored, the monitoring starting time is recorded, the current time is obtained through the time API in real time, the monitoring starting time is subtracted according to the obtained current time, the monitoring duration is determined, if the monitoring duration is larger than the preset monitoring time threshold, the webpage loading process is determined to end.
In one possible implementation, the preset monitoring time threshold is positively correlated with the loading time of the web page, and the shorter the loading time of the web page is, the smaller the preset monitoring time threshold is; in order to ensure the accuracy of monitoring the webpage loading process, the preset monitoring time threshold needs to be larger than the webpage loading time.
For example, the preset monitoring time threshold may be set to 10 seconds, if it is determined that the monitoring start time is 2:30:15, and the current time is 2:30:26 obtained through the time API, the time difference between the current time and the monitoring start time is 11 seconds and is greater than the preset monitoring time threshold for 10 seconds, at this time, it is determined that the monitoring of the web page loading process is finished.
Further, after the sequence from small to large according to the page change moment, the element change entropy value in the sequence needs to be further processed, and the element with the smaller change entropy value needs to be deleted, so that the data processing amount can be reduced, and the determination efficiency of the first screen time is further improved.
Specifically, the step of "when monitoring the web page loading process is finished, sorting the obtained at least one element change entropy according to the corresponding page change time, and determining the entropy difference between the adjacent element change entropy respectively" includes:
f1: when the monitoring of the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, determining that the element change entropy to be deleted is smaller than the element change entropy sequenced before in the adjacent element change entropy, and after deleting the element change entropy to be deleted, circularly deleting the element change entropy to be deleted until the element change entropy to be deleted does not exist after sequencing the at least one element change entropy;
f2: and sequencing at least one element change entropy value obtained after the process of deleting the element change entropy value to be deleted is stopped, and respectively determining entropy value differences between adjacent element change entropy values.
In the embodiment of the application, after the webpage loading process is determined to be finished, the acquired at least one element change entropy value is ordered according to the sequence from small to large at the corresponding page change moment, and in the webpage loading rendering process, DOM objects can be deleted, and the deleted DOM objects (with small entropy change) need to be removed before the entropy value difference is calculated.
Illustratively, the element change entropy value is [2,3,4,2,3,1,6,3,7] after being ordered according to the order from small to large at the corresponding page change moment; as can be seen from comparison, the element change entropy value 2 at the fourth bit is smaller than the element change entropy value 4 at the third bit, and the element change entropy value 2 at the fourth bit needs to be deleted; the element change entropy value 1 in the sixth bit is smaller than the element change entropy value 3 in the fifth bit, and the element change entropy value 1 in the sixth bit needs to be deleted; the element change entropy value 3 at the eighth bit is smaller than the element change entropy value 6 at the seventh bit, and the element change entropy value 3 at the eighth bit needs to be deleted; at this time, the sequence after deleting the element to be deleted and changing the entropy value is [2,3,4,3,6,7]; the process is circulated again, and comparison shows that the element change entropy value 3 at the fourth bit is smaller than the element change entropy value 4 at the third bit, and the element change entropy value 3 at the fourth bit needs to be deleted; at this time, the sequence after deleting the entropy value of the element to be deleted is [2,3,4,6,7]; after the process of circularly deleting the element change entropy value to be deleted again, the element change entropy value to be deleted is not added according with the condition, and the process of circularly deleting the element change entropy value to be deleted is stopped; thus, the sequence after stopping the cyclic process is [2,3,4,6,7].
In one possible implementation, the procedure for deleting the element change entropy value is implemented as follows:
function removeSmallScore (data: entropy record) {
for (let i = 1; i<data.length; i++) {
if (data[i].score<data[i - 1].score) {
data.splice(i, 1);
return removeSmallScore(data);
}
}
return data;
}
In one possible implementation, it is desirable to calculate the entropy difference between the entropy values of the adjacent element variations, and for [2,3,4,6,7] in the above example, calculate the entropy difference between [2,3] [3,4] [4,6] [6,7], respectively; [2,3] = >1, [3,4] = >1, [4,6] = >2, [6,7] = >1, a target difference value having the largest difference value among the plurality of entropy value difference values, that is, [4,6] = >2, is determined.
Further, after determining the target difference value with the largest difference value among the entropy difference values, the first screen time can be determined according to the target difference value with the largest difference value.
S105, determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time at the back of the page change time corresponding to the two element change entropy values as the first screen time.
In the embodiment of the application, after the target difference value is determined, two adjacent element change entropy values corresponding to the target difference value are determined, and the page change moment with the later time is determined as the first screen time.
For the above example, if the element change entropy corresponding to the target difference value with the largest difference value among the multiple entropy difference values is [4,6], the page change time with the change entropy of 6 is the case of the largest page change, that is, the page change time at the point is taken as the first screen time point.
In one possible implementation manner, if more than one target difference value exists at the same time, determining the last moment of the corresponding page change moment as the first screen time in the corresponding element change entropy values.
Illustratively, the element change entropy values are [2,3,4,6,8,9] after being ordered according to the sequence from the small to the large corresponding page change moments, and at the moment, entropy value differences between [2,3] [4,6] [6,8] [8,9] are calculated respectively; [2,3] = >1, [4,6] = >2, [6,8] = >2, [8,9] = >1, at this time, the target difference value with the largest difference value among the plurality of entropy value differences is 2, the corresponding element change entropy values are [4,6] and [6,8], and then the page change time corresponding to the element change entropy value 8 with the last sequence needs to be determined as the first screen time.
Further, after determining the moment corresponding to the first screen time, the time difference between the moment corresponding to the first screen time and the monitoring starting moment can be further determined, the page rendering time is determined, and further, the performance of the webpage is evaluated according to the page rendering time.
In the following, a specific example will be used to describe a procedure of determining the first screen time of a page in the embodiment of the present application, referring to fig. 2, fig. 2 is a flowchart of measuring the first screen time provided in the embodiment of the present application, as shown in fig. 2, after loading html of the page, a monitoring event is set and monitoring is triggered, and whether there is a child node content change under a document element is monitored; triggering a document monitoring event, confirming that element changes exist, and triggering subsequent algorithm processing; counting all elements in a visual area of a browser window, calculating entropy values through an algorithm according to the number and the structure of the elements, generating a piece of data containing the entropy values and the current time, and recording the data into a list; judging whether the monitoring event is ended; if the monitoring event is over, comparing the entropy value difference of each adjacent record, and confirming that the comparison can be regarded as the condition of the maximum page change if the comparison result with the maximum entropy value difference is obtained, and finally taking the time of the next record data of the comparison as the first screen time; if the monitoring event is not finished, returning to the process of setting the monitoring event after loading the page html and triggering monitoring, and continuing monitoring if the child node content is changed under the monitoring document element.
According to the method for determining the first screen time of the page, provided by the embodiment of the application, the loading process of the webpage is monitored in the loading process of the front end of the webpage; if the change of the page elements is monitored and determined, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed; determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the hierarchy where each target element is positioned; when the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values; and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time. In this way, in the webpage loading process, the webpage loading process is monitored, if the webpage elements are determined to change, the element change entropy value corresponding to the webpage change moment is determined according to the element number in the window visual area and the level where the elements are located, and then the first screen time is determined according to the difference value between the determined element change entropy values. When the page changes, the element change entropy value and the page change moment are recorded, so that the accuracy of first screen time determination is improved; meanwhile, only page changes are monitored, logic processing time adapting to different elements and different codes is reduced, and determination efficiency, universality and expandability of first screen time determination are further improved.
Based on the same inventive concept, the embodiment of the application also provides a device for determining the first screen time of the page, which corresponds to the method for determining the first screen time of the page.
Referring to fig. 3 and fig. 4, fig. 3 is a schematic structural diagram of a first device for determining a first time of a page according to an embodiment of the present application, and fig. 4 is a second schematic structural diagram of a second device for determining a first time of a page according to an embodiment of the present application. As shown in fig. 3, the determining apparatus 300 includes:
The monitoring module 310 is configured to monitor a web page loading process during a web page front-end loading process.
The element determining module 320 is configured to determine the number of elements and the level of the elements in the window visualization area if the change of the page element is determined, and obtain the page change time when the page element is changed.
The entropy determining module 330 is configured to determine an element change entropy corresponding to the page change time based on each target element located in the window visualization area and a hierarchy where each target element is located.
And the difference value screening module 340 is configured to, when monitoring the web page loading process is finished, sort the obtained at least one element change entropy value according to the corresponding page change moment, determine entropy value differences between adjacent element change entropy values, and screen out a target difference value with a maximum difference value among the plurality of entropy value differences.
The first screen time determining module 350 is configured to determine two adjacent element change entropy values corresponding to the target difference value, and determine a later page change time of page change times corresponding to the two element change entropy values as a first screen time.
In a possible implementation, as shown in fig. 4, the determining apparatus 300 further includes an element determining module 360, where the element determining module 360 is configured to determine the element located in the window visualization area by:
acquiring a transverse offset and a longitudinal offset of each page element relative to the window visualization area;
And determining the page elements with the longitudinal offset of the window visualization area larger than or equal to a preset offset threshold and smaller than the height of the window visualization area and the transverse offset larger than or equal to a preset offset threshold and smaller than the width of the window visualization area as the elements in the window visualization area.
In a possible implementation manner, as shown in fig. 4, the determining apparatus 300 further includes an element deletion module 370, where the element deletion module 370 is configured to:
for each page element, determining whether the element belongs to any preset element type to be deleted or not based on the element type of the page element;
and deleting the page element belonging to any preset element type to be deleted in the plurality of page elements, and determining the target element positioned in the window visual area.
In one possible implementation, the element determining module 320 is configured to determine that the page element changes by:
In the process of loading the front end of the webpage, determining monitoring elements for monitoring;
If the change of the sub-elements of the monitoring element meets the preset element change condition, determining that the page element is changed;
wherein the preset element change condition includes at least one of:
sub-element insertion, sub-element deletion, sub-element modification.
In one possible implementation manner, when the entropy determining module 330 is configured to determine the element change entropy corresponding to the page change time based on each target element located in the window visualization area and the level at which each target element is located, the entropy determining module 330 is configured to:
determining entropy value scores corresponding to each target element based on the hierarchy of each target element;
adding the entropy value scores corresponding to at least one target element of each level, and determining the level entropy value score corresponding to each level;
And adding the level entropy value scores corresponding to the multiple levels, and determining the element change entropy value corresponding to the page change moment.
In a possible implementation manner, when the difference filtering module 340 is configured to order the obtained at least one element change entropy value according to the corresponding page change moment when monitoring the web page loading process is finished, and determine the entropy value difference between the adjacent element change entropy values, the difference filtering module 340 is configured to:
When the monitoring of the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, determining that the element change entropy to be deleted is smaller than the element change entropy sequenced before in the adjacent element change entropy, and after deleting the element change entropy to be deleted, circularly deleting the element change entropy to be deleted until the element change entropy to be deleted does not exist after sequencing the at least one element change entropy;
and sequencing at least one element change entropy value obtained after the process of deleting the element change entropy value to be deleted is stopped, and respectively determining entropy value differences between adjacent element change entropy values.
In one possible implementation, the difference filtering module 340 is configured to determine that monitoring the web page loading process is finished by:
Monitoring the webpage loading process in the webpage front-end loading process, and determining the monitoring starting time;
And if the time difference between the current time and the monitoring starting time is larger than a preset monitoring time threshold, determining that the monitoring of the webpage loading process is finished.
The device for determining the first screen time of the page provided by the embodiment of the application monitors the loading process of the webpage in the loading process of the front end of the webpage; if the change of the page elements is monitored and determined, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed; determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the hierarchy where each target element is positioned; when the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values; and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time. In this way, in the webpage loading process, the webpage loading process is monitored, if the webpage elements are determined to change, the element change entropy value corresponding to the webpage change moment is determined according to the element number in the window visual area and the level where the elements are located, and then the first screen time is determined according to the difference value between the determined element change entropy values. When the page changes, the element change entropy value and the page change moment are recorded, so that the accuracy of first screen time determination is improved; meanwhile, only page changes are monitored, logic processing time adapting to different elements and different codes is reduced, and determination efficiency, universality and expandability of first screen time determination are further improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, and a bus 530.
The memory 520 stores machine-readable instructions executable by the processor 510, when the electronic device 500 is running, the processor 510 communicates with the memory 520 through the bus 530, and when the machine-readable instructions are executed by the processor 510, the steps of the method for determining the first screen time of a page in the method embodiment shown in fig. 1 may be executed, and a specific implementation manner may refer to the method embodiment and will not be described herein.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the method for determining the first screen time of a page in the method embodiment shown in fig. 1 may be executed, and a specific implementation manner may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. The method for determining the first screen time of the page is characterized by comprising the following steps:
Monitoring the webpage loading process in the webpage front-end loading process;
if the change of the page elements is monitored and determined, determining the number of the elements and the level of the elements in the window visual area, and acquiring the page change moment when the page elements are changed;
determining an element change entropy value corresponding to the page change moment based on each target element positioned in a window visual area and the level of each target element;
When the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, respectively determining entropy difference values between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy difference values;
and determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time.
2. The determination method according to claim 1, wherein the page element is determined to change by:
In the process of loading the front end of the webpage, determining monitoring elements for monitoring;
If the change of the sub-elements of the monitoring element meets the preset element change condition, determining that the page element is changed;
wherein the preset element change condition includes at least one of:
sub-element insertion, sub-element deletion, sub-element modification.
3. The determining method according to claim 1, wherein the determining the element change entropy value corresponding to the page change time based on each target element located in the window visualization area and the hierarchy in which each target element is located includes:
determining entropy value scores corresponding to each target element based on the hierarchy of each target element;
adding the entropy value scores corresponding to at least one target element of each level, and determining the level entropy value score corresponding to each level;
And adding the level entropy value scores corresponding to the multiple levels, and determining the element change entropy value corresponding to the page change moment.
4. The determination method according to claim 1, wherein the elements located within the window visualization area are determined by:
acquiring a transverse offset and a longitudinal offset of each page element relative to the window visualization area;
And determining the page elements with the longitudinal offset of the window visualization area larger than or equal to a preset offset threshold and smaller than the height of the window visualization area and the transverse offset larger than or equal to a preset offset threshold and smaller than the width of the window visualization area as the elements in the window visualization area.
5. The method according to claim 4, wherein before determining the element change entropy value corresponding to the page change time based on each target element located in the window visualization area and the hierarchy in which each target element is located, the method further comprises:
for each page element, determining whether the element belongs to any preset element type to be deleted or not based on the element type of the page element;
and deleting the page element belonging to any preset element type to be deleted in the plurality of page elements, and determining the target element positioned in the window visual area.
6. The method for determining according to claim 1, wherein when the monitoring of the web page loading process is finished, the obtained at least one element change entropy value is ordered according to the corresponding page change time, and the determining the entropy value difference between the adjacent element change entropy values includes:
When the monitoring of the webpage loading process is finished, sequencing the acquired at least one element change entropy according to the corresponding page change moment, determining that the element change entropy to be deleted is smaller than the element change entropy sequenced before in the adjacent element change entropy, and after deleting the element change entropy to be deleted, circularly deleting the element change entropy to be deleted until the element change entropy to be deleted does not exist after sequencing the at least one element change entropy;
and sequencing at least one element change entropy value obtained after the process of deleting the element change entropy value to be deleted is stopped, and respectively determining entropy value differences between adjacent element change entropy values.
7. The method of determining as claimed in claim 1, wherein the end of monitoring the web page loading process is determined by:
Monitoring the webpage loading process in the webpage front-end loading process, and determining the monitoring starting time;
And if the time difference between the current time and the monitoring starting time is larger than a preset monitoring time threshold, determining that the monitoring of the webpage loading process is finished.
8. A device for determining a first screen time of a page, the device comprising:
The monitoring module is used for monitoring the webpage loading process in the webpage front-end loading process;
the element determining module is used for determining the number of elements and the level of the elements in the window visual area if the change of the page elements is determined by monitoring, and acquiring the page change moment when the page elements are changed;
The entropy value determining module is used for determining an element change entropy value corresponding to the page change moment based on each target element positioned in the window visual area and the level where each target element is positioned;
The difference value screening module is used for sequencing the acquired at least one element change entropy value according to the corresponding page change moment when the webpage loading process is finished, respectively determining entropy value differences between adjacent element change entropy values, and screening out a target difference value with the largest difference value among a plurality of entropy value differences;
And the first screen time determining module is used for determining two adjacent element change entropy values corresponding to the target difference value, and determining the page change time which is later in page change time corresponding to the two element change entropy values as the first screen time.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of determining a page head time as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method of determining a page first time as claimed in any of claims 1 to 7.
CN202410316292.3A 2024-03-20 2024-03-20 Method and device for determining first screen time of page, electronic equipment and storage medium Active CN117909201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410316292.3A CN117909201B (en) 2024-03-20 2024-03-20 Method and device for determining first screen time of page, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410316292.3A CN117909201B (en) 2024-03-20 2024-03-20 Method and device for determining first screen time of page, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117909201A true CN117909201A (en) 2024-04-19
CN117909201B CN117909201B (en) 2024-06-11

Family

ID=90686228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410316292.3A Active CN117909201B (en) 2024-03-20 2024-03-20 Method and device for determining first screen time of page, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117909201B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155707A1 (en) * 2005-01-13 2006-07-13 Microsoft Corporation Hyperlinks as visualizations of standing queries
CN104484449A (en) * 2014-12-25 2015-04-01 北京国双科技有限公司 Web page text extraction method and web page text extraction device
CN108667856A (en) * 2018-08-10 2018-10-16 广东电网有限责任公司 A kind of network anomaly detection method, device, equipment and storage medium
CN117453509A (en) * 2023-11-09 2024-01-26 赛尔网络有限公司 Webpage performance grading method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060155707A1 (en) * 2005-01-13 2006-07-13 Microsoft Corporation Hyperlinks as visualizations of standing queries
CN104484449A (en) * 2014-12-25 2015-04-01 北京国双科技有限公司 Web page text extraction method and web page text extraction device
CN108667856A (en) * 2018-08-10 2018-10-16 广东电网有限责任公司 A kind of network anomaly detection method, device, equipment and storage medium
CN117453509A (en) * 2023-11-09 2024-01-26 赛尔网络有限公司 Webpage performance grading method, device, equipment and medium

Also Published As

Publication number Publication date
CN117909201B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
CN106844635B (en) Method and device for editing elements in webpage
CN110661794B (en) Flow identification method and device, electronic equipment and readable storage medium
CN105653949B (en) A kind of malware detection methods and device
CN110737892B (en) Detection method aiming at APC injection and related device
JP6453187B2 (en) program
US11863632B2 (en) Method and system for application performance neutral, network bandwidth optimized capturing of resources used during the interaction of user with a web-based application to create monitoring data for an accurate visual reconstruction of the user experience
CN109240664B (en) Method and terminal for collecting user behavior information
CN110401580B (en) Webpage state monitoring method based on heartbeat mechanism and related equipment
CN112835776A (en) Page event reproduction method, page event acquisition method, page event reproduction device and electronic equipment
CN117909201B (en) Method and device for determining first screen time of page, electronic equipment and storage medium
CN108733543A (en) A kind of method, apparatus of log analysis, electronic equipment and readable storage medium storing program for executing
CN113987388A (en) Text display method and device and electronic equipment
CN112069033B (en) Page monitoring method and device, electronic equipment and storage medium
CN112307384B (en) Page snapshot display method and device, electronic equipment and storage medium
CN105550250B (en) A kind of processing method and processing device of access log
CN111125704B (en) Webpage Trojan horse recognition method and system
CN116502600A (en) Invoice file previewing method and device, storage medium and electronic equipment
CN114741266A (en) Page white screen duration determining method and device, electronic equipment and storage medium
CN114281769A (en) Method and device for managing files on disk, computer equipment and storage medium
CN111352917B (en) Information input method and device, electronic equipment and storage medium
CN114329149A (en) Detection method and device for automatically capturing page information, electronic equipment and readable storage medium
CN113688000A (en) Method and device for displaying use information of magnetic disk, storage medium and computer equipment
CN116166617B (en) Catalog generation method and device for combined open format document OFD
CN107451160B (en) Page pre-reading method and device
KR20160089995A (en) Apparatus and method for collecting and analysing HTML5 documents based a distributed parallel processing

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