Page processing method, device, electronic device and computer storage medium

By freezing the page when jumping and restoring the active state when returning, the problem of abnormal display after page jumping is solved, and the user experience is improved.

CN113901368BActive Publication Date: 2025-09-05BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111161978.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-09-05
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

In the prior art, when returning to the original page after a page jump, display anomalies and functional impairments may occur, affecting the user experience.

Method used

Freeze the content of the first page when jumping to the page, and restore it to active state when returning, avoiding refresh by caching the loaded content and continuing to load the unfinished content when necessary.

Benefits of technology

Ensure that unloaded content can continue to load after the page returns, and relevant functional controls are activated to improve user experience and avoid incomplete display and unavailable operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901368B_ABST
    Figure CN113901368B_ABST
Patent Text Reader

Abstract

The present disclosure provides a page processing method, device, electronic device and computer storage medium, which relate to the field of computer technology, especially to the technical fields of search, information flow, mobile Internet, web page view, smart terminal, etc. The specific implementation scheme is: when an event of jumping from a first page to a second page is detected, the loading of the first page is refused to stop and the content of the first page is frozen; when an event of returning to the first page is detected, the first page is converted from a frozen state to an active state. The embodiment of the present disclosure enables the user to still achieve the normal display and function of the first page when jumping from the first page to the second page and then returning to the first page, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as search, information flow, mobile Internet, web page view, and smart terminals. Background Art

[0002] In the prior art, when a user jumps from one page to another and then returns to the original page, the original page may display abnormally or display-related functions may be affected, thereby affecting the user experience.

[0003] Therefore, it is necessary to improve page processing technology to enhance user experience. Summary of the Invention

[0004] The present disclosure provides a page processing method, device, electronic device and computer storage medium.

[0005] According to one aspect of the present disclosure, a page processing method is provided, comprising:

[0006] When an event of jumping from a first page to a second page is detected, refusing to stop loading the first page and freezing the content of the first page;

[0007] In case an event of returning to the first page is detected, the first page is converted from a frozen state to an active state.

[0008] According to another aspect of the present disclosure, there is provided a page processing apparatus, comprising:

[0009] A freezing module, configured to, upon detecting an event of jumping from a first page to a second page, refuse to stop loading the first page and freeze the content of the first page;

[0010] The active module is configured to convert the first page from a frozen state to an active state when an event of returning to the first page is detected.

[0011] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method in any embodiment of the present disclosure.

[0015] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to cause a computer to execute the method in any embodiment of the present disclosure.

[0016] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program / instruction, which implements the method in any embodiment of the present disclosure when the computer program / instruction is executed by a processor.

[0017] According to the disclosed technology, when a user jumps or switches from a first page to a second page, loading of the first page is not actively stopped. Instead, the content of the first page is frozen. After returning to the first page, the first page is activated. This allows the loading of any unloaded content on the first page to continue, ensuring that the unloaded content is not lost after returning to the first page. Furthermore, activating the first page after returning to the first page keeps the relevant functional controls on the first page active, preventing the user from being unable to operate the first page after returning, thereby improving the user experience.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.

[0020] Figure 1 is a flow chart of a page processing method according to an embodiment of the present disclosure;

[0021] Figure 2 is a flow chart of a page processing method according to another embodiment of the present disclosure;

[0022] Figure 3A is a schematic diagram of the first stage of a page processing method according to an example of the present disclosure;

[0023] Figure 3B is a schematic diagram of the second stage of a page processing method according to an example of the present disclosure;

[0024] Figure 4 is a flow chart of a page processing device according to an embodiment of the present disclosure;

[0025] Figure 5 is a flow chart of a page processing device according to another embodiment of the present disclosure;

[0026] Figure 6 is a flow chart of a page processing device according to another embodiment of the present disclosure;

[0027] Figure 7 is a flow chart of a page processing device according to another embodiment of the present disclosure;

[0028] Figure 8 It is a block diagram of an electronic device used to implement the page processing method of an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0030] The present disclosure first provides a page processing method, such as Figure 1 Shown, including:

[0031] Step S11: when an event of jumping from the first page to the second page is detected, refusing to stop loading the first page and freezing the content of the first page;

[0032] Step S12: When an event of returning to the first page is detected, the first page is converted from a frozen state to an active state.

[0033] In this embodiment, the first page can be a web page of a browser or an operation page, playback page or display page of any APP (Application), or any page that needs to obtain information from the server to be presented on the terminal.

[0034] In this embodiment, the above-mentioned terminal can specifically be a desktop computer, a laptop computer, a tablet computer, a mobile phone, a smart watch, a smart reading device, a handheld computer, a smart wearable device, or other electronic device capable of browsing network information in the form of pages.

[0035] In this embodiment, the second page can also be a web page of a browser or an operation page, playback page or display page of any APP, etc. It can also be any page that needs to obtain information from the server to present it on the terminal, or it can be other pages different from the first page, such as the desktop, settings interface, terminal control interface, etc.

[0036] In a specific implementation, the event of jumping from the first page to the second page may be an event in which the user switches the current displayed page of the terminal to the second page through an operation instruction when the terminal is displaying the first page.

[0037] For example, the first page may be the M page of the browser, and the second page may be the K page of the browser. When the user browses the M page using the terminal browser, he jumps to the K page by clicking a link on the M page, thereby causing an event to jump from the first page to the second page.

[0038] For example, the first page may be the M page of the browser, and the second page may be the K page of the browser. When the user browses the M page using the terminal browser, the automatic jump trigger instruction contained in the M page automatically jumps to the K page, thereby causing an event to jump from the first page to the second page.

[0039] For example, the first page is a page of the terminal application, and the second page is another page of the terminal application. When the user uses the terminal application, he jumps from one page of the terminal application to another page of the terminal application through active operation or triggering an automatic jump instruction, thereby causing an event of jumping from the first page to the second page.

[0040] For another example, the first page is a page of a terminal application, and the second page is an operation page of an operation tool such as the terminal desktop or terminal settings. When using the terminal application, the user actively issues an operation instruction to jump from a page of the terminal application to an operation page of an operation tool such as the terminal desktop or terminal settings, thereby causing an event of jumping from the first page to the second page.

[0041] For another example, the first page is a page of a terminal application, and the second page is a terminal function page for making calls, browsing or editing short messages, etc. When a user browses or operates on a page of the terminal application, the terminal generates an operation request interface on a page of the terminal application based on communication information or network information received from other terminals or devices. The user switches pages through the operation request interface, thereby causing an event to jump from the first page to the second page.

[0042] For example, the first page is a page of a first application of the terminal, and the second page is a page of a second application of the terminal. When the user browses the page of the first application, he jumps to the page of the second application by actively operating or triggering an automatic jump instruction.

[0043] In this embodiment, refusing to stop loading the first page may mean refusing to execute the stop loading operation that is automatically executed when jumping from the first page to the second page. Specifically, the stop loading function or instruction executed when the page jump event occurs may be set to a disabled state, or the original stop loading function or instruction may be stopped from continuing to execute when the page jump event occurs.

[0044] In this embodiment, the content loaded on the first page may include relevant information of the first page obtained from the server, that is, all or part of the content of the first page for presentation on the terminal display interface.

[0045] The content loaded on the first page may further include information related to the loading progress of the first page.

[0046] Freezing the content of the first page may be placing the executed loading operation of the first page in a suspended frozen state, so that the unloaded portion temporarily stops loading, and recording the loaded content of the first page for display.

[0047] In this embodiment, the event of returning to the first page can be an event of returning to the first page from the second page, an event of returning to the first page from other pages, or an event of the user opening the first page again on the terminal through any means after freezing the first page.

[0048] In this embodiment, whether an event of returning to the first page is detected may be determined by combining the available status of some resources related to the display of the first page.

[0049] In this embodiment, converting the first page from the frozen state to the active state may be converting the first page from the loading pause state to the loading resume state.

[0050] When the first page is frozen and the controls in the first page are turned into an unavailable state, converting the first page into an active state may include restoring the controls in the first page to an available state.

[0051] Converting the first page from the frozen state to the active state may include activating all related functions of the first page, including a loading function, a control function, a play function, and the like.

[0052] The page processing method of the disclosed embodiment can be applied to the web page Webview (web page view) of the Android system. Under normal circumstances, when the Android WebView page jumps, especially when the page is quickly clicked to jump to another page and then returns to the original page, since the jump triggers operations such as stopping parsing and stopping loading of the main document data of the page before the jump, when returning to the previous page after the jump, page layout and resource loading anomalies may occur, such as incomplete page display, image display failure, and JS (Java Script) control execution failure.

[0053] In this embodiment, when the user jumps or switches from the first page to the second page, the loading operation of the first page is not actively stopped. Instead, the content of the first page is frozen. After returning to the first page, the first page is activated so that if there is unloaded content on the first page, the unloaded content of the first page can continue to be loaded, so that after returning to the first page, the unloaded content will not be missing; at the same time, after returning to the first page, activating the first page can make the relevant functional controls of the first page active, without refreshing the first page, avoiding the situation where the user cannot operate on the first page after returning, thereby improving the user experience.

[0054] In one embodiment, Figure 2 As shown, freeze the content of the first page, including:

[0055] Step S21: caching the loaded content of the first page;

[0056] Step S22: calling the freeze interface of the Page Life Circle system to set the first page to a frozen state.

[0057] The loaded content of the first page is cached, which may include placing the first page related information obtained from the server into a buffer storage area (Cache), and may also include placing the JS control function, loading progress and other information of the first page into the buffer storage area.

[0058] In this embodiment, the page lifecycle system divides the page lifecycle into six phases, and a page can only be in one of these phases at any given moment. These phases primarily include the Active phase, the Passive phase, the Hidden phase, the Terminated phase, the Frozen phase, and the Discard phase.

[0059] In the Active phase, the webpage is visible and has input focus. In the Passive phase, the webpage is visible but does not have input focus and cannot accept input. UI (User Interface) updates (such as animations) are still executed. This phase only occurs when multiple windows are active on the desktop. In the Hidden phase, the user's desktop is occupied by other windows, and the webpage is invisible, but it is not frozen. UI updates are no longer executed. In the Terminated phase, the browser begins to unload and purge the current page from memory, either by the user actively closing the window or navigating to another page in the same window. The Terminated phase causes the webpage to be unloaded, and no new tasks will be started during this phase. If the webpage runs for too long, ongoing tasks may be terminated. If the webpage remains in the Hidden phase for too long and the user does not close the page, the browser may freeze the page, causing it to enter the Frozen phase. However, it is also possible that a visible page may enter the Frozen phase if it has not been used for a long time.

[0060] The Frozen stage is characterized by the webpage no longer being allocated CPU (Central Processing Unit) computing resources. Timers, callback functions, network requests, and DOM (Document Object Model) operations will not execute, but ongoing tasks will complete. The browser may periodically allow the Frozen page to revive for a short period of time, briefly returning to the Hidden state to allow a small number of tasks to execute.

[0061] If a webpage remains in the Frozen stage for an extended period without the user waking up, it will enter the Discarded stage, where the browser automatically unloads the webpage and clears its memory usage. A webpage in the Passive stage may also enter the Discarded stage if there is no interaction for an extended period.

[0062] The process of entering the Discard phase is usually forced by the system without user intervention. Any new tasks or JavaScript code of any type cannot be executed in this phase because it is usually under resource constraints.

[0063] After a web page is automatically discarded by the browser, its page window is still there. If the user revisits the page, the browser will re-issue a request to the server, reload the web page again, and return to the Active stage.

[0064] In this embodiment, each stage of the page lifecycle system has a corresponding interface, which can be called to place the web page in the corresponding stage. Furthermore, in this embodiment, after a page enters the Frozen stage, it can be prevented from entering the Discard stage for a certain period of time, that is, the page remains frozen for a certain period of time.

[0065] In another possible implementation, the operation of setting the page state to a frozen state through the freeze interface of the page lifecycle system is applicable not only to the web pages of the browser, but also to other H5 pages or other application interfaces or pages.

[0066] In this embodiment, after the content recorded on the first page is cached, the first page is frozen to retain the content loaded on the first page, and the loading of the first page is suspended but not invalidated.

[0067] In one embodiment, converting the first page from a frozen state to an active state includes:

[0068] Call the active interface of the page life cycle system to set the first page from the frozen state to the active state.

[0069] In this embodiment, the active interface of the page lifecycle system can be used to convert a web page or other H5 page from an inactive state to an active state.

[0070] After the first page is set from the frozen state to the active state, an unfinished loading operation can be performed on the first page.

[0071] In this embodiment, the first page is set from a frozen state to an active state, so that after returning to the first page, the user can continue to browse or perform other normal operations on the first page without refreshing the first page, thereby improving the user experience.

[0072] In one embodiment, the page processing method further includes:

[0073] Set the loaded content of the first page as the current list item;

[0074] Render the current list item to get the display content of the current window.

[0075] In this embodiment, the current list item may be a current item to be displayed, specifically a buffer queue of information to be displayed.

[0076] Rendering the current list item may include converting the current list item, generating texture information that can be used for display, displaying the texture information that can be used for display, and obtaining display content of the current window.

[0077] In this embodiment, the content loaded on the first page is directly used for display, so there is no need to reload the loaded content. While saving resources, it can also avoid displaying information that the user has already viewed for the second time, thereby improving the user experience.

[0078] In one embodiment, the page processing method further includes:

[0079] In addition to the already loaded content, load the rest of the content on the first page;

[0080] Render additional content to the current window.

[0081] In this embodiment, in addition to the loaded content, other content of the first page is loaded. When there is unloaded content on the first page, the unloaded content of the first page is loaded.

[0082] For example, before jumping from the first page to the second page, all the text and hyperlinks on the first page have been loaded, but the pictures have not been loaded. After returning to the first page, the loaded text and hyperlinks are rendered and displayed, and the pictures continue to be loaded. As the loading progresses, the pictures on the first page are supplemented and displayed based on the already rendered part of the first page.

[0083] In this embodiment, the content of the first page that was not loaded before the jump can be supplemented and loaded, thereby avoiding incomplete display after returning to the first page and improving the user experience.

[0084] In an example of the present disclosure, a page processing method can freeze a page through a keep-alive mechanism when a page jump occurs. After returning to the page, the page can still continue to load or be displayed and used normally, significantly improving the user experience.

[0085] In this example, the first page can be Page A in a browser or other application, and the second page can be Page B in a browser or other application. When clicking a link from Page A to Page B, Page A's parsing and data loading are not stopped; instead, Page A remains active and is kept alive. However, Page A, which continues to parse and load resources in the background, will inevitably affect the speed of newly opened Page B. To optimize this issue, we use multi-page keepalives combined with the Page Life Cycle mechanism.

[0086] With the multi-page keep-alive mechanism combined with the Page Life Cycle mechanism, when a link is clicked from Page A to Page B, Page A is kept alive and the Page Life Cycle state is used to control Page A, setting it to the Frozen state. This pauses all parsing and resource loading for Page A. When the user returns to Page A from Page B, the Page Life Cycle state control sets Page A to the Active state, resuming parsing and loading. This perfectly solves this problem.

[0087] Page Life Cycle status control can be encapsulated through the newly added Webview interface and used by Android system applications.

[0088] Figure 3A and 3B The two stages of the page processing method of the embodiment of the present disclosure are respectively shown.

[0089] like Figure 3A As shown in the figure, when a user clicks a link from page A to page B, the parsing and data loading operations of page A are not stopped. Instead, page A is kept alive. The Page Life Cycle state mechanism is used to control page A, putting it in a Frozen state. The parsing and resource loading of page A are paused. Page B is in an Active state.

[0090] like Figure 3B As shown, when the user returns to Page A from Page B, Page A is controlled to the Active state through the Page Life Cycle state mechanism, and Page A's parsing and resource loading are resumed, and Page A continues to load and display normally. Page B is in the Gone (Closed) state.

[0091] Thus, by setting a unified multi-page keep-alive jump processing strategy, the disclosed embodiments address issues such as incomplete display of page A and incomplete resource loading when clicking page A redirects to page B, effectively improving the user experience. Furthermore, the page processing method provided by the disclosed embodiments is applicable to all H5 page scenarios opened in Android Webview, and has a wide range of applications.

