Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for running a small program

An operation method and a technology for a small program, applied in the computer field, can solve problems such as the efficiency of page jumping and the long time that affect the user experience, affecting the startup efficiency of the applet, so as to improve the display efficiency, reduce the time required, and improve the experience. Effect

Active Publication Date: 2022-05-17
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In related technologies, when the applet is opened again and the page jumps, the JS engine needs to recompile and run the business logic source code of the corresponding business to obtain the running result of the business logic source code for the view layer of the applet to make corresponding Processing, recompiling and running, and displaying the corresponding pages according to the running results, which affects the startup efficiency of the applet and the efficiency of page jumping, the white screen time of the applet, or the time to view the page after the jump is long, serious affect user experience

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 running a small program
  • Method and device for running a small program
  • Method and device for running a small program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0026] In related technologies, the running framework of the applet usually does not cache the runtime code of the front-end framework of the applet and the business code of the developer. When the applet is opened again or the page jumps, the running framework of the applet needs to The source code of the business logic is recompiled and run. For example, the JS engine in the running framework of the applet recompiles and runs the business logic source code of the corresponding business, and then obtains the running result o...

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

This application proposes a method and device for running a small program, wherein the method includes: when receiving a trigger event of the small program, determining the page to be displayed corresponding to the trigger event, and obtaining the page to be displayed from the package file of the small program The business logic code file corresponding to the page, and obtain the applet framework code file corresponding to the page to be displayed from the applet front-end framework code package file, and then obtain the corresponding business logic code file and applet framework code file from the cache According to the execution result files corresponding to the business logic code files and the applet framework code files, the pages to be displayed are displayed. As a result, the corresponding execution result files of the business logic code file and the applet framework code file are directly obtained in the cache, reducing the time required for recompiling the code file, reducing the time required for the applet to display the page to be displayed, and improving the user experience. experience.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for running a small program. Background technique [0002] A small program refers to a mobile APP that is developed based on a specific programming language and can be used without downloading and installing. The biggest feature of small programs is that they are easy to use and do not need to be manually installed in the operating system of the mobile terminal. Usually, small programs rely on large APPs as carriers for use. [0003] With the development of mobile network technology, users have higher and higher requirements for user experience when browsing Mini Programs. In related technologies, when the applet is opened again and the page jumps, the JS engine needs to recompile and run the business logic source code of the corresponding business, and obtain the running result of the business logic source code for the view layer of the applet to...

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 Patents(China)
IPC IPC(8): G06F9/445
CPCG06F9/44568
Inventor 陈都吴宇伦
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD