Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Applet page rendering method and device, electronic equipment and storage medium

A small program and page technology, applied in the Internet field, can solve problems such as slowing down the rendering of final page content and affecting user experience, and achieve the effect of improving page performance, speeding up loading speed, and optimizing user experience.

Pending Publication Date: 2021-03-23
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The traditional method will initiate a network request in the life cycle of onLoad, but onLoad needs to wait for the initial data loading and rendering of the page to trigger execution, that is, only after the rendering thread completes the first drawing and returns the drawing result to the logic thread, The logic thread will trigger the execution of onLoad, so the trigger timing of onLoad will be relatively late, which will seriously slow down the rendering of the final page content and affect the 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
  • Applet page rendering method and device, electronic equipment and storage medium
  • Applet page rendering method and device, electronic equipment and storage medium
  • Applet page rendering method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 It is the first schematic flowchart of the applet page rendering method provided by the embodiment of this application. The method can be executed by an applet page rendering device or an electronic device, and the device or electronic device can be implemented by software and / or hardware. The device or electronic equipment can be integrated in any intelligent equipment with network communication function. Such as figure 1 As shown, the applet page rendering method may include the following steps:

[0029] S101. Based on the pre-obtained first rendering result of the applet page, perform original incremental rendering on the applet page to obtain the original incremental rendering result of the applet page.

[0030] In this step, the electronic device may perform original incremental rendering on the applet page based on the pre-obtained first rendering result of the applet page, to obtain the original incremental rendering result of the applet page. Specifi...

Embodiment 2

[0037] figure 2 It is a second schematic flow chart of the mini-program page rendering method provided by the embodiment of the present application. Further optimization and expansion based on the above technical solution, and may be combined with each of the above optional implementation modes. Such as figure 2 As shown, the applet page rendering method may include the following steps:

[0038] S201. In response to the user's instruction to open the applet page, load the logic code and page style file of the applet page respectively, and obtain the loading result of the logic code of the applet page and the loading result of the page style file of the applet page.

[0039] In this step, the electronic device loads the logic code and page style file of the applet page respectively in response to the user's instruction to open the applet page, and obtains the loading result of the logic code of the applet page and the loading of the page style file of the applet page resul...

Embodiment 3

[0055] Figure 5 It is a schematic structural diagram of the applet page rendering device provided by the embodiment of the present application. Such as Figure 5 As shown, the device 500 includes: an incremental rendering module 501 and a rendering module 502; wherein,

[0056] The incremental rendering module 501 is configured to perform original incremental rendering on the applet page based on the pre-obtained first rendering result of the applet page, to obtain the original incremental rendering result of the applet page;

[0057] The rendering module 502 is configured to, based on the first rendering result of the applet page, the original incremental rendering result of the applet page, and the pre-obtained initial incremental rendering result of the applet page, render the applet The program page is rendered.

[0058] Further, the incremental drawing module 501 is specifically configured to generate a message triggering the original incremental rendering of the appl...

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 discloses an applet page rendering method and device, electronic equipment and a storage medium, and relates to the technical field of the Internet, in particular to the field of applets. The method comprises: on the basis of a pre-obtained first-time drawing result of the applet page, conducting original increment rendering on the applet page, so that an original increment renderingresult of the applet page is obtained, and rendering the applet page based on the first drawing result of the applet page, the original increment rendering result of the applet page and a pre-obtained initial increment rendering result of the applet page. According to the embodiment of the invention, the small program page loading speed can be greatly increased, the page performance is improved,and the user experience is optimized.

Description

technical field [0001] The present disclosure relates to the technical field of the Internet, further relates to applet technology, and in particular to a method, device, electronic device and storage medium for rendering a page of an applet. Background technique [0002] In the development mode of applets, developers can register fixed callback functions for applications (App) and pages (Page), and applets will trigger and run the callback functions registered by developers according to established rules. These callback functions Consists of the life cycle of an applet. Applets have a fixed life cycle at both the App level and the Page level; among them, for the Page level life cycle, the current industry mainly includes: monitoring the page loading function (onLoad), monitoring the page display function (onShow), and monitoring the completion of the first rendering of the page Function (onReady), monitor page unloading (onUnload). When the applet page starts loading for ...

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
IPC IPC(8): G06F9/445G06F8/34G06F8/38
CPCG06F9/44568G06F8/34G06F8/38Y02D10/00
Inventor 王宁詹方
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More