Target display page jumping method and device, storage medium and electronic device
By using blank tags in web front-end development to render the introductory page and asynchronously load data content, the problems of page navigation compatibility and user experience are solved, and a more stable and efficient page navigation process is achieved.
Patent Information
- Application Number
- CN202511499654.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-20
- Publication Date
- 2026-01-30
AI Technical Summary
Existing technologies for page navigation in web front-end development suffer from poor compatibility, the risk of being blocked by browsers, and a poor user experience.
Upon receiving a click event, a blank tab page is opened using the target open window method, a guide page is rendered, and data content is loaded asynchronously in the background. Once loading is complete, the user is redirected to the target page. This includes asynchronous task queue management and security verification.
It improves page navigation compatibility and user experience, avoids white screen issues, and optimizes resource utilization efficiency and business flexibility.
Smart Images

Figure CN121434518A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of log collection, and more specifically, to a method and apparatus for redirecting to a target display page, a storage medium, and an electronic device. Background Technology
[0002] Currently, in web front-end development, due to needs such as business logic redirection, advertising display, or multitasking, it is often necessary to display the target page by opening a new window or tab in the browser. Existing technologies typically use the browser's native window opening method, triggered in the user's click event callback, to avoid being blocked by browser security policies. However, this method has poor compatibility across different browser environments and terminal devices, and still carries the risk of being blocked. Furthermore, a blank screen often appears during the redirection process, resulting in a poor user experience.
[0003] Regarding the relevant technologies, there is currently no effective solution to the problem of how to improve the user experience when performing page navigation operations.
[0004] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0005] This application provides a method and apparatus for redirecting a target display page, a storage medium, and an electronic device, to at least address the problem of how to improve the user experience when performing page redirection operations.
[0006] According to one aspect of the embodiments of this application, a method for redirecting to a target display page is provided, comprising: upon receiving a click event of a target object, opening a blank tab page using a target open window method, wherein the click event is used to open the target display page; rendering a guide page on the blank tab page, and asynchronously loading data content required to display the target display page in the background, wherein the guide page displays at least the following information: progress information of loading the data content, and a prompt message indicating that the guide page should be canceled; upon completion of loading the data content, canceling the display of the guide page and redirecting to the target display page.
[0007] In one exemplary embodiment, asynchronously loading the data content required to display the target display page in the background includes: creating an asynchronous task queue in the background, wherein the asynchronous task queue includes multiple tasks, each of which is used to control the loading progress of multiple types of data sub-content included in the data content; setting a monitoring object for each of the multiple tasks, each monitoring object being used to monitor the execution status of the corresponding task; and executing the multiple tasks in the asynchronous task queue in a target order to asynchronously load the data content in the background.
[0008] In an exemplary embodiment, the method for redirecting the target display page during the asynchronous loading of data content in the background by executing multiple tasks in the asynchronous task queue according to a target order further includes: if the target order is that the multiple tasks are executed sequentially, obtaining the execution result of the currently executed task; if the execution result of the currently executed task fails, pausing the execution of the next task of the currently executed task and continuing to execute the currently executed task until the execution result of the currently executed task is successful.
[0009] In one exemplary embodiment, before redirecting to the target display page, the redirection method further includes: verifying whether the target display page is within a preset whitelist and verifying whether the temporary token used to access the target display page is valid; if it is determined that the target display page is within the preset whitelist and the temporary token is valid, redirecting to the target display page; if it is determined that the target display page is not within the preset whitelist and / or the temporary token is not valid, redirecting to a security prompt page.
[0010] In one exemplary embodiment, before jumping to the target display page, the method for jumping to the target display page further includes: determining whether a first page window corresponding to the target display page already exists in the window pool; if the first page window already exists in the window pool, reusing the data content corresponding to the first page window to the first page window.
[0011] In an exemplary embodiment, before or after determining whether a first page window corresponding to the target display page already exists in the window pool, the method for jumping to the target display page further includes: determining the last usage time of all page windows existing in the window pool; and if the difference between the last usage time and the current time of a second page window in all page windows exceeds a preset threshold, the second page window is removed from the window pool.
[0012] In one exemplary embodiment, opening a blank tab page using the target open window method includes: determining the interception rate of opening the blank tab page using the target open window method in the current browser's operating environment based on the current browser's historical page opening records; and if the interception rate is determined to be greater than a preset interception rate, opening the blank tab page via form submission or embedded frame injection.
[0013] According to another aspect of the embodiments of this application, a target display page jump device is also provided, comprising: an opening module, configured to open a blank tab page using a target opening window method upon receiving a click event of a target object, wherein the click event is used to open the target display page; a loading module, configured to render a guide page on the blank tab page and asynchronously load data content required to display the target display page in the background, wherein the guide page displays at least the following information: progress information of loading the data content, and prompt information for canceling the display of the guide page; and a jump module, configured to cancel the display of the guide page and jump to the target display page when the data content is loaded.
[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described target display page jump method when it is run.
[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the target display page jump method through the computer program.
[0016] This application allows for the determination of the interception rate when a user requests a redirect to a target page, based on the current browser's runtime environment, if the interception probability is low. If a blank tab is opened first, a loading page is rendered within that blank tab, while the target page's content is asynchronously loaded in the background. Once loading is complete, the user is redirected to the target page. This technical solution addresses the issue of improving the user experience during page navigation, thereby enhancing the overall user experience. Attached Figure Description
[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and, together with the description thereof, serve to explain this application and do not constitute an undue limitation thereof. In the drawings:
[0018] Figure 1 This is a hardware structure block diagram of a computer terminal that executes the target display page jump method according to the embodiments of this application;
[0019] Figure 2 This is a flowchart of a method for redirecting to a target display page according to an embodiment of this application;
[0020] Figure 3This is a schematic flowchart of a method for redirecting a target display page according to an embodiment of this application;
[0021] Figure 4 This is a structural block diagram of a target display page redirection device according to an embodiment of this application. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0023] It should be noted that the terms and terms such as "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0025] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0026] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal that executes the target display page redirection method according to embodiments of this application. For example... Figure 1 As shown, a computer terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 configured to store data are also included. In one exemplary embodiment, the computer terminal may further include a transmission device 106 configured for communication and an input / output device 108. Those skilled in the art will understand that… Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 Equivalent functions or ratios shown Figure 1 The functions shown have more different configurations.
[0027] The memory 104 may be configured to store computer programs, such as application software programs and modules, like the computer program corresponding to the target display page jump method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0028] The transmission device 106 is configured to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
[0029] This embodiment provides a method for redirecting to a target display page. Figure 2 This is a flowchart of a method for redirecting to a target display page according to an embodiment of this application. The process includes the following steps:
[0030] Step S202: Upon receiving a click event from the target object, determine the interception rate of opening a blank tab page using the target opening window method in the current browser's operating environment based on the browser's historical page opening records. If the interception rate is determined to be less than a preset interception rate, open the blank tab page using the target opening window method. The click event is used to open the target display page.
[0031] Step S204: Render a guide page on the blank label page, and asynchronously load the data content required to display the target display page in the background. The guide page displays at least the following information: progress information of loading the data content, and prompt information for canceling the display of the guide page.
[0032] Step S206: After the data content has been loaded, the guide page is canceled and the user is redirected to the target display page.
[0033] Optionally, in the above steps, the click event of the target object can be a button or link clicked by the user. For example, on an e-commerce website, when a user clicks the "View Product Details" button, the system captures the click event, opens a blank about:blank page using the window.open method, and immediately displays a guide interface with a rotating loading icon and the text "Page loading, please wait..." on that page. At the same time, the background initiates an asynchronous request to retrieve product details data. The guide interface can also include a "Cancel" button, which the user can click to close the window. When the product data is loaded, the guide interface disappears, and the page automatically redirects to the product details page.
[0034] By following the steps above, when a user requests to redirect to the target page, the system can determine the interception rate of opening the target page as a blank page in the current browser environment. If the interception probability is low, a blank tab is opened first, followed by the rendering of the onboarding page within that blank tab. Simultaneously, the content of the target page is asynchronously loaded in the background. After loading is complete, the user is redirected to the target page. This technical solution addresses the issue of improving the user experience during page navigation, thereby enhancing the overall user experience.
[0035] In one exemplary embodiment, asynchronously loading the data content required to display the target display page in the background includes: creating an asynchronous task queue in the background, wherein the asynchronous task queue includes multiple tasks, each of which is used to control the loading progress of multiple types of data sub-content included in the data content; setting a monitoring object for each of the multiple tasks, each monitoring object being used to monitor the execution status of the corresponding task; and executing the multiple tasks in the asynchronous task queue in a target order to asynchronously load the data content in the background.
[0036] Optionally, in the above embodiments, for example, when loading a product details page containing images, text, and videos, the asynchronous task queue can contain multiple tasks: Task1 loads product information (such as product description, price, and images), Task2 loads permission verification information, and Task3 loads API call information. Each task has a corresponding Promise object (an object in JavaScript used to handle asynchronous operations) as a monitoring object to track whether the task has been completed. The system executes these three tasks in a specified order, for example, first performing permission verification, then making API calls, and finally loading product information, and updates the progress bar display in the onboarding interface after each task is completed.
[0037] Optionally, in the above embodiments, the asynchronous task queue uses an array structure to manage multiple Promise objects (a special object in JavaScript used to handle asynchronous operations (such as timers, network requests, file reading, etc.), representing the final result of an operation that is not yet completed but is expected to be completed in the future), with each Promise corresponding to a data sub-content loading task. Monitoring objects are implemented through event listeners, such as monitoring sub-tasks like loading user basic information, permission verification, and real-time data acquisition. The target order can be configured to be executed serially or in parallel according to business needs. In serial execution, the async / await syntax is used to implement dependencies between tasks, ensuring that critical data is loaded first.
[0038] In an exemplary embodiment, the method for redirecting the target display page during the asynchronous loading of data content in the background by executing multiple tasks in the asynchronous task queue according to a target order further includes: if the target order is that the multiple tasks are executed sequentially, obtaining the execution result of the currently executed task; if the execution result of the currently executed task fails, pausing the execution of the next task of the currently executed task and continuing to execute the currently executed task until the execution result of the currently executed task is successful.
[0039] Optionally, in the above embodiments, for example, when executing Task2, Task3, and Task1 in sequence, if Task1 fails to load product information (e.g., due to network timeout), the system will pause the execution of Task1 and automatically retry Task1 until Task1 successfully loads the information.
[0040] Optionally, in the above embodiments, when a critical task (such as user identity token verification) fails, the system will automatically implement a retry mechanism. The number of retries is configurable (e.g., up to 3 times), and the interval between each retry adopts an exponential backoff strategy. After multiple retries fail, the system will mark the task as ultimately failed and jump to the error handling process, while displaying the specific error cause and solution suggestions to the user, thus avoiding the interruption of the entire process due to a single point of failure.
[0041] In one exemplary embodiment, before redirecting to the target display page, the redirection method further includes: verifying whether the target display page is within a preset whitelist and verifying whether the temporary token used to access the target display page is valid; if it is determined that the target display page is within the preset whitelist and the temporary token is valid, redirecting to the target display page; if it is determined that the target display page is not within the preset whitelist and / or the temporary token is not valid, redirecting to a security prompt page.
[0042] Optionally, in the above embodiments, for example, if the target URL is "https: / / ***.com / page1", the system will check whether the domain name is in the pre-configured whitelist, and at the same time check whether the token passed from the click event is valid (e.g., valid for 10 minutes after generation). If both are valid, the system will redirect; if the domain name is not in the whitelist or the token is invalid, the system will redirect to a security warning page displaying "The redirect link is insecure or has expired".
[0043] Optionally, in the above embodiments, the preset whitelist uses a hash table structure to store the list of trusted domain names, and efficient matching is achieved through URL parsing and hash lookup during verification. Temporary tokens are issued by the server and have an expiration date; during verification, a lightweight request is sent to the authentication service to verify the token's validity. The security alert page provides a risk description and a link back to the homepage, and also records this abnormal redirection event for security auditing.
[0044] Optionally, in the above embodiments, the preset whitelist can use a hash table structure to store a list of trusted domain names, and efficient matching can be achieved through URL parsing and hash lookup during verification. Temporary tokens are issued by the server and have an expiration time (e.g., valid for 5 minutes). During verification, a lightweight request is sent to the authentication service to verify the token's validity. The security alert page provides a risk description and a link back to the homepage, and records this abnormal redirection event for security auditing to prevent malicious activities such as phishing.
[0045] In one exemplary embodiment, before jumping to the target display page, the method for jumping to the target display page further includes: determining whether a first page window corresponding to the target display page already exists in the window pool; if the first page window already exists in the window pool, reusing the data content corresponding to the first page window to the first page window.
[0046] Optionally, in the above embodiments, for example, if a user clicks the "Video Center" link multiple times, the system maintains a window pool object (such as windowPool) to store window references with the target URL as the key. When the user clicks again, the system first checks if a window corresponding to that URL already exists in the windowPool. If it does, the system reuses that window and refreshes its content instead of opening a new window.
[0047] Optionally, in the above embodiments, the window pool can be maintained using a Map data structure, with the key name being the canonical URL of the target page (including parameter hash values) and the key value being the corresponding window object reference. The reuse process first calls the window.focus() method to bring the existing window to the foreground, and then updates the window content to the latest state using the location.replace() method to avoid redundancy in browser history. For single-page applications that need to maintain state, the target window is notified to update its internal data.
[0048] In an exemplary embodiment, before or after determining whether a first page window corresponding to the target display page already exists in the window pool, the method for jumping to the target display page further includes: determining the last usage time of all page windows existing in the window pool; and if the difference between the last usage time and the current time of a second page window in all page windows exceeds a preset threshold, the second page window is removed from the window pool.
[0049] Optionally, in the above embodiments, for example, the system iterates through the window pool every 5 minutes and checks the last usage time of each window (e.g., recorded via the lastUsed timestamp). If a window has not been used for more than 30 minutes, it is automatically closed and removed from the pool, releasing browser memory resources.
[0050] In one exemplary embodiment, opening a blank tab page using the target open window method includes: determining the interception rate of opening the blank tab page using the target open window method in the current browser's operating environment based on the current browser's historical page opening records; and if the interception rate is determined to be greater than a preset interception rate, opening the blank tab page via form submission or embedded frame injection.
[0051] Optionally, in the above embodiments, for example, if the system detects that the browser has been blocked 7 out of the past 10 attempts to use window.open in this environment (blocking rate of 70%), which is higher than the preset 50% threshold, then it will automatically switch to creating a form and submitting it. Alternatively, it can inject via an embedded frame, first creating a hidden iframe (embedded frame) to load the target URL, and then moving its content to a new window after loading is complete.
[0052] Optionally, in the above embodiments, the interception rate is calculated based on browser type identification and historical operation statistics. Mobile WebView environments or browsers with pop-up blockers enabled are automatically marked as high-risk environments. Form submission is achieved by dynamically creating a hidden form and triggering a submit event; the embedded frame injection method first creates a hidden iframe to load the target URL, and then migrates its content to a new window after loading. The system continuously learns the successful open rate in different environments and dynamically adjusts the strategy selection threshold.
[0053] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the above-described method for redirecting to the target display page, the process is described below in conjunction with embodiments, but this is not intended to limit the technical solutions of the embodiments of this application. Specifically:
[0054] In an optional embodiment, combined with Figure 3 The method for redirecting to the target display page in this application is further explained. Specifically, as follows... Figure 3 As shown:
[0055] S301: Respond to user click events on target elements (such as buttons or links) on the page;
[0056] S302: Open a blank about:blank window using the window.open method;
[0057] S303: Immediately render the onboarding page in the blank page window, which includes a loading animation, a "Page Preparing" text prompt, and a progress indicator;
[0058] S304: Perform asynchronous tasks in the background, including loading target page data, calling interfaces, and performing permission checks;
[0059] S305: Perform security checks on the target URL before redirection, including verifying whether it is on the trusted domain whitelist and checking the validity of the access token;
[0060] S306: If the security check passes, the window will redirect to the target URL; if it fails, the window will redirect to the security warning page.
[0061] S307: Updates the window pool state, reusing existing windows or releasing idle window resources to avoid memory leaks.
[0062] Through the above embodiments, security verification of the target page's URL enables the stable and controllable opening of new windows under the browser's security policy. By opening the target page on a blank page and asynchronously loading page content, the problems of opening failure and white screen caused by browser blocking are effectively avoided, improving the compatibility of page redirection. The rendering of the guide page significantly improves the user experience. At the same time, window reuse and asynchronous control optimize resource utilization efficiency and business flexibility.
[0063] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0064] This embodiment also provides a target display page redirection device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0065] Figure 4 This is a structural block diagram of a target display page redirection device 40 according to an embodiment of this application. The device includes:
[0066] The module 42 is used to determine the interception rate of opening a blank tab page using the target opening window method in the current browser's operating environment based on the current browser's history page opening records when a click event of the target object is received. If the interception rate is determined to be less than a preset interception rate, the blank tab page is opened using the target opening window method. The click event is used to open the target display page.
[0067] The loading module 44 is used to render a guide page on the blank label page and asynchronously load the data content required to display the target display page in the background. The guide page displays at least the following information: progress information of loading the data content and prompt information for canceling the display of the guide page.
[0068] The jump module 46 is used to cancel the display of the guide page and jump to the target display page when the data content has been loaded.
[0069] The target page redirection device according to the embodiments of this application can, upon receiving a user's request to redirect to the target page, determine the interception rate of opening the target page through a blank page in the current browser's operating environment. If the interception probability is relatively low, a blank tab page is opened first, and then a guide page is rendered on the blank tab page. Simultaneously, the content of the target page is asynchronously loaded in the background. After loading is complete, the user is redirected to the target page. By adopting the above technical solution, the problem of how to improve the user experience when performing page redirection operations is solved, thereby achieving the effect of improving the user experience when performing page redirection operations.
[0070] In one exemplary embodiment, the loading module 44 is configured to create an asynchronous task queue in the background, wherein the asynchronous task queue includes multiple tasks, each of which is used to control the loading progress of multiple types of data sub-contents included in the data content; set a monitoring object for each of the multiple tasks, each monitoring object being used to monitor the execution status of the corresponding task; and execute the multiple tasks in the asynchronous task queue in a target order to asynchronously load the data content in the background.
[0071] In an exemplary embodiment, the loading module 44 is configured to, when the target order is that the plurality of tasks are executed sequentially, obtain the execution result of the currently executed task; and, when the execution result of the currently executed task is a failure, suspend the execution of the next task of the currently executed task and continue to execute the currently executed task until the execution result of the currently executed task is a success.
[0072] In an exemplary embodiment, the redirection module 46 is configured to verify whether the target display page is within a preset whitelist and to verify whether the temporary token used to access the target display page is valid; if it is determined that the target display page is within the preset whitelist and the temporary token is valid, the redirection module 46 redirects to the target display page; if it is determined that the target display page is not within the preset whitelist and / or the temporary token is not valid, the redirection module 46 redirects to a security warning page.
[0073] In an exemplary embodiment, the jump module 46 is used to determine whether a first page window corresponding to the target display page already exists in the window pool; if the first page window already exists in the window pool, the data content corresponding to the first page window is reused in the first page window.
[0074] In an exemplary embodiment, the jump module 46 is configured to determine the last usage time of all page windows in the window pool; if the difference between the last usage time and the current time of a second page window in all page windows exceeds a preset threshold, the second page window is removed from the window pool.
[0075] In an exemplary embodiment, the opening module 42 is configured to determine, based on the current browser's historical page opening records, the interception rate of opening the blank tab page using the target opening window method in the current browser's operating environment; if the interception rate is determined to be greater than a preset interception rate, the blank tab page is opened via form submission or embedded frame injection.
[0076] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the above embodiments when it is run.
[0077] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0078] S1, upon receiving a click event on the target object, determine the interception rate of opening a blank tab page using the target opening window method in the current browser's operating environment based on the browser's history page opening records. If the interception rate is determined to be less than a preset interception rate, open the blank tab page using the target opening window method. The click event is used to open the target display page.
[0079] S2, render a guide page on the blank label page, and asynchronously load the data content required to display the target display page in the background. The guide page displays at least the following information: progress information of loading the data content, and prompt information to cancel displaying the guide page.
[0080] S3, once the data content has been loaded, the guide page is canceled and the user is redirected to the target display page.
[0081] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0082] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0083] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0084] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0085] S1, upon receiving a click event on the target object, determine the interception rate of opening a blank tab page using the target opening window method in the current browser's operating environment based on the browser's history page opening records. If the interception rate is determined to be less than a preset interception rate, open the blank tab page using the target opening window method. The click event is used to open the target display page.
[0086] S2, render a guide page on the blank label page, and asynchronously load the data content required to display the target display page in the background. The guide page displays at least the following information: progress information of loading the data content, and prompt information to cancel displaying the guide page.
[0087] S3, once the data content has been loaded, the guide page is canceled and the user is redirected to the target display page.
[0088] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0089] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0090] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0091] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for jumping to a target display page, characterized in that, The method comprises the following steps: In the case of receiving a click event of a target object, determining an interception rate of opening a blank tab page in a target opening window mode in the running environment of the current browser according to the history page opening record of the current browser, and opening the blank tab page in the target opening window mode in the case of determining that the interception rate is less than a preset interception rate, wherein the click event is used to open a target display page; Rendering a guide page on the blank tab page, and asynchronously loading data content required for displaying the target display page in the background, wherein the guide page displays at least the following information: progress information of loading the data content, and prompt information for canceling display of the guide page; In the case of completing the loading of the data content, canceling the display of the guide page, and jumping to the target display page.
2. The method of claim 1, wherein, Asynchronously loading data content required for displaying the target display page in the background, comprising: Creating an asynchronous task queue in the background, wherein the asynchronous task queue comprises a plurality of tasks, and the plurality of tasks are respectively used to control the loading progress of a plurality of types of data sub-contents included in the data content; Setting a monitoring object for each task in the plurality of tasks, and each monitoring object is used to monitor the execution state of the corresponding task; Executing the plurality of tasks in the asynchronous task queue in a target order to asynchronously load the data content in the background.
3. The method of claim 2, wherein, During the process of executing the plurality of tasks in the asynchronous task queue in the target order to asynchronously load the data content in the background, the method further comprises: In the case that the target order is a serial execution of the plurality of tasks, obtaining an execution result of a currently executed task; In the case that the execution result of the currently executed task is failure, pausing execution of a next task of the currently executed task, and continuing to execute the currently executed task until the execution result of the currently executed task is success.
4. The method of claim 1, wherein, Before jumping to the target display page, the method further comprises: Verifying whether the target display page is located in a preset white list, and verifying whether a temporary token for accessing the target display page is in a valid state; In the case that the target display page is located in the preset white list and the temporary token is in the valid state, jumping to the target display page; In the case that the target display page is not located in the preset white list and / or the temporary token is not in the valid state, jumping to a security prompt page.
5. The method of claim 1, wherein, Before jumping to the target display page, the method further comprises: Determining whether a first page window corresponding to the target display page exists in a window pool; In the case that the first page window exists in the window pool, reusing the data content corresponding to the first page window to the first page window.
6. The method of claim 5, wherein, Before or after determining whether the first page window corresponding to the target display page exists in the window pool, the method further comprises: Determining the last use time of all page windows existing in the window pool; In a case where a difference between the last use time of a second page window in the all page windows and the current time exceeds a preset threshold, the second page window is cleared from the window pool.
7. The method of claim 1, wherein, In a case where a click event of a target object is received, the method further includes: determining an interception rate of opening the blank tab page using the target opening window mode under a running environment of the current browser according to a history page opening record of the current browser; in a case where the interception rate is greater than a preset interception rate, opening the blank tab page through a form submission mode or an embedded frame injection mode.
8. A jump apparatus of a target display page, characterized by, comprise: an opening module, configured to, in a case where a click event of a target object is received, determine an interception rate of opening a blank tab page using a target opening window mode under a running environment of a current browser according to a history page opening record of the current browser, and in a case where the interception rate is less than a preset interception rate, open the blank tab page using the target opening window mode, wherein the click event is used to open a target display page; a loading module, configured to render a guide page on the blank tab page, and asynchronously load data content required for displaying the target display page in the background, wherein the guide page displays at least the following information: progress information of loading the data content, and prompt information for canceling display of the guide page; a jump module, configured to, in a case where the data content is loaded, cancel display of the guide page, and jump to the target display page.
9. A computer readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 7. 10.An electronic device comprising a memory and a processor, the electronic device characterized by, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program. The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 7 through the computer program.