CN114035865B - Method, device and equipment for starting small program and storage medium - Google Patents

Method, device and equipment for starting small program and storage medium Download PDF

Info

Publication number
CN114035865B
CN114035865B CN202111335873.4A CN202111335873A CN114035865B CN 114035865 B CN114035865 B CN 114035865B CN 202111335873 A CN202111335873 A CN 202111335873A CN 114035865 B CN114035865 B CN 114035865B
Authority
CN
China
Prior art keywords
applet
loading
screen
frame
framework
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.)
Active
Application number
CN202111335873.4A
Other languages
Chinese (zh)
Other versions
CN114035865A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111335873.4A priority Critical patent/CN114035865B/en
Publication of CN114035865A publication Critical patent/CN114035865A/en
Application granted granted Critical
Publication of CN114035865B publication Critical patent/CN114035865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Abstract

The disclosure provides a method, a device, equipment, a storage medium and a program product for starting an applet, and relates to the technical field of computers, in particular to the technical fields of clients, applets and the like. The specific implementation scheme is as follows: in response to a start operation for the target applet, loading the applet framework; loading a lightweight frame in the loading process of the applet frame; acquiring a skeleton screen resource corresponding to a target small program; and displaying the skeleton screen according to the lightweight frame and the skeleton screen resources.

Description

Method, device and equipment for starting small program and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the technical fields of clients, applets, and the like.
Background
An applet is a purely offline working runtime ecosystem that is physically isolated by a render layer and a logical layer. Since the applet is based on the standard JavaScript extended DSL (Domain Specific Language) syntax and is supported by the localization capability, the applet has development efficiency close to HTML5 and user experience close to local application, and is popular with developers.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, storage medium, and program product for starting an applet.
According to an aspect of the present disclosure, there is provided a method of starting an applet, including: in response to a start operation for the target applet, loading the applet framework; loading a lightweight frame in the loading process of the applet frame; acquiring a skeleton screen resource corresponding to the target small program; and displaying the skeleton screen according to the lightweight frame and the skeleton screen resource.
According to another aspect of the present disclosure, there is provided an apparatus for starting an applet, including: the first loading module is used for responding to the starting operation aiming at the target small program and loading the small program framework; the second loading module is used for loading the lightweight frame in the loading process of the applet frame; the acquisition module is used for acquiring the framework screen resources corresponding to the target small program; and the first display module is used for displaying the skeleton screen according to the lightweight frame and the skeleton screen resources.
Another aspect of the present disclosure provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the embodiments of the present disclosure.
According to another aspect of the disclosed embodiments, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method shown in the disclosed embodiments.
According to another aspect of the embodiments of the present disclosure, there is provided a computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the steps of the method shown in the embodiments of the present disclosure.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of an application scenario of a method, an apparatus, an electronic device, and a storage medium for launching an applet, according to an embodiment of the disclosure;
FIG. 2 schematically shows a flow chart of a method of launching an applet, according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow diagram of a method of loading a lightweight framework according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a flow diagram of a method of obtaining skeletal screen resources in accordance with an embodiment of the present disclosure;
FIG. 5 schematically shows a flow chart of a method of launching an applet, according to an embodiment of the disclosure;
FIG. 6 schematically shows a block diagram of an apparatus for launching an applet, in accordance with an embodiment of the present disclosure; and
FIG. 7 schematically shows a block diagram of an example electronic device that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of embodiments of the present disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
An application scenario of the method and apparatus provided by the present disclosure will be described below with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario of a method, an apparatus, an electronic device, and a storage medium for starting an applet according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of an application scenario in 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, but 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 application scenario 100 includes a terminal device 110 and a data server 120.
The terminal device 110 may interact with the data server 120 through a network to receive or transmit messages or the like. A host Application (App) 111 may be run in the terminal device 110. The host applications 111 may include, for example, shopping-type applications, web browser applications, search-type applications, instant messaging tools, mailbox clients, social platform software, and the like (by way of example only).
Terminal device 110 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like.
The data server 120 may be a server for providing data services. The data Server 120 may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a conventional physical host and VPS service (Virtual Private Server, or VPS for short). The data server 120 may also be a server of a distributed system, or a server incorporating a blockchain.
In accordance with embodiments of the present disclosure, the applet may run based on the host application 111. For example, an applet frame may be loaded in the host application 111, and then a corresponding applet data package may be obtained, which is loaded in the applet frame to run the corresponding applet. Wherein the applet data package may be obtained from the data server 120, for example.
According to an embodiment of the present disclosure, the host application 111 may be a Native application, having a Native component (Native) 1111. The applet may communicate with the native component 1111, and may also call a system API (Application Programming Interface) through the native component 1111.
In accordance with embodiments of the present disclosure, an applet may use a two-thread model, including a logic layer 1112 and a rendering layer 1113. The logic layer 1112 may include a JavaScript engine that may be used to execute JavaScript code, control generation and processing of applet data, and the like. The rendering layer 1113 may include a WebView component, and may be used to process rendering of a page, event interaction behavior of a user, and the like.
When the applet is started, the applet frame needs to be loaded first, and then the corresponding applet data packet needs to be loaded. When the applet frame is not loaded completely, the applet is always in a loaded page without actual content, and the user needs to wait for a long time to see the applet page containing the actual content. The long waiting process easily causes a user to have a nervous mood.
According to the embodiment of the disclosure, the framework screen resource corresponding to the applet can be acquired before the applet framework is loaded, then the lightweight framework is loaded, and the framework screen is displayed by using the lightweight framework and the framework screen resource. The skeleton screen can contain the frame that corresponds with the applet page, but does not contain the page content that has actual meaning, also does not contain the page subassembly, therefore the loading speed is very fast to can reduce user and be long to the wait of loading the page, alleviate the user because of the impatient mood that waits to produce, improve user's experience.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the related data such as the small program data packet and the framework screen resource are all in accordance with the regulations of the relevant laws and regulations, and do not violate the customs of public order.
Figure 2 schematically shows a flow chart of a method of starting an applet according to an embodiment of the disclosure.
As shown in FIG. 2, the method 200 includes operations S210-S240. The method 200 may be performed by the terminal device shown above, for example.
In operation S210, an applet frame is loaded in response to a start operation for a target applet.
Then, in operation S220, during the loading of the applet frame, the lightweight frame is loaded.
In operation S230, a skeleton screen resource corresponding to the target applet is acquired.
In operation S240, the skeleton screen is displayed according to the lightweight frame and the skeleton screen resources.
In accordance with implementations of the present disclosure, an applet framework may include various related components for running an applet, which may include, for example, an end container and a front end framework. The front-end framework may include an API set and related components, and the like.
According to embodiments of the present disclosure, loading the applet frame includes, for example, may include creating a logical layer container and a rendering layer container, and then loading the applet frame code using the logical layer container and the rendering layer container.
According to embodiments of the present disclosure, a lightweight framework may include, for example, components in the rendering layer for creating page view container dependencies. According to other embodiments of the present disclosure, the lightweight framework may further include routing API, request, storage, etc. components in the applet framework, according to actual needs. Compared with an applet framework, the lightweight framework does not comprise a logic layer, and additionally comprises more simplified APIs and components, so that the data size is smaller and the loading speed is higher.
The method of loading the lightweight framework shown above is further described below with reference to FIG. 3.
FIG. 3 schematically shows a flow diagram of a method of loading a lightweight framework according to an embodiment of the disclosure.
As shown in fig. 3, the method 320 includes operations S321 to S322.
In operation S321, lightweight frame data is acquired.
Then, in operation S322, a web page view container is created using the lightweight frame data.
According to embodiments of the present disclosure, lightweight frame data may be obtained, wherein the lightweight frame data includes a page view container component. The page view container is then created using the page view container component.
In this embodiment, the skeleton screen resource may include a template file of the skeleton screen, a configuration file of the skeleton screen, and the like. The template file may be used to describe the style of the skeletal screen, among other things. The configuration file may be used to describe the correspondence of the page and the skeletal screen template. The pages may include, for example, a home page, a product details page, a message listing page, and the like.
For example, in this embodiment, multiple pages may be configured to correspond to the same skeleton screen template, or one skeleton screen template may be configured for each page.
The skeleton screen may be a template containing a display frame corresponding to a loaded page before the applet page is loaded with data. By displaying the skeleton screen page describing the approximate frame of the current small program page to the user before the small program page is completely rendered, and then switching to the small program page rendered by the real data, the small program page loading process can be smoother, the anxiety of the user caused by waiting is relieved, and the experience of the user is improved.
According to embodiments of the present disclosure, lightweight frameworks are more compact than applet frameworks, and therefore load faster. In the loading process of the small program frame, the skeleton screen can be generated more quickly by using the lightweight frame, so that the small program performance can be improved, and the waiting time of a user is shortened. In addition, compared with a framework screen created in an applet framework screen or a service, the framework screen is loaded through the lightweight framework for a shorter loading time, so that better user experience can be brought to a user.
According to embodiments of the present disclosure, the skeletal screen resources may be contained in an applet package. In this embodiment, each applet may correspond to an applet data packet. The applet data package may include development code and resources for the applet, etc. According to the embodiment of the disclosure, the applet data packet can be stored locally in the terminal device or stored in the data server.
The method for acquiring the skeletal screen resources shown above is further described below with reference to fig. 4.
FIG. 4 schematically shows a flow diagram of a method of acquiring skeletal screen resources in accordance with an embodiment of the present disclosure.
As shown in FIG. 4, the method 430 includes operations S431-S433.
In operation S431, an open directory of the target applet is acquired.
Then, in operation S432, an applet data package corresponding to the target applet is searched according to the open directory.
In operation S433, a skeleton screen resource in the applet data packet is acquired.
According to embodiments of the present disclosure, the open directory may be obtained, for example, from a start request of the target applet. The start request is generated according to a start operation for the target applet.
According to an embodiment of the present disclosure, the open directory indicates a file location of an applet data package corresponding to the target applet. Thus, an applet data package corresponding to the target applet can be located based on the open directory.
According to an embodiment of the present disclosure, after obtaining the skeletal screen resources, the skeletal screen may be rendered in the web view container according to the skeletal screen resources. For example, a skeletal screen template for the target page may be determined from a configuration file in the skeletal screen resource, and then the skeletal screen may be rendered in the web page view container according to the skeletal screen template.
Figure 5 schematically shows a flow chart of a method of starting an applet according to an embodiment of the disclosure.
As shown in FIG. 5, the method 500 includes operations S510-S590. The method 500 may be performed by the terminal device shown above, for example.
In operation S510, in response to a start operation for a target applet, an applet frame is loaded.
Then, in operation S520, it is determined whether the applet frame is completely loaded. In case the applet frame loading is not completed, operation S530 is performed. In the case where the applet frame loading has been completed, operation S590 is performed.
In operation S530, the lightweight frame is loaded.
In operation S540, a skeleton screen resource corresponding to the target applet is acquired.
In operation S550, the skeleton screen is displayed according to the lightweight frame and the skeleton screen resources.
According to an embodiment of the present disclosure, for example, reference may be made to the above in operations S510 to S550, which are not described herein again.
In operation S560, the applet frame load is waited for to complete. And under the condition that the applet framework is loaded, loading the applet data packet corresponding to the target applet by using the applet framework.
In operation S570, a content page is created according to the applet package.
According to embodiments of the present disclosure, a content page may include, for example, a page having actual content.
In operation S580, the content page is presented and the skeleton screen is deleted.
According to embodiments of the present disclosure, a routing application program interface of a lightweight framework may be invoked, for example, to jump from a skeletal screen to a content page. Namely, the light weight frame can be switched to the applet frame, so that various functions of the applet can be normally realized.
In operation S590, a subsequent applet page is rendered using the applet frame.
According to embodiments of the present disclosure, lightweight frameworks are more compact than applet frameworks, and therefore load faster. In the loading process of the small program frame, the framework screen can be generated more quickly by using the lightweight frame, so that the small program performance can be improved, and the waiting time of a user is reduced. In addition, compared with a framework screen created in an applet framework screen or a service, the framework screen is loaded through the lightweight framework for a shorter loading time, so that better user experience can be brought to a user.
FIG. 6 schematically shows a block diagram of an apparatus for launching an applet, according to an embodiment of the disclosure.
As shown in fig. 6, the apparatus 600 for launching an applet includes a first loading module 610, a second loading module 620, an obtaining module 630 and a first presenting module 640.
A first loading module 610 for loading the applet framework in response to a start operation for the target applet.
And a second loading module 620, configured to load the lightweight framework in the process of loading the applet framework.
An obtaining module 630, configured to obtain a skeleton screen resource corresponding to the target applet.
And the first display module 640 is used for displaying the skeleton screen according to the lightweight frame and the skeleton screen resources.
According to the embodiment of the disclosure, the obtaining module comprises a catalog obtaining sub-module, a searching sub-module and a resource obtaining sub-module. The directory obtaining submodule is used for obtaining an open directory of the target small program. And the searching sub-module is used for searching the applet data packet corresponding to the target applet according to the open directory. And the resource acquisition submodule is used for acquiring the framework screen resources in the small program data packet.
According to an embodiment of the present disclosure, the second loading module includes a data acquisition submodule and a first creation submodule. The data acquisition submodule is used for acquiring lightweight frame data, wherein the lightweight frame data comprise a page view container component. And the first creating submodule is used for creating the webpage view container by utilizing the lightweight frame data.
According to an embodiment of the present disclosure, the first display module includes a rendering submodule for rendering the skeleton screen in the webpage view container according to the skeleton screen resource.
According to an embodiment of the present disclosure, the first loading module includes a second creating submodule and a code loading submodule. And the second creating submodule is used for creating a logic layer container and a rendering layer container. And the code loading submodule is used for loading the small program frame code by utilizing the logic layer container and the rendering layer container.
According to an embodiment of the present disclosure, the apparatus may further include a third loading module, a creating module, and a second presenting module. And the third loading module is used for loading the applet data packet corresponding to the target applet by using the applet framework under the condition that the applet framework is loaded. And the creating module is used for creating a content page according to the applet data packet. And the second display module is used for displaying the content page and deleting the skeleton screen.
According to an embodiment of the disclosure, the second presentation module includes a setup sub-module for invoking a routing application program interface of the lightweight framework to jump from the skeleton screen to the content page.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 7 schematically illustrates a block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as the method of launching an applet. For example, in some embodiments, the method of launching an applet may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method of launching an applet described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured in any other suitable way (e.g., by means of firmware) to perform the method of launching an applet.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as data server 120), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (16)

1. A method of initiating an applet, comprising:
in response to a start operation for the target applet, loading the applet framework;
loading a lightweight frame in the loading process of the small program frame;
obtaining a skeleton screen resource corresponding to the target small program, wherein the skeleton screen resource comprises a template file and a configuration file of a skeleton screen; and
and displaying the skeleton screen according to the lightweight frame and the skeleton screen resource.
2. The method of claim 1, wherein the obtaining skeletal screen resources comprises:
acquiring an open directory of the target applet;
acquiring an applet data packet corresponding to the target applet according to the open directory; and
and acquiring the skeleton screen resource in the small program data packet.
3. The method of claim 1, wherein the loading a lightweight framework comprises:
obtaining lightweight frame data, wherein the lightweight frame data comprises a page view container component; and
and creating a webpage view container by utilizing the lightweight frame data.
4. The method of claim 3, wherein said presenting a skeletal screen in accordance with the lightweight framework and the skeletal screen resources comprises:
rendering the skeletal screen in the webpage view container according to the skeletal screen resource.
5. The method of claim 1, wherein the loader applet framework comprises:
creating a logical layer container and a rendering layer container; and
and loading the applet frame code by utilizing the logic layer container and the rendering layer container.
6. The method of any of claims 1 to 5, further comprising:
under the condition that the small program frame is loaded, loading a small program data packet corresponding to the target small program by using the small program frame;
creating a content page according to the applet data packet; and
and displaying the content page and deleting the skeleton screen.
7. The method of claim 6, wherein the presenting the content page comprises:
invoking a routing application program interface of the lightweight framework to jump from the skeleton screen to the content page.
8. An apparatus for initiating an applet, comprising:
the first loading module is used for responding to the starting operation aiming at the target small program and loading the small program framework;
the second loading module is used for loading the lightweight frame in the loading process of the applet frame;
the acquisition module is used for acquiring framework screen resources corresponding to the target applet, wherein the framework screen resources comprise a template file and a configuration file of a framework screen; and
and the first display module is used for displaying the skeleton screen according to the lightweight frame and the skeleton screen resources.
9. The apparatus of claim 8, wherein the means for obtaining comprises:
the directory acquisition submodule is used for acquiring an open directory of the target applet;
the searching sub-module is used for searching the applet data packet corresponding to the target applet according to the open directory; and
and the resource acquisition submodule is used for acquiring the framework screen resources in the small program data packet.
10. The apparatus of claim 8, wherein the second load module comprises:
the data acquisition sub-module is used for acquiring lightweight frame data, wherein the lightweight frame data comprises a page view container component; and
and the first creating submodule is used for creating a webpage view container by utilizing the lightweight frame data.
11. The apparatus of claim 10, wherein the first presentation module comprises:
and the rendering submodule is used for rendering the skeleton screen in the webpage view container according to the skeleton screen resource.
12. The apparatus of claim 8, wherein the first load module comprises:
the second creation submodule is used for creating a logic layer container and a rendering layer container; and
and the code loading submodule is used for loading the applet frame code by utilizing the logic layer container and the rendering layer container.
13. The apparatus of any of claims 8 to 12, further comprising:
a third loading module, configured to load, by using the applet frame, an applet data packet corresponding to the target applet when the applet frame is loaded;
the creation module is used for creating a content page according to the applet data packet; and
and the second display module is used for displaying the content page and deleting the skeleton screen.
14. The apparatus of claim 13, wherein the second display module comprises:
and the setting submodule is used for calling a routing application program interface of the lightweight frame so as to jump from the skeleton screen to the content page.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202111335873.4A 2021-11-11 2021-11-11 Method, device and equipment for starting small program and storage medium Active CN114035865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335873.4A CN114035865B (en) 2021-11-11 2021-11-11 Method, device and equipment for starting small program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335873.4A CN114035865B (en) 2021-11-11 2021-11-11 Method, device and equipment for starting small program and storage medium

Publications (2)

Publication Number Publication Date
CN114035865A CN114035865A (en) 2022-02-11
CN114035865B true CN114035865B (en) 2022-10-21

Family

ID=80144162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335873.4A Active CN114035865B (en) 2021-11-11 2021-11-11 Method, device and equipment for starting small program and storage medium

Country Status (1)

Country Link
CN (1) CN114035865B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327446B (en) * 2022-03-14 2022-06-07 恒生电子股份有限公司 Processing method and device for converting small program into application program
CN116700694B (en) * 2023-08-07 2024-01-26 深圳凡泰极客科技有限责任公司 Applet engine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10721152B2 (en) * 2017-04-27 2020-07-21 Salesforce.Com, Inc. Automated analysis and recommendations for highly performant single page web applications
CN107368560B (en) * 2017-07-07 2022-11-04 腾讯科技(深圳)有限公司 Page implementation method and device for mobile application and computer-readable storage medium
CN111552473B (en) * 2020-04-27 2024-02-09 腾讯科技(深圳)有限公司 Application processing method, device and equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN114035865A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US11144711B2 (en) Webpage rendering method, device, electronic apparatus and storage medium
CN112861057B (en) Page rendering method, device, equipment and storage medium based on applet
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN114035865B (en) Method, device and equipment for starting small program and storage medium
CN112540806B (en) Method and device for rendering small program page, electronic equipment and storage medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN111767090A (en) Method and device for starting small program, electronic equipment and storage medium
US10574759B2 (en) Message-based contextual dialog
CN114327685B (en) Method and device for optimizing running speed of applet
CN115309470B (en) Method, device, equipment and storage medium for loading widget
US20210117169A1 (en) Code execution method, device, and rendering apparatus
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN112947916B (en) Method, apparatus, device and storage medium for implementing online canvas
CN114090118B (en) Method, device, equipment and storage medium for starting applet
US20210117170A1 (en) Wrapping method, registration method, device, and rendering apparatus
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
CN113760274B (en) Front-end assembly logic injection method and device
CN110599112A (en) Method and device for developing and maintaining network page
CN113342450A (en) Page processing method and device, electronic equipment and computer readable medium
CN112947918A (en) Data display method and device
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN114564133A (en) Application program display method, device, equipment and medium
CN116225437A (en) Page generation method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant