CN112817658A - Method and device for quickly starting network application - Google Patents

Method and device for quickly starting network application Download PDF

Info

Publication number
CN112817658A
CN112817658A CN202110139484.8A CN202110139484A CN112817658A CN 112817658 A CN112817658 A CN 112817658A CN 202110139484 A CN202110139484 A CN 202110139484A CN 112817658 A CN112817658 A CN 112817658A
Authority
CN
China
Prior art keywords
display page
network application
history information
state history
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110139484.8A
Other languages
Chinese (zh)
Inventor
王伟
罗涛
李思
毕竞元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110139484.8A priority Critical patent/CN112817658A/en
Publication of CN112817658A publication Critical patent/CN112817658A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides a method for quickly starting a network application, including: detecting a start operation for the web application; responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; in parallel, loading and rendering a resource file for starting the network application to obtain a real display page of the network application, wherein the real display page is a display page obtained by actual rendering after the network application is started at the current time; and displaying the real display page, and stopping displaying the state history information. The disclosure also provides a device for rapidly starting the network application, an electronic device and a computer storage medium.

Description

Method and device for quickly starting network application
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for quickly starting a network application.
Background
With the acceleration of the information process, the types and the number of network applications are rapidly developed. The starting time is an important index for evaluating the performance of the network application, and can significantly affect the use experience of the user for the network application, so that shortening the starting time is always an important target for optimizing the network application.
In the process of implementing the technical concept of the present disclosure, the inventor finds that, when a network application is started in the related art, a display page of the network application needs to be presented to a user after completing steps of page layout loading, page data parsing, page content rendering, and the like. The method has the problems that the network application is slow in starting speed and low in starting efficiency, and the use experience of a user is influenced.
Disclosure of Invention
One aspect of the present disclosure provides a method for quickly starting a web application, including: detecting a start operation for the web application; responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; in parallel, loading and rendering a resource file for starting the network application to obtain a real display page of the network application, wherein the real display page is a display page obtained by actual rendering after the network application is started at the current time; and displaying the real display page, and stopping displaying the state history information.
Optionally, the obtaining the state history information of the web application in response to the start operation includes: and responding to the starting operation, and acquiring a screenshot of a display page which is actually rendered when the network application is started in a pre-stored history to serve as the state history information.
Optionally, the obtaining a screenshot of a display page actually rendered when the pre-stored history starts the network application, as the state history information, includes: and acquiring a pre-stored screenshot of a display page actually rendered when the network application is started last time to serve as the state history information.
Optionally, the loading and rendering a resource file for starting the web application to obtain a real display page of the web application includes: loading a web view library associated with the web application, the web view library storing resource files for rendering the real display page; and starting a network application thread, and rendering the resource file in the network application thread to obtain the real display page.
Optionally, the method further comprises: the real display page is subjected to screen capture; replacing the display page obtained by the previous screen capture with the display page obtained by the current screen capture; and saving the display page obtained by the screen capture as state history information.
Optionally, the screen capturing the real display page includes: according to a preset screen identification rule, identifying an effective area in a screen display area, which is associated with the page content of the network application, as the real display page; and carrying out screen capture on the effective area.
Optionally, in the process of displaying the state history information, the method includes: detecting a trigger operation aiming at a menu item in the display page; determining position information of the trigger operation in the display page; determining a target menu item triggered by a user request based on the position information; and loading and displaying the page content associated with the target menu item.
Optionally, the determining, based on the location information, a target menu item that is requested to be triggered by a user includes: and searching a menu item associated with the position information in a preset configuration table as the target menu item based on the position information, wherein the preset configuration table comprises the position information of at least one menu item in the display page.
Another aspect of the present disclosure provides an apparatus for quickly starting a web application, including: the detection module is used for detecting the starting operation aiming at the network application; the first processing module is used for responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; the second processing module is used for loading and rendering the resource file used for starting the network application to obtain a real display page of the network application, wherein the real display page is obtained by actual rendering after the network application is started at the current time; and the third processing module is used for displaying the real display page and terminating displaying the state history information.
Optionally, the first processing module includes a first processing sub-module, configured to, in response to the starting operation, obtain a pre-stored history of a screenshot of a display page actually rendered when the network application is started, so as to serve as the state history information.
Optionally, the first processing sub-module includes a first processing unit, configured to obtain a pre-stored screenshot of a display page that is actually rendered when the network application is started last time, as the state history information.
Optionally, the second processing module includes: the second processing submodule is used for loading a network view library associated with the network application, and the network view library stores resource files for rendering the real display page; and the third processing sub-module is used for starting a network application thread and rendering the resource file in the network application thread to obtain the real display page.
Optionally, the apparatus further comprises: the fourth processing module is used for carrying out screen capture on the real display page; the fifth processing module is used for replacing the display page obtained by the previous screen capture with the display page obtained by the current screen capture; and the sixth processing module is used for saving the display page obtained by the screen capture as state history information.
Optionally, the fourth processing module includes: the fourth processing submodule is used for identifying an effective area in a screen display area, which is associated with the page content of the network application, according to a preset screen identification rule to serve as the real display page; and the fifth processing sub-module is used for carrying out screen capture on the effective area.
Optionally, the apparatus further includes a seventh processing module, configured to detect, in a process of displaying the state history information, a trigger operation for a menu item in the display page; the eighth processing module is used for determining the position information of the trigger operation in the display page; the ninth processing module is used for determining a target menu item triggered by a user request based on the position information; and the tenth processing module is used for loading and displaying the page content associated with the target menu item.
Optionally, the ninth processing module includes: and a sixth processing sub-module, configured to search, based on the location information, a menu item associated with the location information in a preset configuration table as the target menu item, where the preset configuration table includes location information of at least one menu item in the display page.
Another aspect of the present disclosure provides an electronic device comprising one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of embodiments of the present disclosure.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, implement the method of embodiments of the present disclosure.
Another aspect of the present disclosure provides a computer program product comprising computer readable instructions, wherein the computer readable instructions are used for executing the method for quickly starting a network application of the embodiment of the present disclosure.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which,
fig. 1 schematically illustrates a system architecture of a method and apparatus for quickly starting a web application according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of quickly launching a web application, in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of a display page of a financial APP, in accordance with an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a state history information updating method according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a display area of a mobile phone screen when a real display page of a financial APP is displayed according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a flow chart of another method of quickly launching a web application, in accordance with an embodiment of the present disclosure;
FIG. 7 is a schematic diagram that schematically illustrates a method for rapidly launching a web application, in accordance with an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of an apparatus for fast launching a network application, in accordance with an embodiment of the present disclosure;
fig. 9 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It is to be understood that such description is merely illustrative and not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, operations, and/or components, but do not preclude the presence or addition of one or more other features, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable fast-start network application device such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
The embodiment of the disclosure provides a method for quickly starting a network application and a processing device capable of applying the method. The method specifically includes the following operations of firstly detecting a starting operation for the network application, responding to the starting operation, obtaining and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application, loading and rendering a resource file for starting the network application in parallel to obtain a real display page of the network application, wherein the real display page is a display page obtained by actual rendering after the network application is started and completed at the current time, displaying the real display page, and terminating displaying the state history information.
Fig. 1 schematically shows a system architecture of a method and apparatus for quickly starting a web application according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 includes a terminal (a plurality of which are shown, e.g., terminals 101, 102, 103) and a server (e.g., server 104), where the server is communicatively connected to the terminal, and the server 104 may be a service server associated with a network application. The execution main body of the embodiment may be a terminal processor, or may be a plug-in, a toolkit, etc. applied to the terminal.
The method comprises the steps that a terminal (such as the terminals 101, 102 and 103) detects starting operation aiming at the network application, and responds to the starting operation, state history information of the network application is obtained and displayed, wherein the state history information is history snapshot of a display page of the network application, in parallel, a resource file used for starting the network application is loaded from a server 104 and rendered, a real display page of the network application is obtained, the real display page is the display page obtained by actual rendering after the network application is started and completed at the current time, and finally the real display page is displayed in the terminal (such as the terminals 101, 102 and 103) and the display state history information is stopped.
It should be noted that the method and apparatus for quickly starting a network application according to the embodiments of the present disclosure may be used in the financial field, and may also be used in any field other than the financial field. The present disclosure will be described in detail below with reference to the drawings and specific embodiments.
Fig. 2 schematically shows a flowchart of a method for quickly starting a web application according to an embodiment of the present disclosure. As shown in FIG. 2, the method 200 may include operations S210-S240.
In operation S210, a start operation for a web application is detected.
In the embodiment of the present disclosure, the network application may specifically include, for example, application software, a client, an applet, a plug-in, a web page, or the like provided in the user terminal. The detection of the starting operation for the network application can comprise, for example, detecting a clicking operation for a network application icon, or detecting a triggering operation for a call link of the network application, or detecting a call operation of other network applications for the current network application. For example, when the web application is a plug-in, detecting the start operation for the web application may be, for example, detecting a call operation for the plug-in by another web application.
Next, in operation S220, in response to the start operation, state history information of the web application is acquired and displayed, wherein the state history information is a history snapshot of a display page of the web application.
In the embodiment of the present disclosure, the display page of the web application may specifically be a main page of the web application for displaying a function menu thereof, and content such as a menu item, a function item, a service item, or advertisement information of the web application may be displayed on the display page. Fig. 3 schematically shows a display page of a financial APP according to an embodiment of the present disclosure, and as shown in fig. 3, at least a menu item 301, a function item 302, a service item 303, and advertisement information 304 are displayed in the display page 300 of the financial APP.
The history snapshot of the display page may specifically be a screenshot of the display page obtained by actual rendering when the network application is started historically, and when the state history information of the network application is obtained, the screenshot of the display page obtained by actual rendering when the network application is started historically, which is saved in advance, may be obtained to serve as the state history information. The historical snapshots of the display pages can be pre-stored in a local memory or a cloud server.
Specifically, a screenshot may be performed on a display page obtained by actual rendering when the network application is started for the first time within a preset time period, so as to obtain state history information. Or, screenshot is carried out on a display page obtained by actual rendering when the network application is started at a preset frequency, so as to obtain state history information. Optionally, when the network application is started each time, screenshot of the display page obtained by actual rendering is performed and stored, and when the network application is started next time, the screenshot of the display page stored last time is displayed as the state history information of the current start.
After the starting operation for the network application is detected, state history information of the network application is obtained and displayed, and specifically, a history snapshot of a display page of the network application is obtained and displayed. Since the action of obtaining the history snapshot can be completed quickly, the operation can realize the quick display of the history display page of the network application. Because the contents of the display pages when the network application is started next time are basically the same, the historical display pages of the network application are displayed to the user before the real display pages of the network application are rendered, so that the time for the user to acquire the page contents is favorably shortened, the experience of quickly starting the network application can be realized, the method is well suitable for old models with slower network application starting, the use experience of the user is favorably improved, and the application value is remarkable.
Before displaying the state history information of the web application, a launch page of the web application is displayed in response to a launch operation for the web application. The starting page of the network application can be a starting page, a flash screen page or a guide page displayed in the starting process of the network application, and the visual effect of the network application on second can be realized by displaying the starting page of the network application, so that the use experience of a user is promoted. The start page of the web application may be a fixed page that is rendered in advance, and in order to achieve seamless display of the start page and the state history information, the operation of obtaining the state history information may be performed while the start page is displayed.
In parallel, in operation S230, a resource file for starting the web application is loaded and rendered to obtain a real display page of the web application, where the real display page is a display page actually rendered after the web application is started at the current time.
In this disclosure, specifically, the resource file for starting the web application may include, for example, a resource file for rendering a real display page, and after a start operation for the web application is detected, a web view library associated with the web application is loaded, the resource file for rendering the real display page stored in the web view library is acquired, then a web application thread is started, and the resource file is rendered in the web application thread to obtain the real display page.
The resource file used for starting the network application comprises a file used for rendering display elements in a real display page, and after the resource file is obtained, rendering operation aiming at the resource file is carried out. Exemplarily, starting a rendering engine, calling a rendering thread, and performing data analysis on the acquired resource file to obtain analyzed resource data; constructing a DOM tree by using the analyzed resource data, and constructing a rendering tree object according to the DOM tree; according to the display sequence of the display elements in the rendering tree object, the sizes and the positions of different display elements are arranged, and a box model is output; and finally, traversing all display elements in the rendering tree object according to the output box model, and drawing a display page by using a UI back-end component to obtain a real display page obtained by actual rendering.
Next, in operation S240, the real display page is displayed, and the display of the state history information is terminated.
In the embodiment of the present disclosure, specifically, in the process of rendering to obtain the real display page, the display state history information is maintained, and the rendering progress of the real display page is monitored. And displaying the real display page after the rendering of the real display page is monitored to be completed. Meanwhile, in order to ensure that the real display page is not covered by the displayed state history information, the display of the state history information is terminated. Optionally, the rendering action of the real display page, the display control of the state history information, and the monitoring operation of the page rendering progress may be performed in a single thread, or may be performed in different threads, respectively.
In an embodiment of the present disclosure, a start operation for a web application is detected; responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; in parallel, loading and rendering a resource file for starting the network application to obtain and display a real display page of the network application, wherein the real display page is obtained by actual rendering after the network application is started and completed at the current time; and terminating displaying the state history information. After the starting operation for the network application is detected, the historical snapshot of the display page of the network application is displayed, and meanwhile, the resource file is called to perform rendering work of the real display page started at this time, so that the time for a user to obtain the page content of the network application is favorably shortened, the page content presentation efficiency of the network application is favorably improved, the network application can be quickly started based on an old machine type, the user experience is favorably remarkably improved, and the application value is high.
Fig. 4 schematically shows a flowchart of a state history information updating method according to an embodiment of the present disclosure.
As shown in FIG. 4, the method 400 may include operations S410-S430.
In operation S410, a screen capture is performed on the real display page.
In the embodiment of the present disclosure, specifically, in order to ensure that the network application can display the state history information closest to the current starting state at each time of starting, after a real display page is obtained by rendering each time, a screenshot is performed on the real display page, and the state history information stored before is replaced by the screenshot, so that the state history information is called and displayed when the network application is started next time.
In the process of displaying the real display page through the main thread, the asynchronous thread can be called to capture the screen of the real display page. Furthermore, the screen capturing operation of the asynchronous thread on the real display page can be performed in the background of the terminal device, specifically in the idle time period of the CPU, so that the screen capturing action can be performed under the condition that a user cannot perceive, and the operation of the main thread cannot be influenced by the screen capturing operation of the asynchronous thread on the real display page, so that the operation smoothness of the network application can be effectively guaranteed, and the use experience of the user can be effectively prevented from being influenced.
Optionally, when the real display page is captured, an effective area associated with the page content of the network application in the screen display area may be identified according to a preset screen identification rule to serve as the real display page, and then the effective area is captured.
Specifically, when a real display page of the web application is displayed, the real display page may occupy all of the display area of the terminal screen or may occupy a part of the display area of the terminal screen. When a real display page occupies a part of a display area of a terminal screen, the display area of the terminal screen needs to be identified, an effective area associated with the page content of the network application in the screen display area is identified to be used as the real display page, and then the real display page is subjected to screen capturing so as to obtain a historical snapshot of the display page when the network application is started. The design can effectively avoid mistakenly intercepting other display areas except the effective area in the screen display area into a real display area, and influences the use experience of a user.
Exemplarily, fig. 5 schematically illustrates a schematic diagram of a mobile phone screen display area when displaying a real display page of a financial APP according to an embodiment of the present disclosure, as shown in fig. 5, the mobile phone screen display area 500 includes a first display area 501 and a second display area 502, a mobile phone status bar is displayed in the first display area 501, a real display page of a financial APP is displayed in the second display area 502, when the real display page of a financial APP is captured, the mobile phone screen display area can be identified, an effective area associated with content of the financial APP page is identified, that is, the second display area 502 in the mobile phone screen display area 500 is identified, and the second display area 502 is captured to be stored as historical status information.
Next, in operation S420, the display page obtained by the previous screen capturing is replaced with the display page obtained by the current screen capturing.
In the embodiment of the present disclosure, specifically, when the display page obtained by the current screen capture is used to replace the display page obtained by the previous screen capture, the display page obtained by the previous screen capture may be covered by the display page obtained by the current screen capture, or the display page obtained by the current screen capture may be stored after the display page obtained by the previous screen capture is deleted. The design is favorable for reducing the storage space occupancy rate of the historical snapshots, improving the calling efficiency of the historical snapshots, ensuring the calling accuracy of the historical snapshots, being favorable for rapidly presenting the page content of the network application, and being well suitable for old machine type terminal equipment.
Next, in operation S430, the display page obtained by the current screen capture is saved as state history information.
In the embodiment of the present disclosure, specifically, the display page obtained by the current screen capture is stored in the local memory or the cloud server as the state history information, so as to be called and displayed when the network application is started next time.
In the embodiment of the disclosure, after rendering and displaying the real display page, screen capturing is performed on the real display page, and then the display page obtained by the screen capturing of this time is used for replacing the display page obtained by the previous screen capturing and is stored as the state history information. In the process of starting the network application, screenshot is carried out on a real display page obtained by rendering, the stored state history information is updated by using the screenshot, and the accuracy of the page content when the history snapshot is displayed can be effectively ensured by presenting the state history information of the latest state of the network application to a user.
Fig. 6 schematically shows a flowchart of another method for quickly starting a web application according to an embodiment of the present disclosure.
As shown in FIG. 6, method 600 may include operations S610-S640.
In operation S610, a trigger operation for a menu item in a display page is detected in displaying state history information.
In the embodiment of the present disclosure, specifically, in order to be able to respond to a user operation in time in a network application starting process and avoid a use experience of network application blocking caused by a response failure in time for a user, a trigger operation for a menu item in a display page may be detected in a process of displaying state history information of a network application, specifically, a click operation, a press operation, or a slide operation for the menu item in the display page may be detected, or a call operation for a function or a service associated with the menu item may be detected.
Next, in operation S620, position information of the trigger operation in the display page is determined.
In the embodiment of the present disclosure, specifically, since the state history information is a history snapshot of the display page of the network application and is not a real display page obtained by actual rendering in the starting process, the menu item in the display page presented based on the manner is not a real page key and cannot autonomously respond to the trigger operation of the user. In order to respond to the triggering operation of the user, the position information of the triggering operation in the display page can be determined, the real menu item requested to be triggered by the user is determined, and then response data associated with the real menu item is called to respond to the triggering operation of the user in the displayed history snapshot.
When the position information of the trigger operation in the display page is determined, the display page may be taken as a reference, any point in the display page is taken as a coordinate origin, the coordinate information of the trigger operation point in the display page is determined as the position information of the trigger operation in the display page, and exemplarily, a vertex at a lower left corner of the display page is taken as the coordinate origin, and the coordinate information of the trigger operation point in the display page is determined as the position information of the trigger operation in the display page.
Next, in operation S630, a target menu item for which the user requests a trigger is determined based on the location information.
In the embodiment of the present disclosure, specifically, a menu item associated with the position information may be looked up in a preset configuration table as a target menu item based on the position information, where the preset configuration table includes the position information of at least one menu item in a display page.
Because the positions of the menu items of the network application in the display page are basically kept unchanged, the position information of different menu items relative to the display page can be stored in a format data form to obtain a preset configuration table. After detecting the triggering operation of the user for the menu items in the display page, comparing the position information of the triggering operation in the display page with the position information of each menu item recorded in a preset configuration table, and determining the menu items with consistent position information as target menu items requested to be triggered by the user.
Next, in operation S640, page content associated with the target menu item is loaded and displayed.
In the embodiment of the present disclosure, specifically, after a target menu item triggered by a user request is determined, page content associated with the target menu item is loaded and displayed from a business server in the same manner as that of a normal trigger target menu item, so as to implement a trigger operation of responding to the menu item by the user.
In the embodiment of the disclosure, in the process of displaying the state history information, after a trigger operation for a menu item in a display page is detected, position information of the trigger operation in the display page is determined, then a target menu item requested to be triggered by a user is determined based on the determined position information, and page content associated with the target menu item is displayed. By the method, the triggering operation of the user for the menu item can be responded before the real display page is rendered, and the real page content associated with the menu item is displayed.
Fig. 7 schematically shows a schematic diagram of a method for quickly starting a network application according to an embodiment of the present disclosure.
As shown in fig. 7, the method 700 may include operations S710 to S760.
In operation S710, a click operation for a web application icon is detected.
Next, in operation S720, in response to the click operation, a launch page is displayed.
Next, in operation S730, after the display of the start page is completed, a screenshot of the display page obtained by a previous screen capture at the start time is displayed.
In parallel, in operation S740, a resource file for starting the web application is loaded, and data is analyzed and rendered to obtain a real display page.
Next, in operation S750, the real display page is displayed, and the screen shot of the display page obtained by the screen shot at the previous startup is terminated.
Next, in operation S760, a screen capture is performed on the real display page, the display page obtained by the screen capture of this time is used to replace the display page obtained by the previous screen capture, and the display page is stored as the state history information.
Fig. 8 schematically shows a block diagram of a fast boot network application apparatus according to an embodiment of the present disclosure.
As shown in fig. 8, the fast boot network application apparatus 800 includes a detection module 801, a first processing module 802, a second processing module 803, and a third processing module 804.
Specifically, the detecting module 801 is configured to detect a starting operation for the web application; a first processing module 802, configured to, in response to a start operation, obtain and display state history information of a network application, where the state history information is a history snapshot of a display page of the network application; the second processing module 803 is configured to load and render a resource file used for starting the network application, so as to obtain a real display page of the network application, where the real display page is a display page obtained by actual rendering after the network application is started at the current time; and the third processing module 804 is configured to display the real display page and terminate displaying the state history information.
In an embodiment of the present disclosure, a start operation for a web application is detected; responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; in parallel, loading and rendering a resource file for starting the network application to obtain and display a real display page of the network application, wherein the real display page is obtained by actual rendering after the network application is started and completed at the current time; and terminating displaying the state history information. After the starting operation for the network application is detected, the historical snapshot of the display page of the network application is displayed, and meanwhile, the resource file is called to perform rendering work of the real display page started at this time, so that the time for a user to obtain the page content of the network application is favorably shortened, the page content presentation efficiency of the network application is favorably improved, the network application can be quickly started based on an old machine type, the user experience is favorably remarkably improved, and the application value is high.
As a possible embodiment, the first processing module includes a first processing sub-module, configured to, in response to the starting operation, obtain a pre-stored screenshot of a display page actually rendered when the history starts the web application, as the state history information.
As a possible embodiment, the first processing sub-module includes a first processing unit, configured to obtain a pre-stored screenshot of a display page that is actually rendered when the network application was started last time, as the state history information.
As a possible embodiment, the second processing module includes: the second processing submodule is used for loading a network view library associated with the network application, and the network view library stores resource files for rendering real display pages; and the third processing sub-module is used for starting the network application thread and rendering the resource file in the network application thread to obtain a real display page.
As a possible embodiment, the apparatus further comprises: the fourth processing module is used for carrying out screen capture on the real display page; the fifth processing module is used for replacing the display page obtained by the previous screen capture with the display page obtained by the current screen capture; and the sixth processing module is used for saving the display page obtained by the screen capture as state history information.
As a possible embodiment, the fourth processing module includes: the fourth processing submodule is used for identifying an effective area in the screen display area, which is associated with the page content of the network application, according to a preset screen identification rule to serve as a real display page; and the fifth processing sub-module is used for carrying out screen capture on the effective area.
As a possible embodiment, the apparatus further includes a seventh processing module, configured to detect a trigger operation for a menu item in a display page in the process of displaying the state history information; the eighth processing module is used for determining the position information of the trigger operation in the display page; the ninth processing module is used for determining a target menu item triggered by the user request based on the position information; and the tenth processing module is used for loading and displaying the page content associated with the target menu item.
As a possible embodiment, the ninth processing module includes: and the sixth processing sub-module is used for searching the menu item associated with the position information in a preset configuration table as a target menu item based on the position information, wherein the preset configuration table comprises the position information of at least one menu item in the display page.
It should be noted that, in the embodiments of the present disclosure, the implementation of the apparatus portion is the same as or similar to the implementation of the method portion, and is not described herein again.
Any of the modules according to embodiments of the present disclosure, or at least part of the functionality of any of them, may be implemented in one module. Any one or more of the modules according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules according to the embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or in any one of three implementations, or in any suitable combination of any of the software, hardware, and firmware. Or one or more of the modules according to embodiments of the disclosure, may be implemented at least partly as computer program modules which, when executed, may perform corresponding functions.
For example, any number of the detection module 801, the first processing module 802, the second processing module 803, and the third processing module 804 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the detecting module 801, the first processing module 802, the second processing module 803, and the third processing module 804 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. At least one of the detection module 801, the first processing module 802, the second processing module 803 and the third processing module 804 may be at least partly implemented as a computer program module which, when executed, may perform a corresponding function.
Fig. 9 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 includes a processor 910, a computer-readable storage medium 920. The electronic device 900 may perform a method according to an embodiment of the disclosure.
In particular, processor 910 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 910 may also include onboard memory for caching purposes. The processor 910 may be a single processing module or a plurality of processing modules for performing the different actions of the method flows according to embodiments of the present disclosure.
Computer-readable storage media 920, for example, may be non-volatile computer-readable storage media, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 920 may include a computer program 921, which computer program 921 may include code/computer-executable instructions that, when executed by the processor 910, cause the processor 910 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
The computer program 921 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 921 may include one or more program modules, including, for example, 921A, module 921B. It should be noted that the division and number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 910 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 910.
According to an embodiment of the present disclosure, at least one of the detection module 801, the first processing module 802, the second processing module 803, and the third processing module 804 may be implemented as a computer program module described with reference to fig. 9, which, when executed by the processor 910, may implement the respective operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be understood by those skilled in the art that while the present disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (12)

1. A method of quickly launching a web application, comprising:
detecting a start operation for the web application;
responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application; in parallel with each other, the first and second,
loading and rendering a resource file for starting the network application to obtain a real display page of the network application, wherein the real display page is obtained by actual rendering after the network application is started at the current time;
and displaying the real display page, and stopping displaying the state history information.
2. The method of claim 1, wherein said obtaining state history information of the web application in response to the launch operation comprises:
and responding to the starting operation, and acquiring a screenshot of a display page which is actually rendered when the network application is started in a pre-stored history to serve as the state history information.
3. The method according to claim 2, wherein the obtaining a screenshot of a display page actually rendered when the pre-saved history starts the web application as the state history information includes:
and acquiring a pre-stored screenshot of a display page actually rendered when the network application is started last time to serve as the state history information.
4. The method of claim 1, wherein the loading and rendering the resource file for launching the web application to obtain a real display page of the web application comprises:
loading a web view library associated with the web application, the web view library storing resource files for rendering the real display page;
and starting a network application thread, and rendering the resource file in the network application thread to obtain the real display page.
5. The method of any of claims 1 to 4, further comprising:
the real display page is subjected to screen capture;
replacing the display page obtained by the previous screen capture with the display page obtained by the current screen capture; and
and saving the display page obtained by the screen capture as state history information.
6. The method of claim 5, wherein said screenshot of the real display page comprises:
according to a preset screen identification rule, identifying an effective area in a screen display area, which is associated with the page content of the network application, as the real display page;
and carrying out screen capture on the effective area.
7. The method of claim 1, in displaying the state history information, comprising:
detecting a trigger operation aiming at a menu item in the display page;
determining position information of the trigger operation in the display page;
determining a target menu item triggered by a user request based on the position information;
and loading and displaying the page content associated with the target menu item.
8. The method of claim 7, wherein the determining a target menu item that a user requests to trigger based on the location information comprises:
based on the position information, searching a menu item associated with the position information in a preset configuration table as the target menu item,
the preset configuration table comprises position information of at least one menu item in the display page.
9. An apparatus for rapidly launching a web application, comprising:
the detection module is used for detecting the starting operation aiming at the network application;
the first processing module is used for responding to the starting operation, acquiring and displaying state history information of the network application, wherein the state history information is a history snapshot of a display page of the network application;
the second processing module is used for loading and rendering the resource file used for starting the network application to obtain a real display page of the network application, wherein the real display page is obtained by actual rendering after the network application is started at the current time; and
and the third processing module is used for displaying the real display page and terminating displaying the state history information.
10. An electronic device, comprising:
one or more processors; and
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 8.
12. A computer program product comprising computer readable instructions, wherein the computer readable instructions, when executed, are for performing the method of any of claims 1 to 8.
CN202110139484.8A 2021-02-01 2021-02-01 Method and device for quickly starting network application Pending CN112817658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110139484.8A CN112817658A (en) 2021-02-01 2021-02-01 Method and device for quickly starting network application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110139484.8A CN112817658A (en) 2021-02-01 2021-02-01 Method and device for quickly starting network application

Publications (1)

Publication Number Publication Date
CN112817658A true CN112817658A (en) 2021-05-18

Family

ID=75861462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110139484.8A Pending CN112817658A (en) 2021-02-01 2021-02-01 Method and device for quickly starting network application

Country Status (1)

Country Link
CN (1) CN112817658A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427225A (en) * 2019-07-29 2019-11-08 阿里巴巴集团控股有限公司 A kind of method and apparatus starting small routine
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program
CN111339458A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Page presenting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198730A (en) * 2018-10-30 2020-05-26 广州腾讯科技有限公司 Method, device, terminal and computer storage medium for starting sub-application program
CN111339458A (en) * 2018-12-18 2020-06-26 阿里巴巴集团控股有限公司 Page presenting method and device
CN110427225A (en) * 2019-07-29 2019-11-08 阿里巴巴集团控股有限公司 A kind of method and apparatus starting small routine

Similar Documents

Publication Publication Date Title
CN108073519B (en) Test case generation method and device
CN110187931B (en) Method and device for running small program
TWI547874B (en) Virtual machine image analysis
US10268515B2 (en) Releasing resources from processes in a particular order to provide required resources to start an application
CN110244984B (en) Application processing method, device, storage medium and computer equipment
US9727444B2 (en) Program subset execution and debug
KR20140091555A (en) Measuring web page rendering time
CN112579187A (en) Optimization method and device for cold start of application program
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
CN110955598B (en) Breakpoint processing method and device for kernel mode program
JP2021184302A (en) Browser display verification method, apparatus, computer device, and storage medium
TWI656453B (en) Detection system and detection method
CN111831411A (en) Task processing method and device, storage medium and electronic equipment
CN107250979B (en) Application event tracking
US20110202903A1 (en) Apparatus and method for debugging a shared library
CN111857854A (en) Shutdown resource loading method and device, storage medium and electronic equipment
CN112817658A (en) Method and device for quickly starting network application
CN108009039B (en) Terminal information recording method, device, storage medium and electronic equipment
CN116149941A (en) Monitoring method and device of server component, server and storage medium
CN111427738A (en) Display method, application monitoring module, bytecode enhancement module and display system
CN105446785A (en) Method and system for unloading application program
CN115098378A (en) Method and device for classifying and aggregating log fragments based on abnormal breakpoints
CN114253752A (en) Application crash processing method, device, equipment and medium
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
CN113448758A (en) Task processing method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination