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

Webpage rendering control method and device and computer readable medium

A control method and web page rendering technology, applied in the computer field, can solve problems such as increased browser rendering load, and achieve the effect of reducing rendering load and avoiding rendering

Pending Publication Date: 2020-06-02
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the browser's 60-times-per-second drawing mechanism, the DOM (Document Object Model, Document Object Model) elements that should not be needed are also redrawn, so that as the number of invalid DOM elements increases, the browser's drawing load increases

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
  • Webpage rendering control method and device and computer readable medium
  • Webpage rendering control method and device and computer readable medium
  • Webpage rendering control method and device and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention is described below based on examples, but the present invention is not limited to these examples. In the following detailed description of the invention, some specific details are set forth in detail. The present invention can be fully understood by those skilled in the art without the description of these detailed parts. In order to avoid obscuring the essence of the present invention, well-known methods, procedures, and flow charts are not described in detail. Additionally, the drawings are not necessarily drawn to scale.

[0051] figure 1 It is a flowchart of a method for controlling web page rendering according to an embodiment of the present invention. The control method of this embodiment is especially suitable for controlling the initial presentation of the list on the browser side. Of course, this embodiment is not limited thereto, and this embodiment can also be used to control the presentation of other types of DOM elements. The cont...

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 embodiment of the invention provides a webpage rendering control method, which comprises the following steps of: creating a data container which stores data which is not rendered; obtaining the screen height of the current terminal; obtaining a DOM tree generated according to webpage content analysis; establishing a relational expression between the heights of n visible DOM elements in the DOMtree and the screen height, wherein n is an integer greater than or equal to 1; acquiring respective unrendered data for the n visible DOM elements from the data container; and putting the unrendereddata of each of the n visible DOM elements into a rendering container for rendering. According to the invention, the relational expression of the heights of the n visible DOM elements and the screenheight is established, only the n effective DOM elements are rendered when the webpage is presented, rendering of invalid DOM elements is avoided, and therefore the drawing load of a browser is reduced. The embodiment of the invention also provides a control device and a computer readable storage medium.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a control method, a control device and a computer-readable medium for rendering a webpage. Background technique [0002] At present, there are many complex business scenarios in the mobile Internet environment, often accompanied by a huge amount of data support, such as product lists, order lists, historical records, notification records and other data. When the browser application retrieves these data, the data list formed by the records that meet the conditions can reach more than 100,000. When such a data list is displayed, the load on the terminal will be increased, resulting in an increase in CPU usage and memory usage. On some low-end terminals, there may even be screen freezes and flash crashes. [0003] At present, the mainstream method of long list is to store the data segmented on the server side, and get as much as the user needs from the server. After 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): G06F40/14G06F16/957
Inventor 冉隆川
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products