[0092] The present disclosure also provides a page processing device, such as Figure 4 Shown, including:

[0093] A freezing module 41 is configured to, upon detecting an event of jumping from a first page to a second page, refuse to stop loading the first page and freeze the content of the first page;

[0094] The active module 42 is configured to convert the first page from a frozen state to an active state when an event of returning to the first page is detected.

[0095] In one embodiment, Figure 5 As shown, the freeze module includes:

[0096] The cache unit 51 is used to cache the content loaded on the first page;

[0097] The freezing interface unit 52 is used to call the freezing interface of the page life cycle system to set the first page to a frozen state.

[0098] In one embodiment, the activity module is further configured to:

[0099] Call the active interface of the page life cycle system to set the first page from the frozen state to the active state.

[0100] In one embodiment, Figure 6 As shown, the page processing device also includes:

[0101] List item module 61, used to set the content loaded on the first page as the current list item;

[0102] The rendering module 62 is used to render the current list item to obtain the display content of the current window.

[0103] In one embodiment, Figure 7 The page processing device further includes:

[0104] Other content loading module 71, used to load other content of the first page in addition to the loaded content;

[0105] The supplementary rendering module 72 is used to render other contents into the current window.

[0106] The embodiments of the present disclosure can be applied to the field of computer technology, and in particular, can be applied to technical fields such as search, information flow, mobile Internet, web page view, and smart terminals.

[0107] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0108] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0109] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0110] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the device 800 can also be stored in the RAM 803. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0111] Various components in device 800 are connected to I / O interface 805, including an input unit 806, such as a keyboard, mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0112] The computing unit 801 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the page processing method. For example, in some embodiments, the page processing method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the page processing method described above can be performed. Alternatively, in other embodiments, the computing unit 801 can be configured to perform the page processing method in any other appropriate manner (e.g., by means of firmware).

[0113] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0114] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0115] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0117] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by 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), and the Internet.

[0118] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0119] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.

[0120] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A page processing method, comprising: Upon detecting an event of jumping from a first page to a second page, refusing to stop loading the first page and caching the content already loaded on the first page, where the content already loaded on the first page includes all or part of the content of the first page for presentation on a terminal display interface, the loading progress of the first page, and control functions of the first page; Setting the first page to a frozen state; In case an event of returning to the first page is detected, the first page is converted from a frozen state to an active state.

2. The method according to claim 1, wherein Setting the first page to a frozen state includes: The freezing interface of the page life cycle system is called to set the first page to a frozen state.

3. The method according to claim 1 or 2, wherein: Converting the first page from a frozen state to an active state includes: The active interface of the page life cycle system is called to set the first page from a frozen state to an active state.

4. The method according to any one of claims 1 to 3, further comprising: Set the content loaded on the first page as the current list item; The current list item is rendered to obtain display content of the current window.

5. The method according to claim 4, further comprising: In addition to the loaded content, load other content of the first page; The other contents are rendered additionally to the current window.

6. A page processing device, comprising: a freezing module configured to, upon detecting an event of jumping from a first page to a second page, refuse to stop loading the first page, cache the content already loaded on the first page, the content already loaded on the first page including all or part of the content of the first page for presentation on a terminal display interface, the loading progress of the first page, and control functions of the first page; and set the first page to a frozen state; The active module is configured to convert the first page from a frozen state to an active state when an event of returning to the first page is detected.

7. The device according to claim 6, wherein The freezing module includes: The freezing interface unit is used to call the freezing interface of the page life cycle system to set the first page to a frozen state.

8. The device according to claim 6 or 7, wherein: The activity module is also used to: The active interface of the page life cycle system is called to set the first page from a frozen state to an active state.

9. The apparatus according to any one of claims 6 to 8, further comprising: A list item module, configured to set the content loaded on the first page as the current list item; The rendering module is used to render the current list item to obtain the display content of the current window.

10. The apparatus according to claim 9, further comprising: Other content loading module, used for loading other content of the first page in addition to the loaded content; A supplementary rendering module is used to render the other content into the current window.

11. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Page resource display method and device of target page, and page recourse loading method and device of target page

    CN107229642A

  • Page display method and device, terminal, and storage medium

    CN109032457A