CN111783010A - Webpage blank page monitoring method, device, terminal and storage medium - Google Patents

Webpage blank page monitoring method, device, terminal and storage medium Download PDF

Info

Publication number
CN111783010A
CN111783010A CN202010059639.2A CN202010059639A CN111783010A CN 111783010 A CN111783010 A CN 111783010A CN 202010059639 A CN202010059639 A CN 202010059639A CN 111783010 A CN111783010 A CN 111783010A
Authority
CN
China
Prior art keywords
webpage
web page
loading
preset event
blank
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
CN202010059639.2A
Other languages
Chinese (zh)
Other versions
CN111783010B (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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Infinite Light Field Technology 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 Beijing Infinite Light Field Technology Co Ltd filed Critical Beijing Infinite Light Field Technology Co Ltd
Priority to CN202010059639.2A priority Critical patent/CN111783010B/en
Publication of CN111783010A publication Critical patent/CN111783010A/en
Application granted granted Critical
Publication of CN111783010B publication Critical patent/CN111783010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, a terminal and a storage medium for monitoring a blank page of a webpage. The webpage blank page monitoring method comprises the following steps: loading a webpage; determining whether the loading of the webpage triggers a preset event or not; determining a time threshold of a display state of the webpage according to the preset event; and determining whether the number of the labels of the webpage is greater than a preset value or not after a time threshold value passes after a preset event, wherein when the number of the labels is greater than the preset value, the webpage is not a blank page, and when the number of the labels is less than or equal to the preset value, the webpage is a blank page. The webpage blank page monitoring method can easily determine whether the webpage is a blank page or not, and provides relevant basis for subsequent webpage processing.

Description

Webpage blank page monitoring method, device, terminal and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and more particularly, to a method, an apparatus, a terminal and a storage medium for monitoring a blank page of a web page.
Background
At present, the application amount of H5 webpages such as video APPs, mini games and the like is greatly increased due to the rapid development of network technology, and the situation of blank pages (white screens) may occur due to the problems of user proliferation, syntax errors, mismatching of server response information and the like. The existing white screen monitoring method has large workload, so that the feedback of a monitoring result is slow, and the user experience is influenced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a terminal and a storage medium for monitoring a blank page of a web page, which can easily determine the blank page and provide a relevant basis for subsequent web page processing.
The embodiment of the disclosure provides a method for monitoring a blank page of a webpage, which comprises the following steps: loading a webpage; determining whether loading of the webpage triggers a preset event; determining a time threshold of the display state of the webpage according to the preset event; and determining whether the number of the labels of the webpage is greater than a preset value or not after the preset event passes through the time threshold, wherein when the number of the labels is greater than the preset value, the webpage is not a blank page, and when the number of the labels is less than or equal to the preset value, the webpage is a blank page.
The embodiment of the present disclosure further provides a device for monitoring a blank page of a web page, where the device for monitoring a blank page of a web page includes: the webpage loading module is configured to load a webpage; the preset event determining module is configured to determine whether loading of the webpage triggers a preset event; the time threshold value determining module is configured to determine a time threshold value of the display state of the webpage according to the preset event; a blank page determining module configured to determine whether the number of tags of the web page is greater than a preset value after the time threshold passes after the preset event, wherein when the number of tags is greater than the preset value, the web page is not a blank page, and when the number of tags is less than or equal to the preset value, the web page is a blank page.
According to another embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; the processor is used for calling the program codes stored in the memory to execute the webpage blank page monitoring method.
According to still another embodiment of the present disclosure, a computer storage medium is provided, which stores a program code for executing the above-mentioned method for monitoring a blank page of a web page.
The webpage blank page monitoring method can easily determine whether the webpage is a blank page or not, and provides relevant basis for subsequent webpage processing, so that user experience is improved.
Drawings
In order to more clearly illustrate the solution in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 shows a flowchart of a method for monitoring a blank page of a web page according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of a method for monitoring a blank page of a web page according to another embodiment of the disclosure.
Fig. 3 shows a schematic diagram of a web page blank page monitoring apparatus according to an embodiment of the present disclosure.
FIG. 4 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
At present, the application amount of video APP, mini-game web pages and the like is greatly increased due to the high-speed development of network technology, and the situation of page white screen may occur due to the problems of user proliferation, syntax error, mismatching of server-side response information and the like. The existing white screen monitoring method has large workload, so that the feedback of a monitoring result is slow, and the user experience is influenced.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a terminal and a storage medium for monitoring a blank page of a web page, which can quickly discover a white screen interface and improve user experience.
It should be understood that the present disclosure may provide services in the form of application programs (apps), and the server providing services to the corresponding applications may be a server of the terminal and/or a cloud server. The method of the present disclosure is applicable to various terminals. It should be understood that the terminal in the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rearview mirror, etc., and fixed terminal devices such as a digital TV, a desktop computer, etc. A cellular phone is illustrated as an example in this disclosure, but it should be understood that this is exemplary only and not limiting of the disclosure.
As shown in fig. 1, an embodiment of the present disclosure provides a method for monitoring a blank page of a web page, including step S101 of loading the web page. When a web page is displayed in a browser window, first browser attribute information is obtained, that is, the type of the browser is determined to be an APP-side browser or a PC-side browser, and to be an IE-core browser or a non-IE-core browser, and then size information of the browser window is also obtained. And displaying the webpage on a browser window according to the attribute and size information of the browser.
As shown in fig. 1, the method of the present disclosure includes a step S102 of determining whether loading of a web page triggers a preset event. The preset event refers to an event that can be triggered when the webpage is normally displayed, and includes, but is not limited to, a window loading event, i.e., a loading (load) event, which is triggered when the webpage is loaded. Description parameters can be set in the listener, and corresponding tracking event identifications are specified in the description parameters, so that the server determines which event the data comes from when analyzing the data. The data acquisition parameters set in the listener of the loading event include a loading time difference parameter, and the corresponding log field is a loading time field. According to the setting, when a loading event is triggered, calculating a time difference value T between the loading of the page from the beginning to the loading of the page, wherein the time difference value T is stored in a loading time field in the log, and the time difference value T can be acquired from the field.
If the time difference value T is greater than 0, the monitoring result can be judged that a preset event is triggered, and the monitoring result can be sent to a server; otherwise, the monitoring result is that the preset event is not triggered, the monitoring result is sent to the server, and a loading failure dialog box can pop up in a browser window to prompt the user.
As shown in fig. 1, the method of the present disclosure includes step S103 of determining a time threshold of a display state of a web page according to a preset event. And setting a time threshold for acquiring the display state of the webpage according to the acquired historical data of the webpage display condition after the preset event is triggered. For example, in some embodiments, if the loading of the web page address is performed with a bandwidth S and the time difference T is 2S, the time threshold may be set to be 2.5S. In other embodiments, the time threshold may be set to 2.8s in the same case. When the network condition is bad or there is abnormal fluctuation of signal, the bandwidth is less than S, the average time consumed for displaying in the browser window is prolonged due to the narrow bandwidth, so the setting value of the time threshold is also required to be prolonged accordingly. But the time threshold should be less than 10s, and if the time threshold is too large, the feedback time is longer, so that the waiting time of the user is prolonged, and the use experience is influenced. In view of the above, the method of the present disclosure sets the time threshold to be greater than the time difference T0.5 s or more and less than 10 s. It should be appreciated that the above manner of estimating the time threshold based on bandwidth is merely exemplary, and any other suitable manner of estimation may be employed.
As shown in fig. 1, the method of the present disclosure includes step S104, determining whether the number of tags of the web page is greater than a preset value after a time threshold value elapses after a preset event. In some embodiments, when the number of tags is greater than a preset value, the webpage is not a blank page, and when the number of tags is less than or equal to the preset value, the webpage is a blank page. In some embodiments, the preset value is 2. In some embodiments, the tag includes a separation mark, i.e., a div tag. In some embodiments, the time threshold may be set to 0.5s to 10 s. In some embodiments, the web page is a blank page, and if the obtained web page tags are usually two 2 tags, namely "html" and "/html" corresponding to the html, and there are no tags such as "head" and "body", or a situation that the tags are 0 may occur, and the number of the tags is 2 or 0, it indicates that no text, picture, character, and the like appear in the web page at this time, and it may be determined as a blank page.
The method and the device can easily determine whether the webpage is a blank page or not, and further provide relevant basis for subsequent webpage processing.
In some embodiments, determining whether loading of the web page triggers a preset event comprises: the method comprises the steps of obtaining preset event data triggered when a webpage is displayed in a browser window, wherein the preset event data comprises a time difference value, and the time difference value is the time difference value between the page loading from the beginning to the loading end. In some embodiments, when the time difference is greater than zero, it is determined that a preset event is triggered. The time difference is greater than zero, indicating that the webpage is loaded. In some embodiments, when the difference in time is zero, the web page is not loaded successfully at this time, it is determined that the preset event is not triggered, and a load failure dialog box may pop up in the browser window.
Another embodiment of the present disclosure is described below in conjunction with fig. 2. As shown in fig. 2, another embodiment of the present disclosure provides a method for monitoring a blank page of a web page, which includes step S201, receiving a request for accessing the web page sent by a user, and acquiring an address of a server corresponding to the request for accessing the web page according to the request for accessing the web page. The page includes characters, pictures, and animations. Specifically, when a user sends a request for accessing a web page, possible request modes are as follows: the method includes two ways of inputting web address and clicking hyperlink, wherein the way of inputting web address by user includes inputting content in the form of "www.XXX.com" in address bar, but is not limited to this form. After the input is completed, the website input by the user needs to be converted into an IP address, and then a server corresponding to the website input by the user is obtained according to the IP address. The method for clicking the hyperlink by the user comprises the steps of triggering built-in hyperlinks such as APP, animation, pictures or characters and the like in a clicking mode, a sliding mode and the like, then obtaining an IP address corresponding to the hyperlink, and obtaining address information of the server according to the IP address.
The method of another embodiment of the present disclosure further includes step S202, receiving a web page source code sent by the server according to the address of the server, generating a web page according to the web page source code, and displaying the web page on a browser window. Specifically, after the address of the server to be accessed by the user is determined, the web page sent by the user can be received from the server according to the IP address or the DNS address. After receiving the web page, the integrity of the web page needs to be checked, and if the web page sent by the server is not complete, the server needs to resend the web page. When a web page is displayed in a browser window, first browser attribute information is obtained, that is, the type of the browser is determined to be an APP-side browser or a PC-side browser, and to be an IE-core browser or a non-IE-core browser, and then size information of the browser window is also obtained. And displaying the webpage on a browser window according to the attribute and size information of the browser.
The method of another embodiment of the present disclosure includes step S203, monitoring whether a preset event is triggered after the web page loading is completed; specifically, the preset event refers to an event that is triggered when the web page is normally displayed, and includes but is not limited to a form loading event, i.e., a load event, and the load event is triggered when the web page is loaded.
It should be appreciated that description parameters may be set in the listener in which the corresponding trace event identification is specified, so that the server determines from which event the data came when analyzing the data. The data acquisition parameters set in the listener of the load event comprise a load time difference parameter, and the corresponding log field is a load time field. According to the setting, when a load event is triggered, calculating a time difference value T between the loading and the loading of the page, wherein the time difference value T is stored in a load time field in the log, and the time difference value T can be acquired from the field.
If the time difference T is larger than 0, the monitoring result can be judged that a preset event is triggered, and the monitoring result is sent to the server; otherwise, the monitoring result is that the preset event is not triggered, the monitoring result is sent to the server, and meanwhile, a loading failure dialog box pops up in the browser window to prompt the user.
The method of another embodiment of the present disclosure further includes step S204, setting a time threshold for acquiring the display state of the web page according to a preset event. And setting a time threshold for acquiring the display state of the webpage according to the acquired historical data of the webpage display condition after the preset event is triggered. For example, in some embodiments, if the loading of the web page address is performed with a bandwidth S and the time difference T is 2S, the time threshold may be set to be 2.5S. In other embodiments, the time threshold may be set to 2.8s in the same case. When the network condition is bad or there is abnormal fluctuation of signal, the bandwidth is less than S, the average time consumed for displaying in the browser window is prolonged due to the narrow bandwidth, so the setting value of the time threshold is also required to be prolonged accordingly. But the time threshold should be less than 10s, and if the time threshold is too large, the feedback time is longer, so that the waiting time of the user is prolonged, and the use experience is influenced. In view of the above, the method of the present disclosure sets the time threshold to be greater than the time difference T0.5 s or more and less than 10 s. It should be appreciated that the above manner of estimating the time threshold based on bandwidth is merely exemplary, and any other suitable manner of estimation may be employed.
The method of another embodiment of the present disclosure further includes step S205, when a time node corresponding to the time threshold comes, acquiring the number of current webpage tags, which is denoted as C; presetting a label number W, wherein the set value is 2; and comparing the size relation between C and W, if C is less than or equal to W, the label check is failed, and if C is greater than W, the label check is passed. The tag includes a partition mark, i.e., a div tag, as described in step S104. In some embodiments, the time threshold is set to 10s, and when a time node corresponding to the time threshold arrives, that is, 10s from the beginning of loading a web page, the current number of web page tags is obtained. In some embodiments, the web page is a blank page, and if the obtained web page tags are usually two 2 tags, namely "html" and "/html" corresponding to the html, and there are no tags such as "head" and "body", or a situation that the tags are 0 may occur, and the number of the tags is 2 or 0, it indicates that no text, picture, character, etc. appear in the web page at this time. Therefore, the method of the present disclosure sets the preset tag number W to be 2; recording the number of the obtained current webpage tags as C, comparing the size relation between C and W, and if C is less than or equal to W, the tag check is failed; if C > W, the tag check passes.
As shown in fig. 3, an embodiment of the present disclosure further provides a device 300 for monitoring a blank page of a web page, which includes a web page loading module 301, a preset event determining module 302, a time threshold determining module 303, and a blank page determining module 304. The web page loading module 301 is configured to load a web page. The preset event determination module 302 is configured to determine whether loading of the web page triggers a preset event. The time threshold determination module 303 is configured to determine a time threshold of the display state of the web page according to the preset event. The blank page determining module 304 is configured to determine whether the number of tags of the web page is greater than a preset value after the preset event, where when the number of tags is greater than the preset value, the web page is not a blank page, and when the number of tags is less than or equal to the preset value, the web page is a blank page. The description of the apparatus may find similar descriptions in corresponding methods and will not be repeated here.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; the processor is used for calling the program codes stored in the memory to execute the webpage blank page monitoring method.
In addition, the present disclosure also provides a computer storage medium, where the computer storage medium stores a program code, and the program code is used to execute the above-mentioned webpage blank page monitoring method.
The webpage blank page monitoring method can easily determine whether the webpage is a blank page or not, and provides relevant basis for subsequent webpage processing.
Referring now to FIG. 4, a block diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 406 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 409, or from the storage means 406, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: 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 the present disclosure, 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. In contrast, in the present disclosure, a computer readable signal medium may comprise 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 many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
According to one or more embodiments of the present disclosure, there is provided a method for monitoring a blank page of a web page, including: loading a webpage; determining whether loading of the webpage triggers a preset event; determining a time threshold of the display state of the webpage according to the preset event; and determining whether the number of the labels of the webpage is greater than a preset value or not after the preset event passes through the time threshold, wherein when the number of the labels is greater than the preset value, the webpage is not a blank page, and when the number of the labels is less than or equal to the preset value, the webpage is a blank page.
According to one or more embodiments of the present disclosure, the preset value is 2.
According to one or more embodiments of the present disclosure, the preset event includes a window loading event.
According to one or more embodiments of the present disclosure, determining whether the loading of the web page triggers a preset event includes: acquiring preset event data triggered when the webpage is displayed in a browser window, wherein the preset event data comprises a time difference value, and the time difference value is the time difference value between the beginning of loading and the end of loading of the webpage; when the time difference is greater than zero, it is determined that the preset event is triggered.
According to one or more embodiments of the present disclosure, determining whether the loading of the web page triggers a preset event further includes: when the time difference value is zero, determining that the preset event is not triggered, and popping up a loading failure dialog box in the browser window.
According to one or more embodiments of the present disclosure, the time threshold is between 0.5s and 10 s.
According to one or more embodiments of the present disclosure, the number of tags is a number of tags of a div tag.
According to one or more embodiments of the present disclosure, there is provided a web page blank page monitoring apparatus, including: the webpage loading module is configured to load a webpage; the preset event determining module is configured to determine whether loading of the webpage triggers a preset event; the time threshold value determining module is configured to determine a time threshold value of the display state of the webpage according to the preset event; a blank page determining module configured to determine whether the number of tags of the web page is greater than a preset value after the time threshold passes after the preset event, wherein when the number of tags is greater than the preset value, the web page is not a blank page, and when the number of tags is less than or equal to the preset value, the web page is a blank page.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; the processor is used for calling the program codes stored in the memory to execute the webpage blank page monitoring method.
According to one or more embodiments of the present disclosure, a computer storage medium is provided, which stores program codes for performing the above-mentioned method for monitoring blank pages of a web page.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for monitoring a blank page of a webpage is characterized by comprising the following steps:
loading a webpage;
determining whether loading of the webpage triggers a preset event;
determining a time threshold of the display state of the webpage according to the preset event;
and determining whether the number of the labels of the webpage is greater than a preset value or not after the preset event passes through the time threshold, wherein when the number of the labels is greater than the preset value, the webpage is not a blank page, and when the number of the labels is less than or equal to the preset value, the webpage is a blank page.
2. The method for monitoring the blank pages of the web pages according to claim 1, wherein the preset value is 2.
3. The method for monitoring the blank pages of the web pages according to claim 1, wherein the preset event comprises a window loading event.
4. The method for monitoring the blank pages of the web page according to claim 1, wherein determining whether the loading of the web page triggers a preset event comprises:
acquiring preset event data triggered when the webpage is displayed in a browser window, wherein the preset event data comprises a time difference value, and the time difference value is the time difference value between the beginning of loading and the end of loading of the webpage;
when the time difference is greater than zero, it is determined that the preset event is triggered.
5. The method for monitoring the blank pages of the web page according to claim 4, wherein determining whether the loading of the web page triggers a preset event further comprises:
when the time difference value is zero, determining that the preset event is not triggered, and popping up a loading failure dialog box in the browser window.
6. The method for monitoring blank pages of web pages according to claim 4, wherein the time threshold is between 0.5s and 10 s.
7. The method for monitoring the blank pages of the web page as claimed in claim 1, wherein the number of the tags is the number of the tags of the div tags.
8. A device for monitoring blank pages of a web page, comprising:
the webpage loading module is configured to load a webpage;
the preset event determining module is configured to determine whether loading of the webpage triggers a preset event;
the time threshold value determining module is configured to determine a time threshold value of the display state of the webpage according to the preset event;
a blank page determining module configured to determine whether the number of tags of the web page is greater than a preset value after the time threshold passes after the preset event, wherein when the number of tags is greater than the preset value, the web page is not a blank page, and when the number of tags is less than or equal to the preset value, the web page is a blank page.
9. A terminal, characterized in that the terminal comprises:
at least one memory and at least one processor;
wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the webpage blank page monitoring method of any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium stores program code for executing the web page blank page monitoring method of any one of claims 1 to 7.
CN202010059639.2A 2020-01-19 2020-01-19 Webpage blank page monitoring method, device, terminal and storage medium Active CN111783010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010059639.2A CN111783010B (en) 2020-01-19 2020-01-19 Webpage blank page monitoring method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010059639.2A CN111783010B (en) 2020-01-19 2020-01-19 Webpage blank page monitoring method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111783010A true CN111783010A (en) 2020-10-16
CN111783010B CN111783010B (en) 2023-09-19

Family

ID=72753036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010059639.2A Active CN111783010B (en) 2020-01-19 2020-01-19 Webpage blank page monitoring method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111783010B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835764A (en) * 2021-02-01 2021-05-25 长沙市到家悠享网络科技有限公司 Front-end monitoring method, device, equipment and medium
CN114610580A (en) * 2022-03-17 2022-06-10 北京火山引擎科技有限公司 Page white screen monitoring method, device, equipment and medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073502A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Method for rendering page frame by WEB primary layout and device thereof
CN103164213A (en) * 2011-12-19 2013-06-19 中国移动通信集团四川有限公司 Method, device and system of testing compatibility of Web browser
CN103324735A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and device for loading abnormal page in browser and client
CN103412812A (en) * 2013-08-23 2013-11-27 北京奇虎科技有限公司 Method and device for monitoring running status of browser
CN103942246A (en) * 2014-02-22 2014-07-23 浙江大学 Browser label display method based on web page URL analysis and classification
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment
CN104346172A (en) * 2014-10-31 2015-02-11 亚信科技(南京)有限公司 Irregular DIV dynamic layout method
CN104917651A (en) * 2015-06-09 2015-09-16 北京齐尔布莱特科技有限公司 Method and device for monitoring network anomalies
US9479519B1 (en) * 2014-12-18 2016-10-25 Amazon Technologies, Inc. Web content fingerprint analysis to detect web page issues
CN106095896A (en) * 2016-06-07 2016-11-09 无锡天脉聚源传媒科技有限公司 A kind of method and device of page jump
CN107679205A (en) * 2017-10-13 2018-02-09 青岛海信移动通信技术股份有限公司 Multimedia data playing method, device, computer equipment and storage medium
CN108536658A (en) * 2018-03-06 2018-09-14 杭州优工品科技有限公司 For customized label data generation method and device
CN108572900A (en) * 2017-03-09 2018-09-25 北京京东尚科信息技术有限公司 Method, system, electronic equipment and the storage medium of a kind of blank hole position monitoring
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium
CN110109804A (en) * 2019-05-15 2019-08-09 北京字节跳动网络技术有限公司 Show information landing page abnormality monitoring method, device, readable medium and server
CN110413476A (en) * 2019-06-20 2019-11-05 平安普惠企业管理有限公司 Webpage collapses monitor method, device, computer equipment and storage medium
CN110457631A (en) * 2019-07-30 2019-11-15 维沃移动通信有限公司 It jumps exception information and determines method and device
CN110705596A (en) * 2019-09-04 2020-01-17 北京三快在线科技有限公司 White screen detection method and device, electronic equipment and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073502A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Method for rendering page frame by WEB primary layout and device thereof
CN103164213A (en) * 2011-12-19 2013-06-19 中国移动通信集团四川有限公司 Method, device and system of testing compatibility of Web browser
CN103324735A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and device for loading abnormal page in browser and client
CN103412812A (en) * 2013-08-23 2013-11-27 北京奇虎科技有限公司 Method and device for monitoring running status of browser
CN103942246A (en) * 2014-02-22 2014-07-23 浙江大学 Browser label display method based on web page URL analysis and classification
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment
CN104346172A (en) * 2014-10-31 2015-02-11 亚信科技(南京)有限公司 Irregular DIV dynamic layout method
US9479519B1 (en) * 2014-12-18 2016-10-25 Amazon Technologies, Inc. Web content fingerprint analysis to detect web page issues
CN104917651A (en) * 2015-06-09 2015-09-16 北京齐尔布莱特科技有限公司 Method and device for monitoring network anomalies
CN106095896A (en) * 2016-06-07 2016-11-09 无锡天脉聚源传媒科技有限公司 A kind of method and device of page jump
CN108572900A (en) * 2017-03-09 2018-09-25 北京京东尚科信息技术有限公司 Method, system, electronic equipment and the storage medium of a kind of blank hole position monitoring
CN107679205A (en) * 2017-10-13 2018-02-09 青岛海信移动通信技术股份有限公司 Multimedia data playing method, device, computer equipment and storage medium
CN108536658A (en) * 2018-03-06 2018-09-14 杭州优工品科技有限公司 For customized label data generation method and device
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium
CN110109804A (en) * 2019-05-15 2019-08-09 北京字节跳动网络技术有限公司 Show information landing page abnormality monitoring method, device, readable medium and server
CN110413476A (en) * 2019-06-20 2019-11-05 平安普惠企业管理有限公司 Webpage collapses monitor method, device, computer equipment and storage medium
CN110457631A (en) * 2019-07-30 2019-11-15 维沃移动通信有限公司 It jumps exception information and determines method and device
CN110705596A (en) * 2019-09-04 2020-01-17 北京三快在线科技有限公司 White screen detection method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘甲: "基于PhantomJSP的Web前端页面监测平台的设计与实现", 《中国优秀硕士学位论文全文数据 信息科技辑》, no. 03, pages 139 - 89 *
魏文晗 等: "基于局部变化性的网页篡改识别模型及方法", 《计算机应用》, vol. 33, no. 02, pages 430 - 433 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835764A (en) * 2021-02-01 2021-05-25 长沙市到家悠享网络科技有限公司 Front-end monitoring method, device, equipment and medium
CN114610580A (en) * 2022-03-17 2022-06-10 北京火山引擎科技有限公司 Page white screen monitoring method, device, equipment and medium

Also Published As

Publication number Publication date
CN111783010B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN112269959B (en) Control method and device for display content, readable medium and electronic equipment
US11886798B2 (en) Method and apparatus for obtaining loading time length of image in webpage, and electronic device
CN111459364B (en) Icon updating method and device and electronic equipment
CN111310482A (en) Real-time translation method, device, terminal and storage medium
CN110673986A (en) Memory operation abnormity capturing method, device, terminal and storage medium
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN109902726B (en) Resume information processing method and device
CN111783005B (en) Method, device and system for displaying web page, computer system and medium
CN110069186B (en) Method and equipment for displaying operation interface of application
CN110619101B (en) Method and apparatus for processing information
CN112486783A (en) Progress bar display method and device
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
CN110874446A (en) Page display method and system, computer system and computer readable medium
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN114626332A (en) Content display method and device and electronic equipment
CN109684015B (en) Interface data loading method and device, electronic equipment and storage medium
CN111274513A (en) Window display method, device, terminal and storage medium
CN111797009A (en) Method and device for detecting code compatibility and electronic equipment
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN111324835A (en) Method and device for rendering user interface component, electronic equipment and storage medium
CN111767486A (en) Method, device, electronic equipment and computer readable medium for displaying page
CN112948108B (en) Request processing method and device and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20230426

Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Applicant after: Beijing youzhuju Network Technology Co.,Ltd.

Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081

Applicant before: Beijing infinite light field technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant