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

Page rendering method and device

A page and auxiliary thread technology, applied in the Internet field, can solve the problems of page jam, blocking page rendering thread, page rendering thread running blocking, etc., so as to avoid page jam and improve user experience.

Active Publication Date: 2019-10-18
ADVANCED NEW TECH CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In this way, the JS main thread needs to monitor whether the event trigger conditions based on time conditions in the page are satisfied for a long time and high frequency, and at the same time cause the running of the page rendering thread to be blocked by the JS main thread for a long time and high frequency
For such a long time and high frequency of blocking the running of the page rendering thread, for the user, it may feel that the page is stuck, etc., which reduces 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
  • Page rendering method and device
  • Page rendering method and device
  • Page rendering method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] As we all know, due to the characteristics of the browser kernel, the page rendering thread of the browser kernel and the JS main thread are mutually exclusive, that is, at a certain moment, the browser kernel can only run the page rendering thread or the JS main thread, the JS main thread and the page Rendering threads cannot run at the same time, which means that while the main JS thread is running, the page rendering thread is in a stagnant state (that is, running the JS main thread will block the running of the page rendering thread). During the running of the page rendering thread, The main JS thread is in a stagnant state (that is, running the page rendering thread will block the running of the main JS thread).

[0026] In the scenario where the event trigger condition triggered based on the time condition in the current page is met and needs to be monitored by the JS main thread, the JS main thread needs to periodically monitor whether the event trigger condition tri...

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 a page rendering method and device The method comprises the steps that a JS main thread creates an auxiliary thread; the JS main thread dispatches an event triggered based on atime condition in the page to the auxiliary thread; for any event triggered based on the time condition in the page, the auxiliary thread monitors whether the triggering condition is met or not; after it is monitored that the triggering condition is met, a notification message is sent to the JS main thread; after receiving the notification message, the JS main thread determines an event triggeredbased on a time condition and meeting a triggering condition; a rendering strategy is determined according to a preset corresponding relationship between the event and the rendering strategy; and a page rendering thread is informed to render the page by using the determined rendering strategy.

Description

Technical field [0001] The embodiments of this specification relate to the field of Internet technology, and in particular to a page rendering method and device. Background technique [0002] As we all know, due to the characteristics of the browser kernel, the page rendering thread of the browser kernel and the JavaScript (JS for short) main thread are mutually exclusive, that is, at a certain moment, the browser kernel can only run the page rendering thread or the JS main thread. They cannot run at the same time, which means that while the main JS thread is running, the page rendering thread is in a stagnant state (that is, running the JS main thread will block the running of the page rendering thread). [0003] In the scenario where the event trigger condition triggered based on the time condition in the current page is met and needs to be monitored by the JS main thread, the JS main thread needs to periodically monitor whether the event trigger condition triggered based on the ...

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): G06F16/957G06F9/50
CPCG06F16/957G06F9/5027Y02D10/00
Inventor 杨文锦
Owner ADVANCED NEW TECH CO LTD