[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111783010B - 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
CN111783010B
CN111783010B CN202010059639.2A CN202010059639A CN111783010B CN 111783010 B CN111783010 B CN 111783010B CN 202010059639 A CN202010059639 A CN 202010059639A CN 111783010 B CN111783010 B CN 111783010B
Authority
CN
China
Prior art keywords
webpage
web page
labels
loading
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.)
Active
Application number
CN202010059639.2A
Other languages
Chinese (zh)
Other versions
CN111783010A (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 Youzhuju Network 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 Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network 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

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 web page blank page monitoring method, a web page blank page monitoring device, a web page blank page monitoring terminal and a storage medium. The method for monitoring the blank page of the webpage 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 after the preset event, determining whether the number of the labels of the webpage is larger than a preset value or not, wherein the webpage is not a blank page when the number of the labels is larger than the preset value, and the webpage is a blank page when the number of the labels is smaller than or equal to the preset value. 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 relates to a method, a device, a terminal and a storage medium for monitoring blank pages of a web page.
Background
At present, the network technology is developed at a high speed, the application amount of H5 web pages such as video APP, small games and the like is greatly improved, and blank pages (white screens) can be possibly caused due to the problems of rapid increase of users, grammar errors, unmatched server response information and the like. The workload of the existing white screen monitoring method is large, so that the feedback of the monitoring result is slow, and the user experience is affected.
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 web page blank page, which can easily determine the blank page, and provide relevant references for subsequent web page processing.
The embodiment of the disclosure provides a web page blank page monitoring method, 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 after the preset event, determining whether the number of labels of the webpage is larger than a preset value or not through the time threshold, wherein the webpage is not a blank page when the number of labels is larger than the preset value, and the webpage is a blank page when the number of labels is smaller than or equal to the preset value.
The embodiment of the disclosure also provides a web page blank page monitoring device, which comprises: the webpage loading module is configured to load webpages; the preset event determining module is configured to determine whether loading of the webpage triggers a preset event or not; the time threshold determining module is configured to determine a time threshold of the display state of the webpage according to the preset event; the blank page determining module is configured to determine whether the number of labels of the web page is larger than a preset value after the time threshold value passes through the preset event, wherein the web page is not a blank page when the number of labels is larger than the preset value, and the web page is a blank page when the number of labels is smaller than or equal to the preset value.
According to another embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; 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.
According to still another embodiment of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described web page 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, so that user experience is improved.
Drawings
In order to more clearly illustrate the concepts of the embodiments of the present disclosure, the drawings that are needed in the description of the embodiments will be briefly described below, it being apparent that the drawings in the following description are only some embodiments of the present disclosure and that other drawings may be obtained from these drawings by one of ordinary skill in the art without inventive effort.
FIG. 1 illustrates a flow chart of a web page blank monitoring method of an embodiment of the present disclosure.
FIG. 2 illustrates a flow chart of a web page blank page monitoring method of another embodiment of the present disclosure.
Fig. 3 shows a schematic diagram of a web page blank monitoring apparatus of 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 have been shown in the accompanying 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 are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present 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. Furthermore, 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 "including" and variations thereof as used herein are intended to be 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. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
At present, the network technology is developed at a high speed, the application amount of video APP, small game web pages and the like is greatly increased, and the situation of a page blank screen can be caused due to the problems of rapid increase of users, grammar errors, mismatching of server response information and the like. The workload of the existing white screen monitoring method is large, so that the feedback of the monitoring result is slow, and the user experience is affected.
In order to solve the 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 discover a white screen interface faster, and promote user experience.
It should be understood that the present disclosure may be to provide services in the form of application programs (apps), and that the server providing services to the corresponding applications may be a server of the terminal and/or a cloud server. The method disclosed by the invention is applicable to various terminals. It should be understood that terminals in the present disclosure may include, but are not limited to, mobile terminal devices such as mobile phones, smart phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, in-vehicle terminal devices, in-vehicle display terminals, in-vehicle electronic rear view mirrors, and the like, and fixed terminal devices such as digital TVs, desktop computers, and the like. The cell phone is illustrated as an example in the present disclosure, but it should be understood that this is merely exemplary and is not intended to limit the present disclosure.
As shown in fig. 1, an embodiment of the present disclosure provides a web page blank page monitoring method, which includes step S101, loading a web page. When a web page is displayed on a browser window, firstly, browser attribute information is required to be obtained, namely, the type of the browser is determined, whether the browser is an APP end browser or a PC end browser, whether the browser is an IE core browser or a non-IE core browser is determined, and then, the size information of the browser window is also required to be obtained. And displaying the webpage on a browser window according to the attribute and the size information of the browser.
As shown in fig. 1, the method of the present disclosure includes 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, namely a loading (load) event, and the loading event is triggered when the webpage is loaded. A description parameter may be set in the monitor, in which a corresponding trace event identification is specified, so that the server determines from which event the data comes when analyzing the data. The data acquisition parameters set in the monitor of the loading event comprise loading time difference value parameters, and the corresponding log field is a loading time field. According to the setting, when a loading event is triggered, a time difference T between the beginning of loading and the end of loading of the page is calculated, the time difference T is stored in a loading time field in a log, and the time difference T can be acquired from the field.
If the time difference value T is greater than 0, the monitoring result can be judged that the preset event is triggered, and the monitoring result can be 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 can be popped up in the browser window to prompt the user.
As shown in fig. 1, the method of the present disclosure includes step S103, 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 triggered by the preset event. For example, in some embodiments, in the case where the loading of the web page address is the bandwidth S, the time difference T is 2S, and then 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 poor, or when there is abnormal fluctuation of the signal, the bandwidth is smaller than S, the average time consumed for displaying the window of the browser is prolonged due to the narrowing of the bandwidth, so the set value of the time threshold also needs to be prolonged correspondingly. However, the time threshold should be less than 10s, and if the time threshold is too large, the feedback time is long, so that the waiting time of the user is prolonged, and the use experience is affected. 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 10s. It should be appreciated that the above manner of estimating the time threshold based on bandwidth is merely exemplary, and that any other suitable manner of estimation may be employed.
As shown in fig. 1, the method of the present disclosure includes step S104 of determining whether the number of tags of the web page is greater than a preset value after a time threshold has elapsed after a preset event. In some embodiments, when the number of labels is greater than a preset value, the web page is not blank, and when the number of labels is less than or equal to the preset value, the web page is blank. In some embodiments, the preset value is 2. In some embodiments, the tag comprises a compartmentalization tag, i.e., a div tag. In some embodiments, the time threshold may be set to 0.5s to 10s. In some embodiments, the web page is a blank page, for example, the obtained web page tag is usually "html" and two 2 tags corresponding to the html, no tag such as "head", "body" appears, and the tag may also appear as a tag of 0, and the number of tags is 2 or 0, which indicates that no text, picture, character, etc. appears in the web page at this time, and the web page can be determined to be a blank page.
The method and the device can easily determine whether the webpage is a blank webpage or not, and further provide relevant basis for subsequent webpage processing.
In some embodiments, determining whether the loading of the web page triggers a preset event includes: acquiring preset event data triggered when a web page 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 ending of loading of the web page. In some embodiments, the triggering of the preset event is determined when the time difference is greater than zero. The time difference being greater than zero indicates that the web page is loaded. In some embodiments, when the time difference is zero, the web page is not loaded successfully, it is determined that the preset event is not triggered, and a loading failure dialog box may be popped 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 web page blank page monitoring method, which includes step S201, receiving a web page access request sent by a user, and obtaining an address of a server corresponding to the web page access request according to the web page access request. The page includes characters, pictures and animations. Specifically, when a user issues a request for accessing a web page, possible request modes are: the method of inputting the website and clicking the hyperlink includes, but is not limited to, inputting content in the form of www.XXX.com in the address bar. 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 the built-in hyperlink such as APP, animation, pictures or characters by clicking, sliding and the like, then obtaining the IP address corresponding to the hyperlink, and obtaining the address information of the server according to the IP address.
The method of another embodiment of the present disclosure further includes step S202, receiving the web page source code sent by the server according to the address of the server, and displaying the web page in the browser window after generating the web page according to the web page source code. Specifically, after determining the server address to be accessed by the user, the web page sent by the user can be received from the server according to the IP address or 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 incomplete, the server needs to resend the web page. When a web page is displayed on a browser window, firstly, browser attribute information is required to be obtained, namely, the type of the browser is determined, whether the browser is an APP end browser or a PC end browser, whether the browser is an IE core browser or a non-IE core browser is determined, and then, the size information of the browser window is also required to be obtained. And displaying the webpage on a browser window according to the attribute and the 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 webpage loading is completed; specifically, the preset event refers to an event that is triggered when the web page is normally displayed, including but not limited to a window loading event, that is, a load event, which is triggered when the web page is loaded.
It should be appreciated that a description parameter may be set in the monitor, in which a corresponding trace event identification is specified, so that the server determines from which event the data comes when analyzing the data. The data acquisition parameters set in the monitor of the load event include 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, a time difference T between the loading of the page and the loading end is calculated, the time difference T is stored in a load time field in a log, and the time difference T can be acquired from the field.
If the time difference value T is greater than 0, the monitoring result can be judged that the 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 is popped up in a browser window to prompt the user.
The method of another embodiment of the present disclosure further includes step S204, setting a time threshold for obtaining 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 triggered by the preset event. For example, in some embodiments, in the case where the loading of the web page address is the bandwidth S, the time difference T is 2S, and then 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 poor, or when there is abnormal fluctuation of the signal, the bandwidth is smaller than S, the average time consumed for displaying the window of the browser is prolonged due to the narrowing of the bandwidth, so the set value of the time threshold also needs to be prolonged correspondingly. However, the time threshold should be less than 10s, and if the time threshold is too large, the feedback time is long, so that the waiting time of the user is prolonged, and the use experience is affected. 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 10s. It should be appreciated that the above manner of estimating the time threshold based on bandwidth is merely exemplary, and that 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 arrives, obtaining the number of current web page tags, denoted as C; presetting the number W of labels, and setting the value to be 2; comparing the size relation of C and W, if C is less than or equal to W, the label checking is not passed, and if C is more than W, the label checking is passed. The tag comprises a compartmentalization marker, i.e. a div tag, according to step S104. In some embodiments, the time threshold is set to 10s, and when the time node corresponding to the time threshold arrives, that is, after 10s from the loading of the web page, the number of the current web page tags is obtained. In some embodiments, the web page is a blank page, for example, the obtained web page tag is usually "html" and two 2 tags corresponding to the html, no tags such as "head", "body" and the like appear, and the tag may also appear as 0, and the number of the tags is 2 or 0, which indicates that no text, picture, character and the like appear in the web page at this time. Therefore, the method of the present disclosure sets the preset tag number W to 2; the number of the obtained current webpage labels is marked as C, the size relation between C and W is compared, and if C is less than or equal to W, the label inspection is not passed; if C > W, then the tag checks pass.
As shown in fig. 3, an embodiment of the present disclosure further provides a web page blank page monitoring apparatus 300, including 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 web pages. The preset event determination module 302 is configured to determine whether loading of the web page triggers a preset event. The time threshold determining 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 labels of the web page is greater than a preset value after the preset event passes through the time threshold, wherein when the number of labels is greater than the preset value, the web page is not a blank page, and when the number of labels is less than or equal to the preset value, the web page is a blank page. A description of the apparatus may find similar descriptions in the corresponding methods and are not repeated here.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; 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.
In addition, the disclosure also provides a computer storage medium, and the computer storage medium stores program codes for executing the web page 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 schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
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, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, 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 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 with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 406, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. 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 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 context of this 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 the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. 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: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, 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 communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by the node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer-readable medium carries one or more programs that, 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 of the present disclosure may be written in 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 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).
The flowcharts 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), 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. The 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 web page blank page monitoring method 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 after the preset event, determining whether the number of labels of the webpage is larger than a preset value or not through the time threshold, wherein the webpage is not a blank page when the number of labels is larger than the preset value, and the webpage is a blank page when the number of labels is smaller than or equal to the preset value.
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.
In accordance with one or more embodiments of the present disclosure, determining whether 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 a time difference value between the beginning of loading of the webpage and the ending of loading; and when the time difference value is larger than zero, determining that the preset event is triggered.
In accordance with one or more embodiments of the present disclosure, determining whether the loading of the web page triggers a preset event further comprises: and 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 10s.
According to one or more embodiments of the present disclosure, the number of tags is the 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 webpages; the preset event determining module is configured to determine whether loading of the webpage triggers a preset event or not; the time threshold determining module is configured to determine a time threshold of the display state of the webpage according to the preset event; the blank page determining module is configured to determine whether the number of labels of the web page is larger than a preset value after the time threshold value passes through the preset event, wherein the web page is not a blank page when the number of labels is larger than the preset value, and the web page is a blank page when the number of labels is smaller than or equal to the preset value.
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 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.
According to one or more embodiments of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described web page blank page monitoring method.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although 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. In 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 limiting the scope of the present 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 example forms of implementing the claims.

Claims (9)

1. The web page blank page monitoring method is characterized by comprising the following steps of:
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 after the preset event passes through the time threshold, determining whether the number of the labels of the webpage is larger than a preset value, wherein the webpage is not a blank page when the number of the labels is larger than the preset value, and the webpage is a blank page when the number of the labels is smaller than or equal to the preset value, wherein the number of the labels is the number of the labels of div labels.
2. The method for monitoring a blank page of a web page according to claim 1, wherein the preset value is 2.
3. The web page blank monitoring method of claim 1, wherein the preset event comprises a window loading event.
4. The web page blank monitoring method of claim 1, wherein determining whether 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 a time difference value between the beginning of loading of the webpage and the ending of loading;
and when the time difference value is larger than zero, determining that the preset event is triggered.
5. The web page blank monitoring method of claim 4, determining whether loading of the web page triggers a preset event further comprising:
and 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 web page blank monitoring method of claim 4, wherein the time threshold is between 0.5s and 10s.
7. The utility model provides a web page blank page monitoring devices which characterized in that, web page blank page monitoring devices includes:
the webpage loading module is configured to load webpages;
the preset event determining module is configured to determine whether loading of the webpage triggers a preset event or not;
the time threshold determining module is configured to determine a time threshold of the display state of the webpage according to the preset event;
the blank page determining module is configured to determine whether the number of labels of the webpage is larger than a preset value after the time threshold value passes through the preset event, wherein the webpage is not a blank page when the number of labels is larger than the preset value, and the webpage is a blank page when the number of labels is smaller than or equal to the preset value, wherein the number of labels is the number of labels of div labels.
8. A terminal, the terminal comprising:
at least one memory and at least one processor;
wherein the memory is for storing program code and the processor is for invoking the program code stored in the memory to perform the web page blank page monitoring method of any of claims 1 to 6.
9. A computer storage medium, characterized in that the computer storage medium stores a program code for executing the web page blank page monitoring method of any one of claims 1 to 6.
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 CN111783010A (en) 2020-10-16
CN111783010B true 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)

Families Citing this family (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前端页面监测平台的设计与实现;刘甲;《中国优秀硕士学位论文全文数据 信息科技辑》(第03期);I139-89 *
基于局部变化性的网页篡改识别模型及方法;魏文晗 等;《计算机应用》;第33卷(第02期);430-433 *

Also Published As

Publication number Publication date
CN111783010A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
CN108880921B (en) Webpage monitoring method and device, storage medium and server
CN111291244B (en) House source information display method, device, terminal and storage medium
CN110471709B (en) Method, device, medium and electronic equipment for accelerating webpage opening speed
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
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN113032172B (en) Abnormality detection method and device and electronic equipment
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN109902726B (en) Resume information processing method and device
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112558933B (en) Component rendering method and device, readable medium and electronic equipment
CN112486783B (en) Progress bar display method and device
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN113296771B (en) Page display method, device, equipment and computer readable medium
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
CN116319932A (en) Training method, device, equipment and storage medium of content push model
CN111274513B (en) Window display method, device, terminal and storage medium
CN111797009B (en) Method and device for detecting code compatibility and electronic equipment
CN108459890B (en) Interface display method and device for application
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable 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
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