Application processing methods, devices, media, equipment and program products

By preheating sub-applications of a web application, including primary and secondary preheating, the problems of long opening times and resource waste in sub-applications are solved, achieving fast page display and efficient resource utilization.

CN123114573APending Publication Date: 2026-11-17BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611257122.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing technologies, opening sub-applications of web applications takes a long time and resource loading is not efficient enough, especially the problem of resource preloading during the main application's first screen operation, which leads to slow opening of the main application's first screen or waste of resources.

Method used

By preheating sub-applications, including first-level and second-level preheating, resources are preloaded and pre-started. The preheating level is determined based on the sub-application's information to reduce resource loading time during startup.

Benefits of technology

Upon receiving the launch command, the sub-application page can be displayed quickly, reducing launch time, avoiding resource waste, and improving the loading efficiency and user experience of the sub-application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123114573A_ABST
    Figure CN123114573A_ABST
Patent Text Reader

Abstract

An application processing method, apparatus, medium, device, and program product are disclosed. The application processing method includes: obtaining first information, wherein the first information includes a first resource, or includes the first resource and pre-startup information, wherein the first resource includes resources required by a first application, and the pre-startup information includes information obtained by pre-starting the first application based on the first resource; and displaying a first page based on the first information in response to a startup command. Through the above scheme, the first information can be understood as information obtained by pre-running the startup process of the first application before receiving the startup command. When the first information includes the first resource, the time spent loading resources after receiving the startup command can be reduced. When the first information includes the first resource and the pre-startup information, the first page can be displayed more quickly after receiving the startup command, alleviating the problem of long startup time for the first application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to the field of computer technology, specifically to an application processing method, apparatus, medium, device, and program product. Background Technology

[0002] Currently, web applications are carrying increasingly rich functionalities. One or more sub-applications can be embedded within the main application (also known as the host application). These sub-applications can be heterogeneous and can be developed independently. However, a common issue with these sub-applications is the long loading time. Summary of the Invention

[0003] This content section is provided to briefly introduce the ideas, which will be described in detail in the examples section later. This content section is not intended to identify key or essential features of the claimed content, nor is it intended to limit the scope of the claimed content.

[0004] Firstly, an application processing method is provided, including: Obtain first information, the first information including a first resource, or including the first resource and pre-launch information, the first resource including resources required by the first application, and the pre-launch information including information obtained by pre-launching the first application based on the first resource; In response to a launch command, a first page is displayed based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

[0005] Secondly, an application processing apparatus is provided, comprising: The first obtaining module is configured to obtain first information, the first information including a first resource, or including the first resource and pre-start information, the first resource including resources required by the first application, and the pre-start information including information obtained by pre-starting the first application based on the first resource; The display module is configured to respond to a launch command and display a first page based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

[0006] Thirdly, a computer-readable medium is provided having a computer program stored thereon, wherein the computer program, when executed by a processing device, implements the application processing method provided in the first aspect.

[0007] Fourthly, an electronic device is provided, comprising: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the application processing method provided in the first aspect.

[0008] Fifthly, a computer program product is provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the application processing method provided in the first aspect.

[0009] Through the above scheme, the first information can be understood as information obtained by pre-running the startup process of the first application before receiving the startup command. If the first resources required by the first application are pre-loaded, and the first application is not pre-started based on the first resources, then the first information includes the first resources. If the resources required by the first application are pre-loaded, and the first application is pre-started, then the first information includes the first resources and pre-start information. When the first information includes the first resources, the time spent loading resources after receiving the startup command can be reduced. When the first information includes both the first resources and pre-start information, the first page can be displayed quickly after receiving the startup command, thereby alleviating the problem of long startup time for the first application after receiving the startup command.

[0010] Other features and advantages will be described in detail in the following examples section. Attached Figure Description

[0011] The above and other features, advantages, and aspects of this document will become more apparent when viewed in conjunction with the accompanying drawings and the following examples. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 This is a schematic diagram illustrating an exemplary application scenario.

[0012] Figure 2 It is a page illustration.

[0013] Figure 3 This is a flowchart illustrating an application processing method.

[0014] Figure 4 This is an example of the process for determining and reporting when a sub-application page is interactive.

[0015] Figure 5 This is a flowchart illustrating an application processing method.

[0016] Figure 6 This is a flowchart illustrating an exemplary method for pre-launching a first application.

[0017] Figure 7 This is a block diagram illustrating an application processing device.

[0018] Figure 8 A schematic diagram of an electronic device suitable for implementing the above method is shown. Detailed Implementation

[0019] The following description will be given in more detail with reference to the accompanying drawings. While certain scenarios are shown in the drawings, it should be understood that this document can be implemented in various forms and should not be construed as limited to the scenarios described herein. Rather, these scenarios are provided to provide a more thorough and complete understanding of this document. It should be understood that the accompanying drawings and the scenarios depicted are for illustrative purposes only and are not intended to limit the scope of this document.

[0020] It should be understood that the steps described in the method may be performed in different orders and / or in parallel. Furthermore, the method may include additional steps and / or omit the steps shown. The scope of this document is not limited in this respect.

[0021] The term "comprising" and its variations can be open-ended, meaning "including but not limited to". The term "based on" can mean "at least partially based on". The term "one case" means "at least one case"; the term "another case" means "at least one additional case"; the term "some cases" means "at least some cases". Definitions of other terms will be given in the following description.

[0022] It should be noted that the concepts of "first" and "second" are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions performed by these devices, modules or units or their interdependencies.

[0023] It should be noted that the modifiers “one” and “multiple” can be illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as “one or more”.

[0024] The names of messages or information exchanged between multiple devices are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0025] It is understandable that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of relevant regulations.

[0026] In one scenario, for example, the main application is a document application and the sub-application A is a text rewriting application. The text rewriting application can be developed separately and embedded into the document application as a new feature.

[0027] An inline frame (iframe) is a tag or element in HTML (HyperText Markup Language) used to embed one HTML page within another. In web applications, a child application can be embedded into the main application using an iframe, with each application having its own independent browsing context.

[0028] When the main application creates an iframe element for a child application, the iframe element's src (source) attribute can be the URL (Uniform Resource Locator) of the child application's page. The main application can provide a region for the child application, within which the child application is loaded, rendered, and displayed, thus embedding the child application page into the specified region of the main application for display.

[0029] In related technologies, some adopt an on-demand loading method for sub-applications. That is, the iframe element of the sub-application is created only when the user triggers the sub-application, and then resource loading and runtime initialization are performed. Opening the sub-application requires a complete cold start process, which makes it take a long time to open the sub-application.

[0030] Some related technologies also involve preloading resources for child applications and mounting iframe elements for child applications when the main application is opened, such as when the main application's first screen is running. This approach competes for resources on the main application's first screen, making the main application's first screen open more slowly. On the other hand, if the child application is not triggered by the user, it will lead to a waste of resources.

[0031] This article provides an application processing method. Taking sub-application A as an example, the information of sub-application A includes whether the function switch is turned on, whether sub-application A has been used in the past period of time, and whether the mouse hovers over the button used to trigger sub-application A. Based on the information of sub-application A, it can be determined whether to preheat sub-application A, and if so, whether to perform first-level preheating or second-level preheating.

[0032] Preheating sub-application A can be understood as performing the startup process of sub-application A in advance before receiving the startup command for sub-application A, so that the page display of sub-application A can be completed more quickly after receiving the startup command for sub-application A.

[0033] When performing a first-level preheating of sub-application A, the resources required by sub-application A can be preloaded. Accordingly, the initial information obtained includes the resources required by sub-application A. When sub-application A is triggered, it can be launched based on the preloaded resources, saving the time spent loading resources. When performing a second-level preheating of sub-application A, the resources required by sub-application A can be preloaded, and sub-application A can be pre-launched based on the loaded resources. Accordingly, the initial information obtained includes the resources required by sub-application A and pre-launch information. This allows the initial screen of sub-application A to be quickly displayed and interactive when it is triggered. Thus, preheating sub-application A by considering its information alleviates the problems of long opening times and wasted resource loading for sub-application A.

[0034] Figure 1 This is a schematic diagram illustrating an exemplary application scenario. For example... Figure 1 As shown, the application scenario can include client 11 and server 12. Client 11 and server 12 communicate via a wired or wireless network. Client 11 can be, for example, a personal computer, a laptop, or other devices such as a mobile phone. Figure 1 The device type of client 11 is shown for illustrative purposes. Server 12 can be a standalone physical server, a server cluster consisting of multiple physical servers, or a cloud server providing cloud services.

[0035] The application processing method can be applied to client 11, which has a browser installed. Users can access and use web applications through the browser. The main application and sub-applications can be web pages accessed through the browser. Client 11 can retrieve the resources required by the main application and the resources required by the sub-applications from server 12.

[0036] Figure 2 It is a page illustration, such as Figure 2 As shown, page 21 represents the main application page displayed on client 11, such as the main application's home screen page, or other pages of the main application. Page 21 contains control 22, which is a button used to trigger the launch of sub-application A. When the user clicks control 22, client 11 receives a launch command for sub-application A and can display page 23, such as the home screen page of sub-application A.

[0037] The following examples use sub-application A as an example for explanation. Multiple sub-applications can be embedded in the main application. The processing of other sub-applications can refer to the processing method for sub-application A.

[0038] Combination Figure 3 Examples of application processing methods are introduced, such as... Figure 3 As shown, the application processing method includes steps 31 to 37.

[0039] Step 31: In response to the main application's page being visible, a first-level warm-up instruction is obtained based on the second information.

[0040] The first-level preheating indicator can be used to indicate whether to perform first-level preheating on sub-application A. If first-level preheating is performed, steps 32 and 33 are executed; if first-level preheating is not performed, step 37 is executed.

[0041] Optionally, the main application's page in step 31 could be the main application's home screen page, or other pages within the main application. The main application's page becoming visible can mean that the main application's page content is rendered, and the child application is warmed up in response to the main application's page becoming visible, thus avoiding affecting the main application's page loading progress.

[0042] The second information may include the configuration information and / or usage record information of sub-application A. The configuration information of sub-application A may indicate, for example, whether the function switch of sub-application A is enabled. The usage record information of sub-application A may include, for example, at least one of the following: the cumulative number of times sub-application A has been used, the duration of the most recent use of sub-application A, and the number of times sub-application A has been used within the most recent preset number of days.

[0043] The second piece of information can characterize the likelihood of using sub-application A. For example, having the function switch on indicates a higher likelihood of use, and having a higher cumulative number of uses also indicates a higher likelihood of use.

[0044] In one embodiment, a first-level preheating instruction can be obtained based on the configuration information of sub-application A. For example, if the function switch is turned on, first-level preheating of sub-application A is performed; if the function switch is turned off, first-level preheating of sub-application A is not performed.

[0045] In another embodiment, a first-level warm-up instruction can be obtained based on the usage record information of sub-application A. For example, if the usage record information meets certain conditions, first-level warm-up of sub-application A can be performed; otherwise, preheating of sub-application A can be skipped. Taking the usage record information including the number of times sub-application A has been used within the most recent preset number of days as an example, the conditions for meeting these conditions are, for example, that the number of uses is greater than or equal to a preset threshold. Conditions for the cumulative number of uses and the duration of use can also be preset.

[0046] In another embodiment, a first-level preheating indication can be obtained based on both the configuration information and usage record information of sub-application A. When the function switch is turned on and the usage record information meets the conditions, the first-level preheating of sub-application A can be performed.

