CN113065080A - Page display method and device - Google Patents

Page display method and device Download PDF

Info

Publication number
CN113065080A
CN113065080A CN201911274601.0A CN201911274601A CN113065080A CN 113065080 A CN113065080 A CN 113065080A CN 201911274601 A CN201911274601 A CN 201911274601A CN 113065080 A CN113065080 A CN 113065080A
Authority
CN
China
Prior art keywords
page
request
loading
loaded
displaying
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.)
Pending
Application number
CN201911274601.0A
Other languages
Chinese (zh)
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 Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201911274601.0A priority Critical patent/CN113065080A/en
Publication of CN113065080A publication Critical patent/CN113065080A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The invention discloses a page display method and device, and relates to the technical field of computers. One embodiment of the method comprises: receiving a trigger instruction for loading a first page; displaying a loading intermediate page before the first page is loaded successfully according to the trigger instruction; monitoring a back-off request triggered on the loading intermediate page; when a first backing request is monitored and the first page is not loaded successfully, ignoring the monitored second backing request; and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request. The implementation method can reduce the operation complexity of the application or the webpage and improve the user experience.

Description

Page display method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page display method and device.
Background
When a user uses a mobile terminal APP or browses a webpage, the user usually switches the webpage to view different contents.
Page switching involves loading of different pages, and in the page loading process, an intermediate page containing a back button is displayed to a user, so that the user can return to a previous history page through the back button, and the user may click the back button for multiple times due to the fact that the user is urgent to view the content of the page, so that the finally loaded page is not the page which the user desires to view. At this time, if the user wants to enter the desired page again, the user needs to load the page for multiple times, which increases the complexity of the operation of the application or the webpage and reduces the user experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying a page, which can reduce the complexity of operating an application or a web page and improve user experience.
To achieve the above object, according to an aspect of an embodiment of the present invention, a method for page display is provided.
The page display method of the embodiment of the invention comprises the following steps: receiving a trigger instruction for loading a first page;
displaying a loading intermediate page before the first page is loaded successfully according to the trigger instruction;
monitoring a back-off request triggered on the loading intermediate page;
when a first backing request is monitored and the first page is not loaded successfully, ignoring the monitored second backing request;
and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
Optionally, the page that receives the trigger instruction is taken as the second page.
Optionally, before the receiving the trigger instruction for loading the first page, the method further includes:
locally storing the page information of the second page;
the displaying a second page according to the back request comprises:
and displaying the second page according to the locally stored page information.
Optionally, the method further comprises:
and deleting the locally stored page information according to a preset period, wherein the preset period is longer than the first duration.
Optionally, the method further comprises:
and within the first time span, finishing the timing of the first time span after the first page is loaded, and replacing the loaded middle page by using the first page.
Optionally, the load intermediate page further shows a refresh component for reloading the first page;
and when the refreshing component is triggered, ending the timing of the first duration, and reloading the first page.
Optionally, the method further comprises:
and displaying the second page under the condition that the refreshing component is not triggered within a second time length and the first page is not loaded successfully.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for page displaying.
The page display device of the embodiment of the invention comprises: the device comprises an intermediate page display module, a request monitoring module and a processing module; wherein the content of the first and second substances,
the intermediate page display module is used for receiving a trigger instruction for loading a first page and displaying and loading an intermediate page before the first page is loaded successfully according to the trigger instruction;
the request monitoring module is used for monitoring a back-off request triggered on the loading intermediate page;
the processing module is used for ignoring the monitored second backing request when the first backing request is monitored and the first page is not loaded successfully; and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
Optionally, the processing module is configured to use the page that receives the trigger instruction as the second page.
Optionally, the load intermediate page further shows a refresh component for reloading the first page; and the processing module is further configured to end the timing of the first duration and reload the first page when the refresh component is triggered.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an electronic device for page display.
The electronic equipment for page display in the embodiment of the invention comprises: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the page display method of the embodiment of the invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements a method of page presentation of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: when a trigger instruction for loading the first page is received and the first page is loaded according to the trigger instruction, namely before the first page is loaded successfully, the loading of the intermediate page is displayed. And then monitoring a back-off request triggered on the loading intermediate page, ignoring a second back-off request triggered after the first back-off request after monitoring the first back-off request, and displaying a second page according to the first back-off request when monitoring that the first time length is reached after the first back-off request and the first page is not loaded successfully. Therefore, the number of times of page switching is reduced by neglecting the second backing request, so that the situation that the page is backed to a page which is not expected by a user due to the fact that the user triggers the backing request for multiple times when loading the middle page is avoided, the complexity of operation of the application or the webpage is reduced, and user experience is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a page display method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the main modules of a page display apparatus according to an embodiment of the present invention;
FIG. 3 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 4 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic diagram of main steps of a page display method according to an embodiment of the present invention.
As shown in fig. 1, the page display method of the embodiment of the present invention mainly includes the following steps:
step S101: a trigger instruction to load a first page is received.
When a user needs to switch the page, a trigger instruction can be input in the currently displayed page so as to switch the currently displayed page to the first page corresponding to the trigger instruction. For example, the currently displayed page is a search result page of item class a, which displays a plurality of item information belonging to item class a, and when the user wants to view details about one item information a1, the user may click on item information a1 on the currently displayed page to generate a trigger instruction for loading the first page of item information a 1.
Step S102: and displaying a loaded intermediate page before the first page is loaded successfully according to the trigger instruction.
After the trigger instruction is received and before the first page is loaded successfully, the loaded intermediate page can be displayed. The loading intermediate page can show a refresh component for reloading the first page, and when the refresh component is triggered, the first page can be reloaded, so that when the first page loading fails due to network failure and the like, a user can reload the first page by triggering the refresh component.
Step S103: and monitoring a back-off request triggered on the loading intermediate page.
Step S104: when a first back-off request is snooped and the first page is not successfully loaded, the snooped second back-off request is ignored.
Before the first page is successfully loaded, if the user triggers the first back request, and then triggers the second back request again, the page display device provided by the embodiment of the invention directly ignores the second back request, that is, if the user triggers the first back request and then sends the second back request again, the page display device provided by the embodiment of the invention does not perform any processing according to the second back request, and the user does not obtain the result (such as page jump) of the second back request, so as to avoid that the user does not know which page the user is specifically located in the page loading process because the page does not display specific content, and therefore the page is rolled back to a page which is not expected by the user because the user triggers the back request on the loading middle page for multiple times because the user is eagerly looking at the content.
It should be noted that the second back request in the embodiment of the present invention refers to one or more back requests triggered by the user on the loaded intermediate page after the first back request is monitored, and does not refer to only a single back request triggered after the first back request, that is, before the first page is successfully loaded, the back requests triggered after the first back request are all referred to as the second back request. In other words, in the embodiment of the present invention, after the first back request triggered by the loading intermediate page is monitored, before the first page is successfully loaded, if it is monitored again that one or more back requests (second back requests) are triggered by the loading intermediate page, the monitored one or more back requests are ignored.
Step S105: and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
If the first page is still successfully loaded after the first time duration of the first back request is monitored, the second page can be displayed according to the first back request in order to avoid the situation that a user waits for loading the middle page for a long time. The second page may be a history page browsed by the user, that is, a page on which the trigger instruction is received.
In order to facilitate the display of the second page, the page information of the second page may be stored in advance. For example, when the second page is requested or displayed, the page information of the second page is stored locally, and the time for storing the page information is not limited in the embodiment of the present invention. After the first backing request reaches the first time length after monitoring, if the first page is still successfully loaded, the second page can be displayed according to the locally stored page information of the second page, so that when the second page is displayed, the second page does not need to be loaded through a network again, and the locally stored page information can be directly called to display the second page, so that the loading rate of the second page is improved, the user waiting time is further reduced, and the user experience is improved.
For example, when the user enters a detail page of item information a1 from a search result page of item a (the page shows a plurality of item information belonging to item a), the detail page of item information a1 to be loaded is the first page, and the search result page of item a is the second page. When the search result page of the article A is displayed, the page information of the search result page of the article A can be stored locally, after the first back request reaches the first duration from the monitoring, if the detail page of the article information A1 is still loaded successfully, the search result page of the article A is returned according to the page information stored locally at the first level of the first back request.
In addition, in order to avoid the reduction of the operation efficiency due to the excessive locally stored page information, in an embodiment of the present invention, the locally stored page information may be deleted according to a preset period, where the preset period is greater than the first duration. The first duration is generally in the order of seconds, and the preset period may be counted by hours or days, for example, if the first page is successfully loaded within 3s after the first back request is monitored, the page is backed to the second page, that is, the first duration is 3 s. For another example, the locally stored page information is deleted at zero point every day, that is, the preset period may be one day, and the preset period may be customized by a user according to a requirement, so that the locally stored page information is cleared at a fixed time, and reduction of operation efficiency due to excessive locally stored page information is avoided.
It can be understood that if the first time length is not reached after the first back request is monitored, the first page is successfully loaded, at this time, the timing of the first time length is ended, and the first page which is successfully loaded is used for replacing the loaded middle page, so that the first page is displayed to the user. For example, after the first back-off request is monitored, a first timer is used for timing, and then the first page is loaded successfully before the timing of the first timer reaches the first duration, at this time, the timing of the first timer can be cleared, then the loaded middle page is replaced by the first page which is loaded successfully, and the first page is also displayed to the user.
On the other hand, since the loading of the intermediate page may also show a refresh component for reloading the first page, when the user triggers the refresh component, the timing of the first duration is also ended, and then the first page is reloaded according to the triggering of the refresh component. If the refresh component is not triggered within the second duration and the first page is not loaded successfully within the second duration, then the second page is displayed according to the first fallback request.
The relationship between the first duration and the second duration can be configured in advance, and the two timers are respectively used for recording the durations, the first timer is used for recording the timing corresponding to the first duration a1, and the second timer is used for recording the timing corresponding to the second duration a 2. If the trigger for the refresh component is not received since the first back-off request is received and before the first page is successfully loaded, the second page is displayed when the duration recorded by the first timer reaches the first duration a 1. And if the trigger aiming at the refreshing component is received after the first back-off request is received and before the first page is successfully loaded, resetting the duration recorded by the first timer and the second timer at the same time, reloading the first page, and restarting timing by using the first timer and the second timer.
It should be noted that the jump conditions corresponding to the first duration a1 and the second duration a2 have no specific association, that is, the size relationship between the first duration a1 and the second duration a2 does not affect the jump mechanism of the page. For example, when a1< a2 and the first timer and the second timer start recording the time length at the same time, if the trigger for the refresh component is not received after the time length recorded by the first timer reaches a1, the page jumps from the loading middle page to the second page according to the trigger mechanism of the first time length a1, no longer regardless of whether the trigger for the refresh component is received after the time length reaches a1 and before reaching a 2. Specifically, after the duration recorded by the first timer reaches a1, the displayed page jumps from the loading middle page to the second page, the loading middle page is not displayed to the user any more, and accordingly, the refresh component is not displayed to the user any more, and then the trigger for the refresh component is not received any more after the duration recorded by the first timer reaches a 1.
In addition, when a1> a2 and the first timer and the second timer start recording the time length at the same time, if the trigger for the refresh component is not received after the time length recorded by the second timer reaches a2, the middle page can be loaded to jump to the second page at this time, regardless of whether the time length recorded by the first timer reaches a 1. When a1 is a2 and the first timer and the second timer start recording the time length at the same time, if the trigger for the refresh component is received at the same time when the time length recorded by the first timer reaches a1, that is, when the time length recorded by the first timer reaches a1 and the time length recorded by the second timer reaches a2, the trigger for the refresh component is received, the display page is still enabled to jump from the loaded middle page to the second page according to the trigger mechanism of the first time length. That is, the trigger for the refresh component received within the second duration (excluding the time at which the second duration is reached) is valid.
According to the page display method provided by the embodiment of the invention, when the trigger instruction for loading the first page is received, and the first page is loaded according to the trigger instruction, namely before the first page is loaded successfully, the middle page is displayed and loaded. And then monitoring a back-off request triggered on the loading intermediate page, ignoring a second back-off request triggered after the first back-off request after monitoring the first back-off request, and displaying a second page according to the first back-off request when monitoring that the first time length is reached after the first back-off request and the first page is not loaded successfully. Therefore, the number of times of page switching is reduced by neglecting the second backing request, so that the situation that the page is backed to a page which is not expected by a user due to the fact that the user triggers the backing request for multiple times when loading the middle page is avoided, the complexity of operation of the application or the webpage is reduced, and user experience is improved.
FIG. 2 is a schematic diagram of the main modules of a page display apparatus according to an embodiment of the present invention.
As shown in fig. 2, an apparatus 200 for page display according to an embodiment of the present invention includes: the system comprises an intermediate page display module 201, a request monitoring module 202 and a processing module 203; wherein the content of the first and second substances,
the intermediate page display module 201 is configured to receive a trigger instruction for loading a first page, and display and load an intermediate page before the first page is successfully loaded according to the trigger instruction;
the request monitoring module 202 is configured to monitor a fallback request triggered on the loading intermediate page;
the processing module 203 is configured to ignore the monitored second fallback request when the first fallback request is monitored and the first page is not successfully loaded; and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
In an embodiment of the present invention, the processing module 203 is configured to use the page that receives the trigger instruction as the second page.
In an embodiment of the present invention, the intermediate page displaying module 201 is further configured to locally store the page information of the second page; the processing module 203 is configured to display the second page according to the locally stored page information.
In an embodiment of the present invention, the processing module 203 is further configured to delete the locally stored page information according to a preset period, where the preset period is greater than the first duration.
In an embodiment of the present invention, the processing module 203 is further configured to, within the first duration, end timing of the first duration after the first page is completely loaded, and replace the loaded middle page with the first page.
In one embodiment of the invention, said loading intermediate page further exhibits a refresh component for reloading said first page; the processing module 203 is further configured to end the timing of the first duration and reload the first page when the refresh component is triggered.
In an embodiment of the present invention, the processing module 203 is configured to show the second page if the refresh component is not triggered within the second duration and the first page is not loaded successfully.
According to the page display device in the embodiment of the invention, when the trigger instruction for loading the first page is received, and the first page is loaded according to the trigger instruction, namely before the first page is loaded successfully, the middle page is displayed and loaded. And then monitoring a back-off request triggered on the loading intermediate page, ignoring a second back-off request triggered after the first back-off request after monitoring the first back-off request, and displaying a second page according to the first back-off request when monitoring that the first time length is reached after the first back-off request and the first page is not loaded successfully. Therefore, the number of times of page switching is reduced by neglecting the second backing request, so that the situation that the page is backed to a page which is not expected by a user due to the fact that the user triggers the backing request for multiple times when loading the middle page is avoided, the complexity of operation of the application or the webpage is reduced, and user experience is improved.
Fig. 3 illustrates an exemplary system architecture 300 of a page showing method or a page showing apparatus to which an embodiment of the present invention may be applied.
As shown in fig. 3, the system architecture 300 may include terminal devices 301, 302, 303, a network 304, and a server 305. The network 304 serves as a medium for providing communication links between the terminal devices 301, 302, 303 and the server 305. Network 304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal device 301, 302, 303 to interact with the server 305 via the network 304 to receive or send messages or the like. The terminal devices 301, 302, 303 may have various communication client applications installed thereon, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like.
The terminal devices 301, 302, 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 305 may be a server providing various services, such as a background management server providing support for shopping websites browsed by the user using the terminal devices 301, 302, 303. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be noted that the method for page display provided by the embodiment of the present invention is generally executed by the server 305, and accordingly, the page display apparatus is generally disposed in the server 305.
It should be understood that the number of terminal devices, networks, and servers in fig. 3 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 4, a block diagram of a computer system 400 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal 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 invention.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU)401 that can 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 section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, according to the embodiments 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 embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the present invention 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 invention, 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 invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
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 invention. 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 or flowchart illustration, and combinations of blocks in the block diagrams 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 modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises an intermediate page display module, a request monitoring module and a processing module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, the intermediate page exposing module may also be described as "exposing a module that loads an intermediate page".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a trigger instruction for loading a first page; displaying a loading intermediate page before the first page is loaded successfully according to the trigger instruction; monitoring a back-off request triggered on the loading intermediate page; when a first backing request is monitored and the first page is not loaded successfully, ignoring the monitored second backing request; and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
According to the technical scheme of the embodiment of the invention, when the trigger instruction for loading the first page is received and the first page is loaded according to the trigger instruction, namely before the first page is loaded successfully, the loading of the middle page is displayed. And then monitoring a back-off request triggered on the loading intermediate page, ignoring a second back-off request triggered after the first back-off request after monitoring the first back-off request, and displaying a second page according to the first back-off request when monitoring that the first time length is reached after the first back-off request and the first page is not loaded successfully. Therefore, the number of times of page switching is reduced by neglecting the second backing request, so that the situation that the page is backed to a page which is not expected by a user due to the fact that the user triggers the backing request for multiple times when loading the middle page is avoided, the complexity of operation of the application or the webpage is reduced, and user experience is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for displaying a page, comprising:
receiving a trigger instruction for loading a first page;
displaying a loading intermediate page before the first page is loaded successfully according to the trigger instruction;
monitoring a back-off request triggered on the loading intermediate page;
when a first backing request is monitored and the first page is not loaded successfully, ignoring the monitored second backing request;
and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
2. The method of claim 1,
and taking the page receiving the trigger instruction as the second page.
3. The method of claim 2, further comprising, prior to said receiving a trigger instruction for loading a first page:
locally storing the page information of the second page;
the displaying a second page according to the back request comprises:
and displaying the second page according to the locally stored page information.
4. The method of claim 3, further comprising:
and deleting the locally stored page information according to a preset period, wherein the preset period is longer than the first duration.
5. The method of claim 1, further comprising:
and within the first time span, finishing the timing of the first time span after the first page is loaded, and replacing the loaded middle page by using the first page.
6. The method of claim 1, wherein the load intermediate page further exposes a refresh component for reloading the first page;
and when the refreshing component is triggered, ending the timing of the first duration, and reloading the first page.
7. The method of claim 6, further comprising:
and displaying the second page under the condition that the refreshing component is not triggered within a second time length and the first page is not loaded successfully.
8. An apparatus for page display, comprising: the device comprises an intermediate page display module, a request monitoring module and a processing module; wherein the content of the first and second substances,
the intermediate page display module is used for receiving a trigger instruction for loading a first page and displaying and loading an intermediate page before the first page is loaded successfully according to the trigger instruction;
the request monitoring module is used for monitoring a back-off request triggered on the loading intermediate page;
the processing module is used for ignoring the monitored second backing request when the first backing request is monitored and the first page is not loaded successfully; and when the first time of duration is reached from the monitoring of the first back-off request and the first page is not loaded successfully, displaying a second page according to the first back-off request.
9. The apparatus of claim 8,
and the processing module is used for taking the page receiving the trigger instruction as the second page.
10. The apparatus of claim 8,
the load intermediate page also shows a refresh component for reloading the first page;
and the processing module is further configured to end the timing of the first duration and reload the first page when the refresh component is triggered.
11. An electronic device for page display, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911274601.0A 2019-12-12 2019-12-12 Page display method and device Pending CN113065080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911274601.0A CN113065080A (en) 2019-12-12 2019-12-12 Page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911274601.0A CN113065080A (en) 2019-12-12 2019-12-12 Page display method and device

Publications (1)

Publication Number Publication Date
CN113065080A true CN113065080A (en) 2021-07-02

Family

ID=76557803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911274601.0A Pending CN113065080A (en) 2019-12-12 2019-12-12 Page display method and device

Country Status (1)

Country Link
CN (1) CN113065080A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114782A1 (en) * 2003-11-26 2005-05-26 Uwe Klinger Providing navigation in a browser
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN107679118A (en) * 2017-09-18 2018-02-09 北京小米移动软件有限公司 page loading method and device
CN108549673A (en) * 2018-03-29 2018-09-18 优视科技有限公司 Pre-add support method, client, server and the network system of web page resources
CN109284046A (en) * 2018-09-18 2019-01-29 广州虎牙信息科技有限公司 A kind of method, apparatus, terminal and storage medium controlling control
CN109800025A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Page loading method, device, equipment and storage medium
CN110147509A (en) * 2019-04-04 2019-08-20 浙江口碑网络技术有限公司 Page furbishing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114782A1 (en) * 2003-11-26 2005-05-26 Uwe Klinger Providing navigation in a browser
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device
CN107679118A (en) * 2017-09-18 2018-02-09 北京小米移动软件有限公司 page loading method and device
CN108549673A (en) * 2018-03-29 2018-09-18 优视科技有限公司 Pre-add support method, client, server and the network system of web page resources
CN109284046A (en) * 2018-09-18 2019-01-29 广州虎牙信息科技有限公司 A kind of method, apparatus, terminal and storage medium controlling control
CN109800025A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Page loading method, device, equipment and storage medium
CN110147509A (en) * 2019-04-04 2019-08-20 浙江口碑网络技术有限公司 Page furbishing method and device

Similar Documents

Publication Publication Date Title
CN111158799A (en) Page rendering method and device, electronic equipment and storage medium
CN108287925B (en) Method and device for displaying page elements
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN111290871A (en) Method and device for acquiring crash information of application program
CN104038842B (en) A kind of method and apparatus prefetching request program information in CDN network
WO2022041879A1 (en) Method and apparatus for processing notification trigger message
CN113127225A (en) Method, device and system for scheduling data processing tasks
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN113065080A (en) Page display method and device
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112688982B (en) User request processing method and device
US11366613B2 (en) Method and apparatus for writing data
US20210144048A1 (en) Method and apparatus for outputting information
CN113961298A (en) Page switching method, device, equipment and medium
CN113452738A (en) Page loading method and client
CN112947918A (en) Data display method and device
CN113742376A (en) Data synchronization method, first server and data synchronization system
CN112822225A (en) Method and device for tracking content delivery effect
CN113268292A (en) Method and device for displaying information, electronic equipment and storage medium
CN113449230A (en) Method and system for determining exposure element, client and server
CN113612676B (en) Social group message synchronization method, device, equipment and storage medium
CN116955055A (en) Method and device for reporting buried point data
CN112994968B (en) Network information acquisition method, server, terminal and system
CN110851192A (en) Method and device for responding to configuration of degraded switch
CN113094211B (en) Backup data processing method and device

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