CN110781063B - Method, device, equipment and storage medium for measuring first screen time of web page - Google Patents
Method, device, equipment and storage medium for measuring first screen time of web page Download PDFInfo
- Publication number
- CN110781063B CN110781063B CN201911025052.3A CN201911025052A CN110781063B CN 110781063 B CN110781063 B CN 110781063B CN 201911025052 A CN201911025052 A CN 201911025052A CN 110781063 B CN110781063 B CN 110781063B
- Authority
- CN
- China
- Prior art keywords
- current
- browser
- screenshot
- screen time
- proportion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000009877 rendering Methods 0.000 claims abstract description 43
- 238000012544 monitoring process Methods 0.000 claims abstract description 18
- 238000012790 confirmation Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording 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/3409—Recording 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/3419—Recording 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for measuring webpage first screen time. The method comprises the following steps: monitoring a rendering event of the current browser; when a rendering event is monitored, acquiring a current page screenshot of the current browser; and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time. According to the technical scheme provided by the embodiment of the invention, the accuracy of the statistical data is improved, the practical significance of counting the first screen time is enhanced, and the performance and power consumption cost are low.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for measuring webpage first screen time.
Background
With the development of internet technology, the mobile terminal page first screen time is an important performance index in measuring network performance monitoring service. In order to acquire the first screen time of a page, the traditional method acquires the first screen height according to file object model (Document Object Model, DOM) information, then polls the rendered height of the current page, and when the rendered page height is not smaller than the first screen height, the first screen loading is considered to be completed, and the current time is recorded as the first screen time of the page.
In the prior art, under the condition that the network environment is unstable or the loading time of the actual content of the page is long, the situation that the browser displays a background 'white screen' first and the actual content appears on the page after a period of time easily appears. At this time, according to the traditional first screen time calculation method, the time when the loading of the background 'white screen' is completed is regarded as the first screen time, and the gap between the loading and the actual experience of the user is large, so that the statistical data is inaccurate.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for measuring the first screen time of a webpage, which are used for improving the accuracy of statistical data, enhancing the practical significance of the first screen time statistics and having lower performance and power consumption cost.
In a first aspect, an embodiment of the present invention provides a method for measuring a first screen time of a web page, including:
monitoring rendering events of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Optionally, after obtaining the current screenshot of the browser, the method further includes:
equally dividing the current screenshot of the page into a preset number of areas in equal proportion;
randomly acquiring a first number of pixel points in each region;
and taking the average value of the pixels corresponding to the first number of pixel points in each region as the region pixel value.
Optionally, if the effective display proportion of the current screenshot is greater than the preset proportion, the current time is taken as the first screen time, including:
if the ratio of the number of the areas with different area pixel values to the preset number is larger than the preset ratio, the current time is taken as the first screen time, and the monitoring of the rendering event of the browser is stopped.
Optionally, after obtaining the current screenshot of the browser, the method further includes:
and if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
In a second aspect, an embodiment of the present invention further provides a device for measuring a first screen time of a web page, including:
the monitoring module is used for monitoring rendering events of the browser;
the acquisition module is used for acquiring a current page screenshot of the browser when the rendering event is monitored;
and the confirmation module is used for taking the current time as the first screen time if the effective display proportion of the current page screenshot is larger than the preset proportion.
Optionally, the method further comprises:
the area dividing module is used for equally dividing the current page screenshot and the like into a preset number of areas after the current page screenshot of the browser is obtained;
randomly acquiring a first number of pixel points in each region;
and taking the average value of the pixels corresponding to the first number of pixel points in each region as the region pixel value.
Optionally, the confirmation module is specifically configured to take the current time as the first screen time and stop monitoring the rendering event of the browser if the ratio of the number of the areas with different area pixel values to the preset number is greater than the preset ratio.
Optionally, the method further comprises:
and the return module is used for returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion after the current page screenshot of the browser is acquired.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method for measuring a web page head time as provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements a method for measuring a first screen time of a web page according to any embodiment of the present invention.
According to the technical scheme, the current screenshot of the browser is obtained by monitoring the rendering event of the browser, and when the rendering event is monitored; if the effective display proportion of the current page screenshot is larger than the preset proportion, the current time is taken as the first screen time, the problem that the gap between the first screen time calculated in the background of 'white screen' and the actual experience of a user is large in the prior art, so that the statistical data is inaccurate is solved, the accuracy of the statistical data is improved, the practical significance of counting the first screen time is enhanced, and the paid performance and power consumption cost are low.
Drawings
FIG. 1a is a flowchart of a method for measuring a first screen time of a web page according to a first embodiment of the present invention;
FIG. 1b is a flowchart of a method for measuring a first screen time of a web page according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for measuring first screen time of a web page in a second embodiment of the invention;
fig. 3 is a schematic structural view of an apparatus according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1a is a flowchart of a method for measuring the first screen time of a web page in accordance with a first embodiment of the present invention, where the method may be performed by a device for measuring the first screen time of a web page, and the device may be implemented by hardware and/or software, and may be generally integrated in a device for providing a first screen time measurement service. As shown in fig. 1a, the method comprises:
and 110, monitoring a rendering event of the browser.
In this embodiment, when the browser starts loading the hypertext markup language (Hyper Text Markup Language, HTML) code, it starts to monitor the browser for rendering events on the web page. The rendering means that the browser displays the HTML code in a browser window according to a rule defined by a cascading style sheet (Cascading Style Sheets, CSS), for example, displays elements such as a picture or a list in a current page, and the HTML code is returned by the server after the browser acquires a website input by a user and sends a page request corresponding to the website input by the user to the server.
And 120, when a rendering event is monitored, acquiring a current page screenshot of the browser.
In this embodiment, in order to accurately determine that the actual display of the current page is valid, that is, the current page does not display a "white screen", or a background page set by other systems, when a rendering event is monitored, a current page screenshot of the browser is obtained, so as to determine whether the actual display of the current page is valid according to the difference between pixel values in the current page screenshot.
Optionally, after obtaining the current screenshot of the browser, the method may further include: equally dividing the current screenshot of the page into a preset number of areas in equal proportion; randomly acquiring a first number of pixel points in each region; and taking the average value of the pixels corresponding to the first number of pixel points in each region as the region pixel value.
For example, the current screenshot of the page can be transversely and vertically halved to obtain 9 areas equally divided in equal proportion, then 50 pixel points are randomly selected from each area, the average value of the pixel values of the 50 pixel points is calculated, and the average value of the pixels is used as the area pixel value of the area to participate in the first screen time determining operation.
And 130, if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Optionally, if the effective display proportion of the current screenshot is greater than the preset proportion, the current time is taken as the first screen time, which may include: if the ratio of the number of the areas with different area pixel values to the preset number is larger than the preset ratio, the current time is taken as the first screen time, and the monitoring of the rendering event of the browser is stopped.
In this embodiment, the condition that the current time may be determined as the first screen time is that the ratio of the number of areas with different area pixel values to the total number of areas is greater than a preset ratio, for example, if the preset ratio is 5/9, then, in the 9 areas, by comparing the area pixel values of the areas, if the area pixel values of at least 6 areas are different, the loading of the first screen is considered to be completed, and the time corresponding to the current screenshot may be determined as the first screen time.
On the basis of the above embodiment, optionally, after obtaining the current screenshot of the browser, the method may further include: and if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
In this embodiment, if the ratio of the number of regions with different region pixel values to the total number of regions is less than or equal to the preset ratio, for example, if the preset ratio is 5/9, then, in the 9 regions, by comparing the region pixel values of the respective regions, if the region pixel values of at most 5 regions are different from each other, it is considered that the first screen is not loaded, the time corresponding to the current screenshot of the page cannot be used as the first screen time, and the operation of returning to step 120 again is required to execute the operation of obtaining the current screenshot of the browser when the rendering event is monitored.
According to the technical scheme, the rendering event of the browser is monitored, and when the rendering event is monitored, the current screenshot of the page of the browser is obtained; if the effective display proportion of the current screenshot of the page is larger than the preset proportion, the current time is taken as the first screen time, the problem that the gap between the first screen time calculated in the background of 'white screen' and the actual experience of a user is large in the prior art, so that the statistical data is inaccurate is solved, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the paid performance and power consumption cost are low.
On the basis of the above embodiments, a further description of an optimized embodiment is provided. As shown in fig. 1b, the following steps may be included:
1) Registering rendering event listening with a browser.
2) When the browser starts loading data, the rendering event of the browser starts to be monitored.
3) Every time an event of changing the browser picture is monitored, a screenshot of the current browser display content is obtained.
4) And transversely and vertically halving the screenshot to obtain 9 equally-proportioned areas.
5) 50 pixels are randomly taken in each area.
6) And respectively solving the color average value of 50 pixel points of each area as the overall color average value of the area.
7) Comparing the color average values of the areas, and when the color average values of at least 6 areas are different from each other, entering the step 8), otherwise returning to the step 3).
8) Recording the current time as the first screen time.
9) Stopping listening to browser rendering events.
In the embodiment, when analyzing a browser picture, the whole screen area is equally divided into 9 areas of 3 ﹡ in equal proportion, 50 pixel points are randomly taken in each area, the color average value of the 50 pixel points is calculated and used as the color average value of the area, and when at least 6 different color average values appear in the color average values of the 9 areas, the current time is recorded as the first screen time.
Through the steps, the first screen time very close to the actual experience of the user can be obtained, and the practical meaning and the reference value of the data are better than those of the traditional first screen time calculation method. In addition, from the aspects of program performance and power consumption, all operations performed in the process of page screenshot analysis in the embodiment can be completed within a constant time, namely, the time complexity of the page screenshot analysis process is O (1), and the page screenshot analysis process is not influenced by the page screenshot size, so that the performance and power consumption cost caused by additional page screenshot and analysis operations is relatively small.
Example two
Fig. 2 is a schematic structural diagram of a device for measuring first screen time of a web page in a third embodiment of the present invention. The apparatus may be implemented in hardware and/or software and may generally be integrated in a device providing the web page first screen time measurement service. As shown in fig. 2, the apparatus includes: listening module 210, acquisition module 220, and acknowledgement module 230.
A listening module 210, configured to listen for a rendering event of the browser;
the obtaining module 220 is configured to obtain a current page screenshot of the browser when the rendering event is monitored;
the confirmation module 230 is configured to take the current time as the first screen time if the effective display proportion of the current page screenshot is greater than the preset proportion.
According to the technical scheme, the rendering event of the browser is monitored, and when the rendering event is monitored, the current screenshot of the page of the browser is obtained; if the effective display proportion of the current screenshot of the page is larger than the preset proportion, the current time is taken as the first screen time, the problem that the gap between the first screen time calculated in the background of 'white screen' and the actual experience of a user is large in the prior art, so that the statistical data is inaccurate is solved, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the paid performance and power consumption cost are low.
Optionally, the method further comprises: the area dividing module is used for equally dividing the current page screenshot and the like into a preset number of areas after the current page screenshot of the browser is obtained; randomly acquiring a first number of pixel points in each region; and taking the average value of the pixels corresponding to the first number of pixel points in each region as the region pixel value.
Optionally, the confirmation module is specifically configured to take the current time as the first screen time and stop monitoring the rendering event of the browser if the ratio of the number of the areas with different area pixel values to the preset number is greater than the preset ratio.
Optionally, the method further comprises: and the return module is used for returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion after the current page screenshot of the browser is acquired.
The device for measuring the first screen time of the webpage can execute the method for measuring the first screen time of the webpage provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method for measuring the first screen time of the webpage.
Example III
Fig. 3 is a schematic structural view of an apparatus according to a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 3, device 12 is in the form of a general purpose computing device. Components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in fig. 3, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with device 12, and/or any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, via network adapter 20. As shown, network adapter 20 communicates with other modules of device 12 over bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the method for measuring the first screen time of a web page provided by the embodiment of the present invention.
Namely: a method for measuring the first screen time of a webpage is realized, which comprises the following steps:
monitoring rendering events of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Example IV
The fourth embodiment of the invention also discloses a computer storage medium, on which a computer program is stored, which when executed by a processor, implements a method for measuring the first screen time of a web page, comprising:
monitoring rendering events of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (4)
1. The method for measuring the first screen time of the webpage is characterized by comprising the following steps of:
monitoring rendering events of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
if the effective display proportion of the current page screenshot is larger than a preset proportion, taking the current time as the first screen time;
after obtaining the current screenshot of the browser, the method further comprises the following steps:
equally dividing the current screenshot of the page into a preset number of areas in equal proportion;
randomly acquiring a first number of pixel points in each region;
respectively taking the average value of the pixels corresponding to the first number of pixel points in each region as a region pixel value;
if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time, wherein the method comprises the following steps:
if the ratio of the number of the areas with different area pixel values to the preset number is larger than the preset ratio, taking the current time as the first screen time, and stopping monitoring the rendering event of the browser;
after obtaining the current screenshot of the browser, the method further comprises the following steps:
and if the effective display proportion of the current page screenshot is smaller than or equal to a preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
2. The utility model provides a measuring device of webpage first screen time which characterized in that includes:
the monitoring module is used for monitoring rendering events of the browser;
the acquisition module is used for acquiring a current page screenshot of the browser when a rendering event is monitored;
the confirmation module is used for taking the current time as the first screen time if the effective display proportion of the current page screenshot is larger than the preset proportion;
the region dividing module is used for equally dividing the current screenshot of the browser into a preset number of regions in equal proportion after the current screenshot of the browser is obtained;
randomly acquiring a first number of pixel points in each region;
respectively taking the average value of the pixels corresponding to the first number of pixel points in each region as a region pixel value;
the confirmation module is specifically configured to take a current time as a first screen time and stop monitoring a rendering event of the browser if a ratio of the number of areas with different area pixel values to the preset number is greater than a preset ratio;
and the return module is used for returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion after acquiring the current page screenshot of the browser.
3. A computer device, the computer device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of measuring web page first screen time as in claim 1.
4. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method for measuring a web page first-screen time as in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025052.3A CN110781063B (en) | 2019-10-25 | 2019-10-25 | Method, device, equipment and storage medium for measuring first screen time of web page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025052.3A CN110781063B (en) | 2019-10-25 | 2019-10-25 | Method, device, equipment and storage medium for measuring first screen time of web page |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110781063A CN110781063A (en) | 2020-02-11 |
CN110781063B true CN110781063B (en) | 2023-12-05 |
Family
ID=69386625
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911025052.3A Active CN110781063B (en) | 2019-10-25 | 2019-10-25 | Method, device, equipment and storage medium for measuring first screen time of web page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110781063B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111538885B (en) * | 2020-04-24 | 2023-10-24 | 腾讯音乐娱乐科技(深圳)有限公司 | Page monitoring method and device, electronic equipment and storage medium |
CN112579416B (en) * | 2020-12-11 | 2023-01-31 | 广州品唯软件有限公司 | Page loading duration statistical method, terminal and readable storage medium |
DE202022101830U1 (en) | 2022-04-05 | 2022-05-18 | Iftikar Ahmed | Wearable medical device for monitoring screen time with Internet of Things sensor |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479151A (en) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | Testing method and device of webpage access speed |
CN103324521A (en) * | 2013-06-20 | 2013-09-25 | 张家港保税区润桐电子技术研发有限公司 | Method for measuring initial screen time of webpage |
CN103777939A (en) * | 2013-03-18 | 2014-05-07 | 北京基调网络***有限公司 | Method for measuring webpage first screen time |
CN107885645A (en) * | 2017-10-31 | 2018-04-06 | 阿里巴巴集团控股有限公司 | Calculate method, apparatus and electronic equipment that the first screen of the page renders duration |
CN108228463A (en) * | 2018-01-10 | 2018-06-29 | 百度在线网络技术(北京)有限公司 | For detecting the method and apparatus of initial screen time |
CN109344044A (en) * | 2018-10-08 | 2019-02-15 | 杭州有赞科技有限公司 | Calculate the method and system of page head screen render time |
WO2019033852A1 (en) * | 2017-08-16 | 2019-02-21 | 北京京东尚科信息技术有限公司 | Thermodynamic diagram generating method, device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6966034B2 (en) * | 2000-06-30 | 2005-11-15 | Microsoft Corporation | Supplemental request header for applications or devices using web browsers |
-
2019
- 2019-10-25 CN CN201911025052.3A patent/CN110781063B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102479151A (en) * | 2010-11-26 | 2012-05-30 | 腾讯科技(深圳)有限公司 | Testing method and device of webpage access speed |
CN103777939A (en) * | 2013-03-18 | 2014-05-07 | 北京基调网络***有限公司 | Method for measuring webpage first screen time |
CN103324521A (en) * | 2013-06-20 | 2013-09-25 | 张家港保税区润桐电子技术研发有限公司 | Method for measuring initial screen time of webpage |
WO2019033852A1 (en) * | 2017-08-16 | 2019-02-21 | 北京京东尚科信息技术有限公司 | Thermodynamic diagram generating method, device and system |
CN107885645A (en) * | 2017-10-31 | 2018-04-06 | 阿里巴巴集团控股有限公司 | Calculate method, apparatus and electronic equipment that the first screen of the page renders duration |
CN108228463A (en) * | 2018-01-10 | 2018-06-29 | 百度在线网络技术(北京)有限公司 | For detecting the method and apparatus of initial screen time |
CN109344044A (en) * | 2018-10-08 | 2019-02-15 | 杭州有赞科技有限公司 | Calculate the method and system of page head screen render time |
Non-Patent Citations (2)
Title |
---|
公共图书馆网站服务前瞻;魏尔啸等;《河南图书馆学刊》;20160315;第36卷(第3期);2-4 * |
基于完全渲染的网页首屏性能测量设计;吴清扬等;《电子制作》;20180815(第16期);42-44 * |
Also Published As
Publication number | Publication date |
---|---|
CN110781063A (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110781063B (en) | Method, device, equipment and storage medium for measuring first screen time of web page | |
CN107506300B (en) | User interface testing method, device, server and storage medium | |
US9740668B1 (en) | Plotting webpage loading speeds and altering webpages and a service based on latency and pixel density | |
CN110647523B (en) | Data quality analysis method and device, storage medium and electronic equipment | |
CN109344044B (en) | Method and system for calculating rendering time of first screen of page | |
CN110781427A (en) | Method, device, equipment and storage medium for calculating first screen time | |
CN113626743A (en) | Method and device for determining target display page, electronic equipment and storage medium | |
CN110597704B (en) | Pressure test method, device, server and medium for application program | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN112612546A (en) | Page loading method and device, electronic equipment and storage medium | |
CN110990842A (en) | Recurrence method and device of small probability event, storage medium and electronic equipment | |
CN111913922B (en) | Binary structured log generation method, device, equipment and storage medium | |
CN109165372B (en) | Webpage loading method, device, equipment and storage medium | |
CN112954056B (en) | Method and device for processing monitoring data, electronic equipment and storage medium | |
CN113780163A (en) | Page loading time detection method and device, electronic equipment and medium | |
CN111913861A (en) | Performance test method, device, equipment and medium of Internet of things system | |
US20230065492A1 (en) | Method for obtaining browser running data, electronic device, and storage medium | |
CN107944564B (en) | Deep learning job processing method, device, equipment and storage medium | |
CN111741046B (en) | Data reporting method, data acquisition method, device, equipment and medium | |
CN114564354A (en) | Database performance monitoring method and device, electronic equipment and storage medium | |
CN113656391A (en) | Data detection method and device, storage medium and electronic equipment | |
CN112800373A (en) | Webpage resource data generation method and device, computer equipment and storage medium | |
CN109348236B (en) | Storage capacity evaluation method and device, server and storage medium | |
CN111047433A (en) | Method and device for analyzing reasons of user number abnormality, server and storage medium | |
CN108563605B (en) | Method and device for adjusting refresh rate of electronic reader and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |