Method and device for starting applet and computer storage medium

A small program and equipment technology, applied in the direction of program control design, calculation, inter-program communication, etc., can solve the problems of large size, long waiting time, resource waste, etc., to improve startup efficiency, save resources, and solve the problem of repeated downloads Effect

Active Publication Date: 2019-10-29
SHANGHAI LIANSHANG NETWORK TECHNOLOGY CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But on the one hand, the browser kernel and JS engine, etc., which are dependent on the running environment of the applet are very large, which will lead to a long waiting time for starting the applet; on the other hand, it will inevitably cause waste of resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for starting applet and computer storage medium
  • Method and device for starting applet and computer storage medium
  • Method and device for starting applet and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] image 3 It is a flow chart of the method provided by Embodiment 1 of the present invention. In this embodiment, the foregoing first implementation manner is described. Suppose the user wants to start the applet c in the host application 1, such as image 3 As shown, the method executed by the host application 1 may include the following processes:

[0061] In 301, when the host application 1 is started, the host alliance information is synchronized from the server and stored in the local database of the host application 1.

[0062] When the host application 1 is started, it may send a synchronization request of the host alliance to the corresponding server, and the corresponding server returns information of each host application of the host alliance to the host application 1, such as the package name. Then the host application 1 can determine the host application information of the host alliance installed on the terminal device.

[0063] When the host application 1...

Embodiment 2

[0076] Figure 4 It is a flow chart of the method provided by Embodiment 2 of the present invention, and this embodiment describes the foregoing second implementation manner. Suppose the user wants to start the applet c in the host application 1, such as Figure 4 As shown, the method executed by the host application 1 may include the following processes:

[0077] In 401, the host application 1 acquires the event that the applet c is started.

[0078] In 402 , the host application 1 judges whether the shared storage space of the terminal device stores files dependent on the operating environment of the applet c, and if so, executes 403 ; otherwise, executes 404 .

[0079] In this embodiment, a shared storage space is set in the terminal device, and the shared storage space provides read and write permissions to each host application in the host alliance. The host applications in the hosting alliance store the downloaded files that the operating environment of the applet dep...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for starting an applet and a computer storage medium. The method comprises the steps of enabling a host application of a terminal device to obtain an event triggering the applet to be started; determining whether a file on which the applet running environment depends is stored in a host application in the terminal device or not; if so, initializing a running environment by utilizing a file on which the applet running environment depends so as to start the applet; otherwise, downloading and storing the applet running environment dependent file from theserver side, and setting the storage position of the applet running environment dependent file to be readable by other host applications. The problem of repeated downloading of the file depended by the applet running environment is solved, the starting efficiency of the applet is improved, and resources are saved.

Description

【Technical field】 [0001] The present invention relates to the field of computer application technology, in particular to a method, device and computer storage medium for starting an applet. 【Background technique】 [0002] This section is intended to provide a background or context for implementations of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section. [0003] A Mini Program (Mini Program) is an application that can be used without installation, and it runs in the environment provided by the host application. It is used more and more widely because it can be used at any time but does not need to be installed or uninstalled. At present, each host application needs to download and initialize a set of operating environment of the applet locally in the host application when starting the applet. However, on the one hand, the browser kernel and JS engine, etc., which are dependent on the operati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/176G06F9/54G06F9/445
CPCG06F9/44578G06F9/542G06F16/176
Inventor 苗景磊
Owner SHANGHAI LIANSHANG NETWORK TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products