[0047] Step 32: Load the resources required by sub-application A.

[0048] The resources required by sub-application A may include those needed for the first screen of sub-application A, as well as those needed for other pages of sub-application A. These resources can be loaded from the server. Examples of resources include images, CSS (Cascading Style Sheets), and JavaScript.

[0049] In one embodiment, the main application may create a first object to load resources required by sub-application A. The first object is used to perform resource loading operations. Optionally, the first object may include, for example, an inline frame element iframe1 (hereinafter referred to as element iframe1), which is in an invisible state, i.e., not visible on the client page, also known as a hidden state. This element iframe1 is used to load resources required by sub-application A according to its resource path or interface path. Alternatively, the first object may include, for example, a Web Worker thread used to load resources required by sub-application A.

[0050] That is, the first object can be an invisible carrier that does not carry an application instance, used to preload the resources required by the sub-application A, and fill the loaded resources into the browser cache, thus having a low resource consumption on the browser.

[0051] Step 33: In response to the main application's page being in an interactive state, a secondary warm-up instruction is obtained based on the third information.

[0052] The secondary preheating indicator can be used to indicate whether secondary preheating is performed on sub-application A. If secondary preheating is performed, steps 34 and 35 are executed; if secondary preheating is not performed, step 36 is executed.

[0053] The main application's page is interactive, meaning the content on the main application page is operable. For example, when a button on the main application page is clicked, the browser responds promptly. Page interactivity can occur after the page becomes visible. Considering that users typically trigger the launch of sub-applications when the main application's page is interactive, a secondary warm-up of the sub-application can be performed while the main application's page is interactive.

[0054] Level 2 preheating can be understood as completing the startup process of sub-application A ahead of time, based on level 1 preheating. This allows sub-application A's page, such as the first screen, to be displayed more quickly when it is triggered.

[0055] Optionally, the triggering method of sub-application A includes event triggering, and the third information includes at least one of the following: notification status information of sub-application A, intent information corresponding to sub-application A, and event information corresponding to the first control.

[0056] The first control is used to trigger the launch of sub-application A. This first control can be referenced. Figure 2 The event triggered by control 22 shown is, for example, when the first control is clicked. This triggering method can be seen as the way sub-application A is launched.

[0057] The notification status information of sub-application A can be used to indicate whether sub-application A has any unread notifications. If there are unread notifications, there is a higher probability that the notification will be opened and viewed, that is, there is a higher probability that sub-application A will be triggered.

[0058] The intent information corresponding to sub-application A is used to indicate whether the user intends to trigger sub-application A. Taking the text rewriting application as an example, if there are operations such as text selection, text copying, text input, and document switching on the document application page, there may be an intent to trigger the text rewriting application.

[0059] Event information corresponding to the first control, such as whether the mouse moves toward the first control, whether the mouse hovers over the first control for a certain period of time, whether the first control enters the visible area and stays there for a certain period of time, and whether there is a touch operation toward the first control.

[0060] In one embodiment, a secondary warm-up indication can be obtained based on whether the third information meets the conditions. Taking the notification status information of sub-application A as an example, the condition to be met is, for example, that sub-application A has unread notifications. The conditions to be met for intent information and event information can also be preset.

[0061] Alternatively, the triggering method for sub-application A may include automatic triggering, and the third information may include matching information, which is used to characterize whether the content in the main application's page matches that of sub-application A.

[0062] Automatic triggering can be understood as the automatic pop-up of a corresponding page without requiring the user to click on a control. Based on the content of the main application page and the purpose of sub-application A, matching information can be obtained. Taking a text rewriting application as an example, if there is no text content on the document application page, the likelihood of triggering the text rewriting application is low, indicating a mismatch. If the matching information indicates that the content of the main application page matches sub-application A, it means the third information meets the condition; if the matching information indicates that the content of the main application page does not match sub-application A, it means the third information does not meet the condition.

[0063] For example, during the warm-up phase, operations such as establishing network channels, authentication, and calling key interfaces on the first screen can be performed serially, while information that is not dependent on the first screen, such as counting the duration of the first control entering the visible area, can be performed asynchronously in parallel.

[0064] Step 34: Based on the resources required by sub-application A, pre-launch sub-application A.

[0065] Alternatively, the pre-launch implementation for sub-application A can be as follows: Create an inline frame element iframe2 (hereinafter referred to as element iframe2) and set the state of element iframe2 to invisible. Element iframe2 is used to embed sub-application A in the main application.

[0066] The main application can create an element called iframe2. The purpose of creating iframe2 is to pre-launch the child application A. Since the child application A has not yet been triggered, the initial state of iframe2 can be set to invisible. The elements iframe1 mentioned above and iframe2 here can be two independent elements. iframe2 can be seen as the element that carries the application instance, that is, it is used to embed the child application A into the main application. Element iframe1 is not used to embed the child application A into the main application, but is used for resource preloading. The resources loaded through element iframe1 are used by element iframe2.

[0067] Next, the iframe2 element is inserted into the main application's structure information, which may optionally include the main application's Document Object Model (DOM) tree. Inserting the iframe2 element into the main application's DOM tree can be understood as mounting the iframe2 element.

[0068] Based on the iframe2 element and the resources required by sub-application A, runtime initialization of sub-application A and pre-rendering of sub-application A's page are performed. Runtime initialization and pre-rendering can be understood as completing the preparatory work for rendering the page of sub-application A.

[0069] In one embodiment, in response to the creation of element iframe2, the flag of sub-application A can be set to a first state, which indicates that the inline frame element of sub-application A has been created during the session of sub-application A.

[0070] The flag for sub-application A can be maintained by the main application. After creating the iframe2 element, the main application can set the flag for sub-application A to its first state. The main application can determine whether the inline frame element of sub-application A has already been created during the session based on the flag's state. Each sub-application has a corresponding flag, which can be used to prevent the duplicate creation of inline frame elements of sub-applications. For example, if sub-application A has already created its iframe2 element during a second-level warm-up, then upon receiving the sub-application's launch command, the main application can determine that it does not need to duplicate the inline frame element of sub-application A based on the flag already set to its first state.

[0071] A session can be identified by a session identifier. After the main application creates an inline frame element of sub-application A, it can assign a session identifier to sub-application A. The session identifier is used to distinguish different sub-applications. For example, the session identifier of sub-application A is different from that of sub-application B. An interaction process between the main application and the sub-application using the same session identifier can be regarded as a session process of the sub-application.

[0072] Step 35: In response to the launch command of sub-application A, display the page of sub-application A.

[0073] For example, if sub-application A is event-triggered, such as receiving a click operation on the first control, it is equivalent to receiving a start command. If sub-application A is automatically triggered, it is equivalent to receiving a start command if the automatic triggering conditions of sub-application A are met. The automatic triggering conditions can be preset.

[0074] With secondary warm-up performed on sub-application A, in response to the launch command, the state of element iframe2 can be set to visible, and the page of sub-application A can be displayed. Since runtime initialization and pre-rendering are performed before receiving the launch command, the page of sub-application A can be displayed quickly and is interactive, and the time from receiving the launch command to the page becoming interactive is low.

[0075] Step 36: In response to the startup command of sub-application A, start sub-application A based on the resources required by sub-application A and display the page of sub-application A.

[0076] The implementation method for step 36 can be as follows: In response to the launch command, an inline frame element iframe3 (hereinafter referred to as element iframe3) is created. Since the page of sub-application A needs to be displayed, the state of element iframe3 can be set to visible. Element iframe3 is used to embed sub-application A within the main application. Element iframe3 can be created by the main application. Then, element iframe3 is inserted into the main application's structural information, such as the DOM tree, and based on element iframe3 and the resources required by sub-application A, runtime initialization of sub-application A and rendering of the page of sub-application A are performed, followed by page display.

[0077] In one embodiment, in response to the creation of element iframe3, the flag position of sub-application A can be set to a first state.

[0078] If a first-level warm-up is performed on sub-application A, the resources required by sub-application A are obtained in advance. If a startup command is received, sub-application A is started based on the resources required by sub-application A, and then the page of sub-application A is displayed. Performing a first-level warm-up can reduce the time spent loading resources after receiving a startup command.

[0079] Step 37: In response to the launch command of sub-application A, load the resources required by sub-application A, launch sub-application A based on the resources required by sub-application A, and display the page of sub-application A.

[0080] The implementation method for step 37 can be as follows: In response to the launch command, an inline frame element iframe4 (hereinafter referred to as element iframe4) is created, element iframe4 is inserted into the structure information of the main application, the resources required by sub-application A are loaded, and based on element iframe4 and the resources required by sub-application A, runtime initialization of sub-application A and page rendering of sub-application A are performed, and the rendered page is displayed.

[0081] In one embodiment, in response to the creation of element iframe4, the flag position of sub-application A can be set to a first state.

[0082] The main application can create inline frame elements for sub-application A, and use these inline frame elements for resource loading, runtime initialization, and page rendering.

[0083] Through the above technical solution, the first-level preheating and second-level preheating are progressive. First-level preheating can be performed earlier, when the main application page is visible, to avoid impacting the main application page's progress. Second-level preheating is performed when the main application page becomes interactive, and its implementation can be determined based on the trigger probability of sub-applications. On the one hand, based on sub-application information, preheating is performed on sub-applications with higher usage probability, reducing resource waste. On the other hand, with second-level preheating performed on sub-application A, its page can be quickly displayed and become interactive, with a lower time frame from receiving the launch command to the page becoming interactive. Performing first-level preheating on sub-application A can also reduce the time spent loading resources after receiving the launch command.

[0084] The following describes how to determine the actual time to interact (TTI) of a sub-application's page.

[0085] Sub-applications and the main application each have their own independent high-precision clocks, and they belong to independent browsing contexts. Time cannot be directly compared across contexts. Some related technologies use the interactive moment of the sub-application page itself as the actual interactive moment, but this method ignores the visibility moment of the sub-application page from the perspective of the main application. Other related technologies use the visibility moment of the sub-application page obtained by the main application as the actual interactive moment, but this ignores whether the sub-application is actually ready internally.

[0086] Considering the above issues, this paper takes the later of the two moments—the moment when the main application obtains the visibility of the sub-application page and the moment when the sub-application page becomes interactive—as the actual interactive moment of the sub-application page.

[0087] Combination Figure 4 This section describes the process of determining and reporting the actual interactive moments of sub-application pages.

[0088] Reference Figure 4 The main application creates an inline frame element for sub-application A and sends the base time to the inline frame element of sub-application A.

[0089] The inline frame element here can be iframe2, iframe3, or iframe4 mentioned above; that is, it refers to the inline frame element created by the main application to embed the sub-application A.

[0090] The main application and the sub-application can communicate via cross-origin communication methods (such as the `postMessage` method). The main application can send a reference time and a session identifier to the inline frame element of sub-application A. The reference time can be, for example, the main application's time origin, i.e., the time when the main application recorded itself being triggered, or other reference times. The session identifier can be a session identifier assigned by the main application to sub-application A, and can be carried by the main application when interacting with sub-application A.

[0091] After receiving the reference time, the inline frame element of sub-application A uses the reference time as the time origin. In this way, both the main application and the sub-application record time according to this reference time, so that the main application and the sub-application maintain the same timeline.

[0092] During the warm-up phase, the main application can record the moment when the resources of sub-application A are fully loaded. If a secondary warm-up is performed, sub-application A can record the moment when the page is internally interactive during the warm-up phase. This internally interactive moment can be the moment when sub-application A completes its pre-launch.

[0093] If no launch command is received for sub-application A, the reporting of the interactive moment of sub-application A's page can be omitted. This is to prevent the page from becoming interactive prematurely when the sub-application A has not been triggered but is being warmed up, and to avoid reporting a distorted internal interactive moment to the server. Distortion means that it is not the interactive moment perceived by the user.

[0094] If the main application receives a launch command from sub-application A, it can record the moment when the page of sub-application A becomes visible. For example, in the case of a two-level warm-up, the moment when the main application sets the state of the element iframe2 to visible can be the moment when the main application sends the moment when the page becomes visible to the inline frame element of sub-application A.

[0095] Sub-application A can use a later time as the actual interactive time of the page and report it to the server. The later time refers to the later of the visible time sent by the main application and the internal interactive time recorded by sub-application A. The actual interactive time can be understood as the interactive time of the page of sub-application A as perceived by the user.

[0096] If a secondary preheating is not performed, the page of sub-application A is not interactive before startup. Sub-application A then records the interactive moment of its own page after actual startup.

[0097] If sub-application A has undergone a secondary warm-up, and its page is already internally interactive before receiving the launch command, then the visible moment recorded by the main application can be taken as the actual interactive moment of sub-application A's page.

[0098] If sub-application A has undergone a first-level warm-up or not, and the main application can see the sub-application A's page, but the sub-application A is still performing initialization or other operations and the page is not yet interactive, then the interactive moment recorded by the sub-application can be taken as the actual interactive moment of the sub-application A's page.

[0099] In this way, on the one hand, both the main application and the sub-application record time according to the baseline time, ensuring that they maintain the same timeline. On the other hand, by using the later time as the actual interactive time of the sub-application page, and with the sub-application being warmed up in advance, the perceived interactive time of the page can be measured more accurately.

[0100] Figure 5 This is a flowchart illustrating an application processing method, such as... Figure 5 As shown, the application processing method can be applied to the client, such as... Figure 1 Client 11 shown, as Figure 5 As shown, the application processing method may include steps 51 and 52.

[0101] Step 51: Obtain the first information.

[0102] The first information includes the first resource, or includes the first resource and pre-launch information. The first resource includes the resources required by the first application, and the pre-launch information includes information obtained by pre-launching the first application based on the first resource.

[0103] Step 52: In response to the launch command, display the first page based on the first information. The launch command is used to launch the first application, and the first page includes the pages of the first application.

[0104] The first application can refer to sub-application A in the above embodiment. The first application includes sub-applications of the second application, and the second application can refer to the main application in the embodiment. The first page is, for example, the homepage of the first application.

[0105] As described above, when performing a first-level preheating of the first application, the first information obtained includes the first resources. When performing a second-level preheating of the first application, the first information obtained includes the first resources and pre-startup information. The explanations of the first-level and second-level preheating methods can be found in the embodiments described above.

[0106] The launch command can be triggered by an event or automatically. If the first information includes the first resource, in response to the launch command, the first application can be launched based on the first resource, and then the first page can be displayed. If the first information includes the first resource and pre-launch information, in response to the launch command, the inline frame element of the first application created during pre-launch can be set to a visible state, and the first page can be displayed.

[0107] Through the above scheme, the first information can be understood as information obtained by pre-running the startup process of the first application before receiving the startup command. If the first resources required by the first application are pre-loaded, and the first application is not pre-started based on the first resources, then the first information includes the first resources. If the resources required by the first application are pre-loaded, and the first application is pre-started, then the first information includes the first resources and pre-start information. When the first information includes the first resources, the time spent loading resources after receiving the startup command can be reduced. When the first information includes both the first resources and pre-start information, the first page can be displayed quickly after receiving the startup command, thereby alleviating the problem of long startup time for the first application after receiving the startup command.

[0108] Optionally, step 51 may include: in response to the second page being visible and the second information satisfying the first preset condition, loading the first resource, wherein the second page includes the page of the second application.

[0109] The second information includes the configuration information and / or usage record information of the first application. The configuration information, for example, indicates whether the function switch of the first application is enabled, and the usage record information can refer to the usage record information of sub-application A in the above embodiment. To determine whether the second information meets the first preset condition, refer to the description of determining whether to perform primary preheating in the above embodiment.

[0110] By adopting the above solution, loading resources for the first application while the second page is visible can avoid affecting the opening progress of the main application's page. Furthermore, if the second information meets the first preset condition, it indicates that the first application is highly likely to be used. For sub-applications with a high likelihood of use, resources are pre-loaded, mitigating resource waste.

[0111] In one embodiment, in response to the second page being visible, the second information meeting the first preset condition, and the first resource usage not reaching the first preset threshold, the first resource is loaded.

[0112] The first resource usage includes, for example, browser memory usage and the number of concurrent tasks when the second page is visible. A first preset threshold can be set in advance; if the first resource usage does not reach the first preset threshold, it means that resources are not limited and the first resource can be loaded.

[0113] Optionally, loading the first resource may include: Create the first object, which will be used to perform resource loading operations; Load the first resource through the first object.

[0114] Optionally, the first object may include a fourth inline frame element or a webpage worker thread. The fourth inline frame element is in an invisible state, as described above in the description of step 32. The fourth inline frame element refers to the inline frame element iframe1 mentioned above. Additionally, besides inline frame elements, the first object can also be other types of page elements capable of resource loading, without limitation.

[0115] Through the above technical solution, the first object can be an invisible carrier that does not carry application instances, used to preload the resources required by the first application, and has a low resource consumption on the browser.

[0116] Optionally, step 51 may also include: In response to the second page being in an interactive state and the third information meeting the second preset conditions, the first application is pre-launched based on the first resource to obtain pre-launch information, the third information including information related to triggering the first application.

[0117] This embodiment can be referred to the description of step 33 above. The second preset condition can be preset, and the third information satisfying the second preset condition indicates that the first application is more likely to be triggered. Based on the first resource, the first application is pre-started, corresponding to the second-level preheating described above.

[0118] Based on the above technical solution, considering that users typically trigger the launch of sub-applications when the main application's page is interactive, the first application can be pre-launched while the second page is interactive. Furthermore, the third information satisfying the second preset condition indicates a high probability that the first application will be triggered; therefore, based on the first resource, the first application can be further pre-launched to more quickly display the first page upon receiving a launch command.

[0119] In one embodiment, in response to the second page being in an interactive state, the third information meeting the second preset condition, and the second resource usage not reaching the second preset threshold, the first application is pre-launched based on the first resource.

[0120] The second resource usage includes, for example, browser memory usage and the number of concurrent tasks when the second page is interactive. The second preset threshold can be set in advance; if the second resource usage does not reach the second preset threshold, it indicates that resources are not limited, and the first application can be pre-launched.

[0121] Optionally, the triggering method of the first application includes event triggering; the third information includes at least one of the following: notification status information of the first application, intent information corresponding to the first application, and event information corresponding to the first control, wherein the first control is used to trigger the startup of the first application; or, The first application is triggered automatically, and the third information includes matching information, which is used to indicate whether the content on the second page matches the first application.

[0122] In this embodiment, the description of the third information above can be referred to.

[0123] In this way, considering that the first application can be triggered in different ways, different information can be used to determine the probability that the first application will be triggered.

[0124] Optionally, the first information includes the first resource and pre-boot information; such as Figure 6 As shown, the first application can be pre-launched through steps 61 to 63. Accordingly, the implementation of pre-launching the first application based on the first resource includes steps 61 to 63.

[0125] Step 61: Create the first inline frame element and set its state to invisible.

[0126] The first inline frame element is used to embed the first application in the second application, and the first application includes sub-applications of the second application.

[0127] Step 62: Insert the first inline frame element into the structure information of the second application.

[0128] Step 63: Based on the first inline frame element and the first resource, perform runtime initialization of the first application and pre-rendering of the first page.

[0129] Figure 6 The implementation methods for each step can be found in the description of step 34 above. The first inline frame element refers to the inline frame element iframe2 mentioned above. The structural information of the second application can be found in the DOM tree of the main application mentioned above.

[0130] Thus, the pre-launch information can include the first inline frame element, information obtained during runtime initialization, and information obtained during pre-rendering. After runtime initialization and pre-rendering, it can be understood that the pre-rendering work for the first page has been completed, so that the first page can be quickly displayed after receiving the launch command.

[0131] Optionally, in response to a launch command, a first page may be displayed based on the first information, which may include: In response to the launch command, set the state of the first inline frame element to visible; Display the first page.

[0132] In this implementation, since the first inline frame element has been pre-created before the start command is received, the state of the first inline frame element is initially invisible. In response to the start command, the state of the first inline frame element can be set to visible, thereby displaying the first page and achieving rapid display of the first page.

[0133] Optionally, the first information includes a first resource; in response to the launch command, based on the first information, displaying a first page may include: In response to the launch command, a second inline frame element is created. The second inline frame element is used to embed the first application in the second application. The first application includes sub-applications of the second application. Insert the second inline frame element into the structure information of the second application; Based on the second inline frame element and the first resource, perform runtime initialization of the first application and rendering of the first page; Display the first page.

[0134] This embodiment can be referred to the explanation of step 36 above, that is, in the case of first-level preheating, based on the pre-obtained resources, the first application is launched and the first page is displayed. The second inline frame element can be referred to as the inline frame element iframe3 above.

[0135] With the above technical solution, when the first information includes the first resource, after receiving the start command, the first application can be started based on the first resource and the first page can be displayed, which can reduce the time spent loading resources after receiving the start command.

[0136] Optionally, the application processing method may also include: In response to the creation of a third inline frame element, the flag of the first application is set to a first state. The third inline frame element is used to embed the first application in the second application, and the first state is used to indicate that the inline frame element of the first application has been created during the session of the first application.

[0137] The third inline frame element here can be either the first inline frame element created when the first information includes the first resource and the pre-startup information, or the second inline frame element created when the first information includes the first resource.

[0138] The flags for the first application can be found in the description of the flags for sub-application A above, and the session process for the first application can be found in the description of the session process for sub-application A.

[0139] The purpose of setting a flag is to avoid repeatedly creating inline frame elements for the first application. By setting the flag to the first state, it can be determined that there is no need to repeatedly create inline frame elements for the first application.

[0140] Optionally, the application processing method may also include: The first interactive moment is obtained. The first interactive moment is recorded by the first application based on the reference moment. The first interactive moment represents the interactive moment when the first page is not displayed or the interactive moment when the first page is displayed. In response to the launch command, the visible time is obtained. The visible time is recorded by the second application based on the reference time. The visible time includes the time when the first page is visible. The first application includes a sub-application of the second application. Obtain the second interactive moment, which includes the later of the first interactive moment and the visible moment, and the second interactive moment represents the interactive moment of the first page; Send the second interactive moment. Sending can refer to sending it to the server.

[0141] This embodiment can be referred to as... Figure 4 The introduction is as follows. For example, in response to the creation of a fourth inline frame element, the second application sends a reference time to the fourth inline frame element, so that the first application can perform time recording based on the reference time.

[0142] In one embodiment, the first application is pre-launched before receiving the launch command. The first interactive moment then refers to the interactive moment when the first page is not displayed. That is, when the first page is not displayed before the launch command is received, the first application is already able to make the first page interactive.

[0143] In one embodiment, if the first application is not pre-started before receiving the start command, then the first interactive moment refers to the interactive moment when the first page has been displayed, that is, after the first page is displayed, initialization and other operations are performed before reaching the interactive state.

[0144] In this way, both the first and second applications record time according to the baseline time, ensuring that they maintain the same timeline. The second interactive moment can be understood as the actual interactive moment of the first page. By using the later moment as the second interactive moment, and with the first application preheating in advance, the perceived interactive moment of the page can be measured more accurately.

[0145] Furthermore, reporting the second interactive moment only after receiving the start command can avoid the problem of reporting a distorted interactive moment to the server when the first application has not been triggered but the first page has reached the interactive state in advance.

[0146] Optionally, during the session of the first application, the number of times to send is a preset number, which is the number of times to send actual interactive moments, including the interactive moments of the first page.

[0147] In this way, with the preset number of times set to once, the first interactive moment of the first page can be reported only once during the session of the first application, reducing the problem of repeated reporting in cases such as application retries.

[0148] Based on the same inventive concept, an application processing device is also provided. Figure 7 This is a block diagram illustrating an application processing device, such as... Figure 7 As shown, the application processing device 70 includes: The first obtaining module 71 is configured to obtain first information, the first information including a first resource, or including the first resource and pre-start information, the first resource including resources required by the first application, and the pre-start information including information obtained by pre-starting the first application based on the first resource; The display module 72 is configured to display a first page in response to a launch command, based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

[0149] Optionally, the first obtaining module 71 includes: The loading submodule is configured to load the first resource in response to the second page being visible and the second information satisfying the first preset condition. The second page includes the page of the second application, the first application includes the sub-applications of the second application, and the second information includes the configuration information and / or usage record information of the first application.

[0150] Optionally, the loading submodule is configured as follows: Create a first object, which is used to perform resource loading operations; The first resource is loaded through the first object.

[0151] Optionally, the first obtaining module 71 further includes: The first pre-launch submodule is configured to pre-launch the first application based on the first resource in response to the second page being in an interactive state and the third information satisfying the second preset condition, thereby obtaining the pre-launch information, wherein the third information includes information related to triggering the first application.

[0152] Optionally, the triggering method of the first application includes event triggering; the third information includes at least one of the following: notification status information of the first application, intent information corresponding to the first application, and event information corresponding to the first control, wherein the first control is used to trigger the launch of the first application; or, The first application is triggered automatically, and the third information includes matching information, which is used to characterize whether the content on the second page matches the first application.

[0153] Optionally, the first information includes the first resource and the pre-launch information; the first application is pre-launched through the following modules: The first creation submodule is configured to create a first inline frame element and set the state of the first inline frame element to invisible. The first inline frame element is used to embed the first application in the second application, and the first application includes a sub-application of the second application. The first insertion submodule is configured to insert the first inline frame element into the structural information of the second application; The second pre-launch submodule is configured to perform runtime initialization of the first application and pre-rendering of the first page based on the first inline frame element and the first resource.

[0154] Optionally, the display module 72 is configured as follows: In response to the launch command, the state of the first inline frame element is set to visible; Display the first page.

[0155] Optionally, the first information includes the first resource; The display module 72 includes: The second creation submodule is configured to create a second inline frame element in response to a startup command. The second inline frame element is used to embed the first application in the second application, and the first application includes a sub-application of the second application. The second insertion submodule is configured to insert the second inline frame element into the structural information of the second application; The startup submodule is configured to perform runtime initialization of the first application and rendering of the first page based on the second inline frame element and the first resource; The display submodule is configured to display the first page.

[0156] Optionally, the application processing device 70 further includes: The state setting module is configured to set the flag of the first application to a first state in response to the creation of a third inline frame element. The third inline frame element is used to embed the first application in the second application, and the first state is used to indicate that the inline frame element of the first application has been created during the session of the first application.

[0157] Optionally, the application processing device 70 further includes: The second acquisition module is configured to acquire a first interactive moment, which is recorded by the first application based on a reference moment. The first interactive moment represents the interactive moment when the first page is not displayed or the interactive moment when the first page is displayed. The third acquisition module is configured to acquire the visible time in response to the launch command. The visible time is recorded by the second application based on the reference time. The visible time includes the time when the first page is visible. The first application includes a sub-application of the second application. The fourth obtaining module is configured to obtain a second interactive moment, the second interactive moment including the later of the first interactive moment and the visible moment, and the second interactive moment represents the interactive moment of the first page; The sending module is configured to send the second interactive moment.

[0158] Using the application processing device 70, the first information can be understood as information obtained by pre-running the startup process of the first application before receiving the startup command. If the first resources required by the first application are pre-loaded, and the first application is not pre-started based on the first resources, then the first information includes the first resources. If the resources required by the first application are pre-loaded, and the first application is pre-started, then the first information includes the first resources and pre-start information. When the first information includes the first resources, the time spent loading resources after receiving the startup command can be reduced. When the first information includes both the first resources and pre-start information, the first page can be displayed quickly after receiving the startup command, thereby alleviating the problem of long startup time for the first application after receiving the startup command.

[0159] For the effects that each module in the application processing device 70 can achieve, please refer to the effect description of the corresponding step in the method.

[0160] The following is for reference. Figure 8 The diagram illustrates a structural schematic of an electronic device 600 suitable for implementing the above-described method. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Personal Computers), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs (Televisions), desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not be construed as limiting its functionality or scope of use.

[0161] like Figure 8 As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. The random access memory 603 also stores various programs and data required for the operation of electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. An input / output (I / O) interface 605 is also connected to bus 604.

[0162] Typically, the following devices can be connected to the input / output interface 605: input devices 606 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 608 including, for example, magnetic tape, hard disk, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0163] In particular, depending on certain circumstances, the processes described in the flowchart above can be implemented as computer software programs. For example, a computer program product is provided, comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. This computer program can be downloaded and installed from a network via communication device 609, or installed from storage device 608, or installed from read-only memory 602. When the computer program is executed by processing device 601, it performs the functions defined in the above-described methods.

[0164] It should be noted that the aforementioned computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM, or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In one case, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In another case, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (Radio Frequency), etc., or any suitable combination thereof.

[0165] In some scenarios, clients can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad-hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0166] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0167] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: obtain first information, the first information including a first resource, or including the first resource and pre-start information, the first resource including resources required by a first application, and the pre-start information including information obtained by pre-starting the first application based on the first resource; In response to a launch command, a first page is displayed based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

[0168] Computer program code for performing the above operations can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages, as well as conventional procedural programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0169] The flowcharts and block diagrams in the accompanying figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products under various scenarios. Each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that, in some alternative cases, the functions indicated in the blocks may occur in a different order than those indicated in the figures. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0170] The modules mentioned above can be implemented in software or hardware. In some cases, the name of a module does not necessarily limit the module itself; for example, the first acquisition module can also be described as "the module that acquires first information".

[0171] The functions described above can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application-Specific Standard Parts (ASSPs), Systems on Chips (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0172] In this context, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0173] The above description is merely illustrative and explains the technical principles employed. Those skilled in the art should understand that the scope of this document is not limited to the specific combinations of the above-described technical features, but should also cover any combination of the above-described technical features or their equivalents without departing from the above concept.

[0174] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of this paper. Certain features described in the context of a single example can also be implemented in combination in a single example. Conversely, various features described in the context of a single example can also be implemented individually or in any suitable sub-combination in multiple examples.

[0175] Although this document has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims. Regarding the aforementioned apparatus, the specific manner in which the various modules perform their operations has already been described in detail in the section concerning the method, and will not be elaborated upon here.

Claims

1. An application processing method, comprising: Obtain first information, the first information including a first resource, or including the first resource and pre-launch information, the first resource including resources required by the first application, and the pre-launch information including information obtained by pre-launching the first application based on the first resource; In response to a launch command, a first page is displayed based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

2. The application processing method according to claim 1, wherein obtaining the first information includes: In response to the second page being visible and the second information meeting the first preset condition, the first resource is loaded. The second page includes a page of the second application, the first application includes a sub-application of the second application, and the second information includes configuration information and / or usage record information of the first application.

3. The application processing method according to claim 2, wherein loading the first resource includes: Create a first object, which is used to perform resource loading operations; The first resource is loaded through the first object.

4. The application processing method according to claim 2, wherein obtaining the first information further includes: In response to the second page being in an interactive state and the third information satisfying the second preset condition, the first application is pre-launched based on the first resource to obtain the pre-launch information, wherein the third information includes information related to triggering the first application.

5. The application processing method according to claim 4, wherein the triggering method of the first application includes event triggering; the third information includes at least one of the following: notification status information of the first application, intent information corresponding to the first application, and event information corresponding to the first control, wherein the first control is used to trigger the startup of the first application; or, The first application is triggered automatically, and the third information includes matching information, which is used to characterize whether the content on the second page matches the first application.

6. The application processing method according to claim 1, wherein the first information includes the first resource and the pre-start information; the first application is pre-started in the following manner: Create a first inline frame element and set the state of the first inline frame element to invisible. The first inline frame element is used to embed the first application in the second application, and the first application includes a sub-application of the second application. Insert the first inline frame element into the structure information of the second application; Based on the first inline frame element and the first resource, the runtime initialization of the first application and the pre-rendering of the first page are performed.

7. The application processing method according to claim 6, wherein displaying the first page based on the first information in response to the launch command includes: In response to the launch command, the state of the first inline frame element is set to visible; Display the first page.

8. The application processing method according to claim 1, wherein the first information includes the first resource; The step of responding to the launch command and displaying the first page based on the first information includes: In response to a launch command, a second inline frame element is created for embedding the first application in a second application, the first application including a sub-application of the second application; Insert the second inline frame element into the structure information of the second application; Based on the second inline frame element and the first resource, the runtime initialization of the first application and the rendering of the first page are performed. Display the first page.

9. The application processing method according to claim 7 or 8, further comprising: In response to the creation of a third inline frame element, the flag of the first application is set to a first state, the third inline frame element being used to embed the first application in the second application, the first state being used to indicate that the inline frame element of the first application has been created during the session of the first application.

10. The application processing method according to claim 1, further comprising: The first interactive moment is obtained. The first interactive moment is recorded by the first application based on a reference moment. The first interactive moment represents the interactive moment when the first page is not displayed or the interactive moment when the first page is displayed. In response to the launch command, a visible time is obtained. The visible time is recorded by the second application based on the reference time. The visible time includes the time when the first page is visible. The first application includes a sub-application of the second application. A second interactive moment is obtained, which includes the later of the first interactive moment and the visible moment, and the second interactive moment represents the interactive moment of the first page; Send the second interactive moment.

11. An application processing apparatus, comprising: The first obtaining module is configured to obtain first information, the first information including a first resource, or including the first resource and pre-start information, the first resource including resources required by the first application, and the pre-start information including information obtained by pre-starting the first application based on the first resource; The display module is configured to respond to a launch command and display a first page based on the first information. The launch command is used to launch the first application, and the first page includes the page of the first application.

12. A computer-readable medium having a computer program stored thereon, wherein, When executed by a processing device, the computer program implements the method described in any one of claims 1-10.

13. An electronic device, comprising: A storage device on which computer programs are stored; A processing apparatus for executing the computer program in the storage device to implement the method according to any one of claims 1-10.

14. A computer program product comprising a computer program, wherein, When executed by a processor, the computer program implements the method described in any one of claims 1-10.