Loading method and loading device of application page

By monitoring the exception process to obtain exception information and setting a fallback switch, the real-time issue of application page loading exceptions is resolved, achieving fast loading and a high user experience, avoiding loading failures, and improving the practicality of the method.

CN112241300BActive Publication Date: 2025-12-16BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910654157.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-19
Publication Date
2025-12-16
Estimated Expiration
2039-07-19

AI Technical Summary

Technical Problem

In existing technologies, when an application page loads abnormally, real-time performance cannot be guaranteed, which affects user experience. Furthermore, methods requiring manual intervention cannot meet real-time requirements.

Method used

By monitoring the abnormal process to obtain abnormal information, setting a degradation switch for both local and server sides, the degradation switch is intelligently turned on when the number of abnormal loads exceeds a preset number, and the load is performed using the pre-stored degradation configuration, avoiding manual intervention.

Benefits of technology

This approach enables real-time loading when application pages encounter errors, reducing troubleshooting time, improving user experience, preventing loading failures due to network issues, and enhancing the method's practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241300B_ABST
    Figure CN112241300B_ABST
Patent Text Reader

Abstract

The application discloses a loading method and a loading device of an application page, and relates to the technical field of computers. A specific implementation of the method comprises the following steps: an exception monitoring process is used to capture exception information, and the exception information is analyzed to obtain the number of times of abnormal loading of a target application page within a preset time; in the case that the number of times of abnormal loading is greater than a preset number of times, a user is requested whether to open a local downgrade switch corresponding to the target application page; in the case that the request is accepted, the target application page is loaded by using a downgrade configuration stored locally in advance; and in the case that the request is rejected, the target application page is loaded according to a server downgrade switch corresponding to the target application page. The implementation sets the local downgrade switch and the server downgrade switch, and in the case that the number of times of abnormal loading is greater than the preset number of times, the downgrade switch can be intelligently opened, the page loading is completed, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a loading method and loading device of application page. BACKGROUND

[0002] The advent of the information age, users are increasingly dependent on mobile devices, which promotes the rapid development of application program (Application, APP for short). Through the APP, the display of web pages on mobile devices can be realized, which greatly facilitates the user, so whether it is a user or a third-party service provider is concerned about the development and operation of APP. When users use the APP, they will encounter problems of abnormal loading of application pages, which leads to the inability to normally use the APP.

[0003] The current main methods to solve the problem of abnormal loading of application pages are as follows: (1) programmers modify the code through exception information, and after testing, iterate to the next version requirement of the APP, and update with the next version requirement; (2) hot repair based on ReactNative, which is because ReactNative is written in a scripting language JavaScript, which can realize the hot update and timely release of the APP like a web page; (3) when the manager finds that a certain application page is very serious, the downgrade switch can be manually opened in the server configuration, and the user can directly open the prepared web page.

[0004] In the process of implementing the present application, the inventors have found that the prior art has at least the following problems: (1) in the method of solving the abnormal loading by using the next version, the cycle is too long, which cannot guarantee real-time performance and affects user experience; (2) in the method of hot repair based on ReactNative and manual degradation, manual intervention is required, which cannot guarantee real-time performance and also affects user experience. SUMMARY

[0005] Therefore, the embodiments of the present application provide a loading method and loading device of application page, which set local downgrade switch and server downgrade switch, and can intelligently open the downgrade switch when the number of abnormal loading is greater than the preset number, complete page loading, and improve user experience.

[0006] To achieve the above object, according to the first aspect of the embodiments of the present application, a loading method of application page is provided.

[0007] The application page loading method of the embodiment of the application comprises: capturing abnormal information by using an abnormal monitoring process, analyzing the abnormal information to obtain an abnormal loading number of a target application page within a preset time; in a case where the abnormal loading number is greater than a preset number, requesting a user whether to open a local degradation switch corresponding to the target application page; in a case where the request is accepted, loading the target application page by using a degradation configuration stored locally in advance; and in a case where the request is rejected, loading the target application page according to a server degradation switch corresponding to the target application page.

[0008] Optionally, before requesting the user whether to open the local degradation switch corresponding to the target application page, the method further comprises: after starting an application to which the target application page belongs, sending a degradation configuration request of the target application page to a server, then receiving a degradation configuration returned by the server, and storing the degradation configuration locally; the degradation configuration is a uniform resource locator configured for the target application page.

[0009] Optionally, the method further comprises: in a case where the abnormal loading number is less than or equal to a preset number, reloading the target application page or restarting the application to which the target application page belongs.

[0010] Optionally, the loading of the target application page according to the server degradation switch corresponding to the target application page comprises: judging whether the server degradation switch is opened, if yes, obtaining Web data corresponding to the target application page stored by a server, and directly responding to the Web data corresponding to the target application page by using Webview.

[0011] Optionally, the method further comprises: if the server degradation switch is in a closed state within a preset period, sending a request of opening the server degradation switch to the server.

[0012] To achieve the above object, according to a second aspect of the embodiment of the application, an application page loading device is provided.

[0013] The application page loading device of the embodiment of the application comprises: an acquisition module, configured to capture abnormal information by using an abnormality monitoring process, and analyze the abnormal information to obtain an abnormal loading number of a target application page within a preset time; a request module, configured to request a user whether to open a local downgrade switch corresponding to the target application page in a case where the abnormal loading number is greater than a preset number; a first loading module, configured to load the target application page by using a pre-stored local downgrade configuration in a case where the request is accepted; and a second loading module, configured to load the target application page according to a server downgrade switch corresponding to the target application page in a case where the request is rejected.

[0014] Optionally, the request module is further configured to send a downgrade configuration request of the target application page to a server after starting an application to which the target application page belongs, receive a downgrade configuration returned by the server, and store the downgrade configuration locally; and the downgrade configuration is a uniform resource locator configured for the target application page.

[0015] Optionally, the device further comprises a restart module, configured to reload the target application page or restart an application to which the target application page belongs in a case where the abnormal loading number is less than or equal to a preset number.

[0016] Optionally, the request module is further configured to determine whether the server downgrade switch is opened, and if yes, obtain Web data corresponding to the target application page stored by a server, and directly respond to the Web data corresponding to the target application page through a Webview.

[0017] Optionally, the request module is further configured to send a request to open the server downgrade switch to the server in a case where the server downgrade switch is in a closed state within a preset period.

[0018] To achieve the above object, according to a third aspect of the embodiment of the application, an electronic device is provided.

[0019] The electronic device of the embodiment of the application comprises one or more processors, and a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the application page loading method of the embodiment of the application.

[0020] To achieve the above object, according to a fourth aspect of the embodiment of the application, a computer readable medium is provided.

[0021] The computer readable medium of the embodiment of the application has a computer program stored thereon, and the program is executed by a processor to implement the application page loading method of the embodiment of the application.

[0022] An embodiment of the above application has the following advantages or beneficial effects: because the abnormal monitoring process is used to obtain abnormal information, the number of abnormal loads can be determined, and the local downgrade switch and the server downgrade switch are set, in the case that the number of application page abnormal loads exceeds the preset number, the downgrade switch can be intelligently opened to complete the page load, so the problem that the real-time performance cannot be guaranteed in the existing application page loading method is overcome, the effect that the application page can be directly opened is achieved, and the user experience is not affected. In addition, in the application page loading method of the embodiment of the application, after the application is started, the server is requested to request the downgrade configuration of the application page, and the downgrade configuration is saved locally, so that the downgrade configuration is directly called, the effect that the application page is directly loaded is achieved, the solution time of the page load exception is further reduced, and the user experience is improved. In addition, in the application page loading method of the embodiment of the application, in the case that the number of exceptions is less than or equal to the preset number, the application page is reloaded or the application is restarted, so that the problem of application page load failure caused by network failure or other problems can be avoided, and the practicability of the scheme is improved.

[0023] The further effects of the above-mentioned non-conventional optional mode will be described in the following combined with the specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0024] The accompanying drawings are used to better understand the application, and do not constitute undue limitations on the application. Among them:

[0025] Figure 1 is a schematic diagram of the main steps of the application page loading method according to the embodiment of the application;

[0026] Figure 2 is a schematic diagram of the main flow of the application page loading method according to the embodiment of the application;

[0027] Figure 3 is a schematic diagram of the main modules of the application page loading device according to the embodiment of the application;

[0028] Figure 4 is an exemplary system architecture diagram to which the embodiment of the application can be applied;

[0029] Figure 5 is a structural schematic diagram of a computer system of a terminal device or a server suitable for implementing the embodiment of the application. DETAILED DESCRIPTION

[0030] Exemplary embodiments of the present application are described herein below with reference to the accompanying drawings, in which various details are set forth to provide an understanding of the application. It will be apparent, however, to one skilled in the art that these embodiments are not intended to limit the application, and that various changes and modifications can be made thereto without departing from the spirit and scope of the application. Also, the description below is merely illustrative of the principles of the application and is in no way intended to limit the scope of the application. For clarity and conciseness, descriptions of well-known functions and constructions are omitted.

[0031] When using the APP, the application page loading exception situation suddenly appears, and sometimes it appears continuously, which causes the user to be unable to use normally, causes the user's repulsion, and reduces the user experience. At present, to solve this problem, the staff generally pulls down the monitoring data on the monitoring platform to analyze, manually processes the abnormal information when the abnormal information is found, and simultaneously makes corresponding configuration on the server, hot fixes or manually degrades. However, when the prior art solves the problem of abnormal loading of the application page, manual intervention is required, real-time performance cannot be guaranteed, and user experience is affected. Therefore, in order to solve the above problems, the application provides an application page loading method, which can analyze the specific abnormal business module through the collected abnormal data, and then intelligently open the degradation switch, so that the application page can be directly opened by using the webpage, without affecting the normal use of the user.

[0032] Figure 1 FIG. 1 is a schematic diagram of main steps of an application page loading method according to an embodiment of the present application. As a reference embodiment of the present application, as shown in FIG. 1, the main steps of the application page loading method of the embodiment of the present application can include steps S101 to S104. Figure 1

[0033] Step S101: Abnormal information is captured by using an abnormal monitoring process, and the abnormal information is analyzed to obtain the abnormal loading times of the target application page within a preset time.

[0034] In the embodiment of the present application, the local mobile device end registers the abnormal monitoring process, and the process is used to capture abnormal information. When the APP exception is captured, the abnormal stack information is obtained, and the abnormal stack information is analyzed, and the main information analyzed is written into the local file. The local file here refers to the local storage, that is, the storage in the mobile device end, and the main information analyzed can include: calling opportunity, stack information, and the number of times of generating exceptions. It should be noted that the abnormal monitoring process continuously monitors the APP exception, and is not exited after capturing the abnormal information once. In addition, the abnormal loading times of the target application page within a preset time are obtained in step S101, for example, the abnormal times are counted within 6 seconds from the opening of the target application page to the exception, and the purpose of this is to count the abnormal loading times in the recent period of time, so as to avoid adding the abnormal loading times of the previous period of time, and to improve the practicability of the present application.​

[0035] Step S102: In the case that the number of abnormal loading times is greater than the preset number of times, request the user whether to open the local downgrade switch corresponding to the target application page.

[0036] After the abnormal loading times of the target application page are obtained by the abnormal monitoring process registered in the local mobile device in step S101, it is determined in step S102 whether the abnormal loading times are greater than the preset number of times. As another embodiment of the present application, if the abnormal loading times are less than or equal to the preset number of times, the target application page is reloaded or the application to which the target application page belongs is restarted. For example, if the user opens the collection page of a shopping APP and an abnormality occurs, in the case that the number of abnormal times is less than or equal to the preset number of times, the collection page is reloaded or the shopping APP is restarted.

[0037] If the number of abnormal loading times is greater than the preset number of times, for example, within 6s from the time when the target application page is opened to the time when the abnormality occurs, the abnormal monitoring process detects more than 3 consecutive abnormal conditions, and sends a request to the user to ask whether to open the local downgrade switch corresponding to the target application page, that is, to prompt the user whether to allow to repair the abnormality. For example, when the number of abnormal times reaches 3 or more, a window is popped up to ask the user whether to repair the abnormality of the target application page, and if the user clicks to agree, it means to repair the abnormality, that is, to open the local downgrade switch. Of course, a voice can also be sent to the user to ask whether to repair the abnormality of the target application page. In addition, other ways can also be used to ask the user whether to repair the abnormality, which is not limited here. For example, if the user opens the shopping cart page of a shopping APP and an abnormality occurs, in the case that the number of abnormal times is greater than the preset number of times, a window is popped up to ask the user whether to repair the abnormality of the shopping cart page.

[0038] The local downgrade switch in the embodiment of the application refers to a configuration option. If the local downgrade switch is opened, the target application page can be loaded by Webview (i.e., a web page attempt), and if the local downgrade switch is closed, the target application page can be loaded by ReactNative. ReactNative is an open source framework based on JavaScript launched by Facebook in 2015. Through ReactNative, native applications can be developed on the basis of Javascript and React. Currently, ReactNative can support both iOS and Android platforms, and has been widely used in product development. When developing an APP by using the ReactiveNative framework, multiple JS files will be generated when writing business logic, and the ReactiveNative will package these JS files into a bundle file when packaging. All JS codes (including ReactiveNative source code, third-party libraries and business logic codes) are in this file, and the bundle file will be loaded first when starting the APP.

[0039] In the application page loading method of the embodiment of the application, after starting the application, the downgrade configuration of the application page is requested from the server, and the downgrade configuration is saved locally, so that the downgrade configuration is directly called, the effect of directly loading the application page is achieved, the solution time of the page loading exception is further reduced, and the user experience is improved. Therefore, as another reference embodiment of the application, before step S102 requests the user whether to open the local downgrade switch corresponding to the target application page, the application page loading method can further include: after starting the application to which the target application page belongs, sending a downgrade configuration request of the target application page to the server, then receiving the downgrade configuration returned by the server, and storing the downgrade configuration locally, wherein the downgrade configuration is a uniform resource locator configured for the target application page. In the technical solution, when loading the bundle file, the APP requests the server whether there is downgrade information, if there is, the downgrade configuration is stored locally. That is, under the condition that the APP is started, the server is queried whether there is downgrade information, if the request is successful, the downgrade configuration is stored locally. In the embodiment of the application, the downgrade configurations of various businesses are stored in the server, that is, the uniform resource locator is configured for the business developed by using the ReactiveNative. Of course, if the server does not have the downgrade configuration of the target application page, the downgrade configuration of the target application page cannot be requested at this time, and neither the local downgrade switch nor the server downgrade switch is enabled. In this case, the user cannot successfully open the target application page, and can only wait for the staff to handle it.

[0040] Step S103: in the case of the request being accepted, loading the target application page by using the pre-stored local downgrade configuration;

[0041] Step S104: in the case of the request being rejected, loading the target application page according to the server-side downgrade switch corresponding to the target application page.

[0042] In step S102, the user is requested whether to open the local downgrade switch corresponding to the target application page, if the user agrees, step S103 is executed to load the target application page by using the pre-stored local downgrade configuration, if the user disagrees, the server-side downgrade switch is used to realize the loading of the target application page. The local downgrade switch is introduced above, and the downgrade in the embodiment of the application can be controlled by the server side and the local side, that is, controlled by the server-side downgrade switch and the local downgrade switch. In addition, the local control authority is greater than the server control authority, in the case of the local downgrade switch not being opened, the server-side downgrade switch is used as the criterion, and after the local downgrade switch is opened, the server-side downgrade switch is ignored. In the embodiment of the application, loading the target application page according to the server-side downgrade switch corresponding to the target application page can include: judging whether the server-side downgrade switch is opened, if yes, obtaining the Web data corresponding to the target application page stored by the server, and directly responding to the Web data corresponding to the target application page through the Webview. In addition, in the embodiment of the application, if the server-side downgrade switch is in the closed state within a preset period, a request of opening the server-side downgrade switch is sent to the server. In the case that the user does not allow to repair the exception, the APP cannot be normally used until the server monitors the exception phenomenon and opens the control switch of the server, at this time, if the user uses the APP again, the business that appears the exception can be directly loaded through the webpage.

[0043] Figure 2 is a schematic diagram of the main flow of the application page loading method according to the embodiment of the application. As a reference embodiment of the application, the main flow of the application page loading method can include:

[0044] Step S201: after starting the application to which the target application page belongs, sending a downgrade configuration request of the target application page to the server, receiving the downgrade configuration returned by the server, and storing the downgrade configuration locally, wherein the downgrade configuration is a uniform resource locator configured for the target application page;

[0045] Step S202: using an exception monitoring process to capture exception information, and analyzing the captured exception information to obtain the number of times of abnormal loading of the target application page within a preset time;

[0046] Step S203: determining whether the number of abnormal loading times of the target application page within the preset time is greater than the preset number, if yes, executing step S204, otherwise, executing step S208;

[0047] Step S204: whether the user agrees to open the local downgrade switch corresponding to the target application page, if yes, executing step S205, otherwise, executing step S206;

[0048] Step S205: loading the target application page by using the pre-stored local downgrade configuration;

[0049] Step S206: determining whether the server downgrade switch is opened, if yes, executing step S207;

[0050] Step S207: obtaining the Web data corresponding to the target application page stored in the server, and directly responding to the Web data corresponding to the target application page through the Webview;

[0051] Step S208: reloading the target application page or restarting the application to which the target application page belongs.

[0052] If the server downgrade switch is in the closed state within the preset period, a request of opening the server downgrade switch is sent to the server. In the case that the user does not allow to repair the exception, the APP cannot be normally used. Within the preset period, the server can monitor that the abnormal loading phenomenon of the application page is serious, and then the control switch of the server can be opened. In this way, if the user opens the target application page of the APP again, the target application page with abnormal loading can be directly loaded through the webpage. In addition, the order of step S201 and step S202 can be adjusted according to the actual situation, as long as they are executed before step S203.

[0053] According to the application page loading technical solution of the embodiment of the present application, because the abnormal monitoring process is adopted to acquire abnormal information, the abnormal loading times can be determined, and the local downgrade switch and the server downgrade switch are set, in the case that the application page abnormal loading times exceed the preset times, the downgrade switch can be intelligently opened to complete the page loading, so the problem that the real-time performance cannot be guaranteed in the existing application page loading method is overcome, the effect that the application page can be directly opened is achieved, and the user experience is not affected. In addition, in the application page loading method of the embodiment of the present application, after the application is started, the downgrade configuration of the application page is requested from the server, and the downgrade configuration is saved locally, so that the downgrade configuration is directly called, the effect that the application page is directly loaded is achieved, the solution time of the page loading exception is further reduced, and the user experience is improved. In addition, in the application page loading method of the embodiment of the present application, in the case that the abnormal times are less than or equal to the preset times, the application page is reloaded or the application is restarted, so that the problem of the application page loading failure caused by network failure or other problems can be avoided, and the practicability of the present solution is improved.

[0054] Figure 3 FIG. 1 is a schematic diagram of main modules of an application page loading device according to an embodiment of the present application. As shown in FIG. 1, the application page loading device 300 according to the embodiment of the present application mainly comprises the following modules: an acquisition module 301, a request module 302, a first loading module 303 and a second loading module 304. Figure 3

[0055] The acquisition module 301 can be used to acquire abnormal information by using an abnormal monitoring process, and analyze the abnormal information to acquire the abnormal loading times of a target application page within a preset time. The request module 302 can be used to request a user whether to open a local downgrade switch corresponding to the target application page in the case that the abnormal loading times are greater than a preset number. The first loading module 303 can be used to load the target application page by using the downgrade configuration stored locally in advance in the case that the request is accepted. The second loading module 304 can be used to load the target application page according to a server downgrade switch corresponding to the target application page in the case that the request is refused.

[0056] In the embodiment of the present application, the request module 302 can also be used to send a downgrade configuration request of the target application page to the server after starting the application to which the target application page belongs, receive the downgrade configuration returned by the server, and store the downgrade configuration locally. The downgrade configuration is a uniform resource locator configured for the target application page.

[0057] ​In the embodiment of the present application, the loading device 300 of the application page can further comprise a restart module (not shown in the figure), which can be used to: in the case that the abnormal loading times are less than or equal to the preset times, reload the target application page or restart the application to which the target application page belongs.

[0058] In the embodiment of the present application, the request module 302 can be further used to: determine whether the server downgrade switch is opened, and if yes, obtain the Web data corresponding to the target application page stored by the server, and directly respond to the Web data corresponding to the target application page through the Webview.

[0059] In the embodiment of the present application, the request module 302 can be further used to: if the server downgrade switch is in the closed state within the preset period, send a request to the server to open the server downgrade switch.

[0060] As can be seen from the above description, the loading device of the application page in the embodiment of the present application can determine the abnormal loading times by using the abnormal monitoring process to obtain the abnormal information, and set the local downgrade switch and the server downgrade switch, and in the case that the abnormal loading times of the application page exceed the preset times, the downgrade switch can be intelligently opened to complete the page loading, so as to overcome the problem that the real-time performance cannot be guaranteed in the existing loading method of the application page, achieve the effect that the application page can be directly opened, and do not affect the user experience. In addition, in the loading method of the application page in the embodiment of the present application, after starting the application, the downgrade configuration of the application page is requested from the server, and the downgrade configuration is saved locally, so as to realize the direct calling of the downgrade configuration, achieve the effect that the application page is directly loaded, further reduce the solution time of the page loading exception, and improve the user experience. Furthermore, in the loading method of the application page in the embodiment of the present application, in the case that the abnormal times are less than or equal to the preset times, the application page is reloaded or the application is restarted, so as to avoid the problem of application page loading failure caused by network failure or other problems, and improve the practicability of the present application.

[0061] Figure 4 An exemplary system architecture 400 to which the loading method of the application page or the loading device of the application page in the embodiment of the present application can be applied is shown.

[0062] As shown in Figure 4 The system architecture 400 can comprise terminal devices 401, 402, 403, a network 404 and a server 405. The network 404 is used to provide a communication link medium between the terminal devices 401, 402, 403 and the server 405. The network 404 can comprise various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0063] The user can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0064] The terminal devices 401, 402, 403 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.

[0065] The server 405 can be a server providing various services, such as a background management server supporting a shopping website browsed by the user using the terminal device 401, 402, 403 (only as an example). The background management server can analyze and process received product information query requests, etc., and feed back the processing results (such as target push information, product information - only as examples) to the terminal device.

[0066] It should be noted that the application page loading method provided by the embodiments of the present application is generally executed by the server 405, and correspondingly, the application page loading device is generally provided in the server 405.

[0067] It should be understood that Figure 4 The number of terminal devices, networks and servers in the above description is only illustrative. Any number of terminal devices, networks and servers can be provided according to the needs of implementation.

[0068] Reference is made to Figure 5 which shows a structural schematic diagram of a computer system 500 of a terminal device suitable for implementing the embodiments of the present application. Figure 5 The terminal device shown is only an example and should not impose any limitation on the functions and use range of the embodiments of the present application.

[0069] As shown in Figure 5 , the computer system 500 includes a central processing unit (CPU) 501 which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or loaded from a storage portion 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0070] The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 510 as necessary, so that a computer program read out therefrom is installed in the storage part 508 as necessary.

[0071] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the system of the present disclosure are executed.

[0072] It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component. In the present application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0073] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different order than that shown in the drawings. For example, two blocks that are shown in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0074] The modules described in the embodiments of the present application can be implemented in the form of software or in the form of hardware. The described modules can also be arranged in a processor, for example, a processor can be described as including an acquisition module, a request module, a first loading module and a second loading module. In some cases, the names of these modules do not constitute a limitation on the modules themselves, for example, the sending unit can also be described as a module that uses an exception monitoring process to capture exception information, analyzes the exception information, and acquires the number of abnormal loads of the target application page within a preset time.

[0075] As another aspect, the present application also provides a computer readable medium, which can be included in the device described in the above embodiments, or can exist independently without being assembled into the device. The computer readable medium carries one or more programs, which, when executed by the device, cause the device to include: using an exception monitoring process to capture exception information, analyzing the exception information, and acquiring the number of abnormal loads of the target application page within a preset time; in the case that the number of abnormal loads is greater than a preset number, requesting the user whether to open a local downgrade switch corresponding to the target application page; in the case that the request is accepted, using the pre-stored local downgrade configuration to load the target application page; in the case that the request is rejected, loading the target application page according to a server downgrade switch corresponding to the target application page.

[0076] According to the technical scheme of the embodiments of the present application, because the exception monitoring process is used to acquire exception information, the number of abnormal loads can be determined, and the local downgrade switch and the server downgrade switch are set, in the case that the number of abnormal loads of the application page exceeds the preset number, the downgrade switch can be intelligently opened to complete page loading, so that the problem that the real-time performance cannot be guaranteed in the existing application page loading method is overcome, the effect that the application page can be directly opened is achieved, and the user experience is not affected. In addition, in the application page loading method of the embodiments of the present application, after starting the application, the downgrade configuration of the application page is requested from the server, and the downgrade configuration is saved locally, so that the downgrade configuration is directly called, the effect that the application page is directly loaded is achieved, the solution time of the page load exception is further reduced, and the user experience is improved. Furthermore, in the application page loading method of the embodiments of the present application, in the case that the number of exceptions is less than or equal to the preset number, the application page is reloaded or the application is restarted, so that the problem of application page loading failure caused by network failure or other problems can be avoided, and the practicality of the present solution is improved.

[0077] The foregoing detailed description has set forth various embodiments of the devices and / or processes via the use of specific terminology. However, embodiments thereof can be practiced with the exact description not being presented in detail. The term "device" should be understood to encompass devices operating in various modes, such as active mode, sleep mode, hibernate mode, and the like. The terms "coupled" and "connected," along with derivatives thereof, can be used. It should be understood that these terms are not intended as synonyms for each other. Rather, particular circuitry that can be said to be coupled to, or connected with, other circuitry can be some of the other circuitry that can communicate in some way, while other circuitry can be some of the other circuitry that can not be in communication with that particular circuitry.

Claims

1. A method for loading an application page, characterized in that, The method comprises the following steps: abnormal information is captured by an abnormal monitoring process, and the abnormal information is analyzed to obtain the number of abnormal loads of a target application page within a preset time; if the number of abnormal loads is greater than a preset number, a request is sent to a user to open a local degradation switch corresponding to the target application page, so as to prompt the user to allow the abnormality to be repaired; if the request is accepted by the user, the target application page is loaded by using a pre-stored local degradation configuration; wherein the local degradation switch is a configuration option, if the local degradation switch is opened, the target application page is loaded by using Webview, and if the local degradation switch is closed, the target application page is loaded by using ReactNative; if the request is rejected by the user, the target application page is loaded according to a server degradation switch corresponding to the target application page.

2. The loading method of claim 1, wherein, Before the request is sent to the user to open the local degradation switch corresponding to the target application page, the method further comprises the following steps: after starting an application to which the target application page belongs, a degradation configuration request of the target application page is sent to a server, then a degradation configuration returned by the server is received, and the degradation configuration is stored locally; the degradation configuration is a uniform resource locator configured for the target application page.

3. The loading method of claim 1, wherein, The method further comprises the following steps: if the number of abnormal loads is less than or equal to the preset number, the target application page is reloaded or the application to which the target application page belongs is restarted.

4. The loading method of claim 1, wherein, The target application page is loaded according to the server degradation switch corresponding to the target application page, comprising the following steps: it is judged whether the server degradation switch is opened, if yes, Web data corresponding to the target application page stored in the server is obtained, and the Web data corresponding to the target application page is directly responded by using Webview.

5. The loading method of claim 4, wherein, The method further comprises the following steps: if the server degradation switch is in a closed state within a preset period, a request is sent to the server to open the server degradation switch.

6. An apparatus for loading an application page, characterized by comprising: The method comprises the following steps: an acquisition module is configured to capture abnormal information by an abnormal monitoring process, and analyze the abnormal information to obtain the number of abnormal loads of a target application page within a preset time; a request module is configured to send a request to a user to open a local degradation switch corresponding to the target application page if the number of abnormal loads is greater than a preset number, so as to prompt the user to allow the abnormality to be repaired; a first loading module is configured to load the target application page by using a pre-stored local degradation configuration if the request is accepted by the user; wherein the local degradation switch is a configuration option, if the local degradation switch is opened, the target application page is loaded by using Webview, and if the local degradation switch is closed, the target application page is loaded by using ReactNative; a second loading module is configured to load the target application page according to a server degradation switch corresponding to the target application page if the request is rejected by the user.

7. The loading device of claim 6, wherein, The request module is further configured to After starting an application to which the target application page belongs, a downgrade configuration request of the target application page is sent to a server, then a downgrade configuration returned by the server is received, and the downgrade configuration is stored locally; The downgrade configuration is a uniform resource locator configured for the target application page.

8. The loading device of claim 6, wherein, The apparatus further includes a restarting module configured to: In a case where the number of abnormal loading times is less than or equal to a preset number, the target application page is reloaded or the application to which the target application page belongs is restarted.

9. The loading device of claim 6, wherein, The requesting module is further configured to: If the server downgrade switch is opened, Web data corresponding to the target application page stored by the server is acquired, and the Web data corresponding to the target application page is directly responded to by a Webview.

10. The loading device of claim 9, wherein, The requesting module is further configured to: If the server downgrade switch is in a closed state within a preset period, a request for opening the server downgrade switch is sent to the server.

11. An electronic device, comprising: Comprise: One or more processors; A storage device configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-5.

12. A computer readable medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Method and device for monitoring running state of React Native code

    CN106528079A

  • Method for displaying page on client and client

    CN107085580A