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

Method and device of loading DOM (Document Object Model) node data, computer equipment and storage medium

A node data, node technology, applied in the Internet field, can solve the problems of slow page loading, waste of resources, consumption of resources, etc.

Inactive Publication Date: 2018-09-28
PING AN TECH (SHENZHEN) CO LTD
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are generally two existing methods for loading data of DOM nodes. The first method is to search for all DOM nodes that need to add data to the page at one time when starting to load the page, and then obtain the data of the DOM nodes one by one. When the data is added to the DOM After the node is displayed on the page, the disadvantage of this method of obtaining DOM node data is that after refreshing the page, it is necessary to re-find all the DOM nodes on the page that need to add data. Finding DOM nodes consumes resources, so when refreshing the page It will be a great waste of resources; the second method is to cache all the DOM nodes that need to add data on the page at one time. Every time you need to add data, you can directly add the data to the known DOM nodes, so that you do not need to reload when the page is refreshed. Search for DOM nodes, but when the page is large, there are many DOM nodes, caching all DOM nodes at one time will block the page due to digesting too many resources, allowing users to see the time delay of the first screen page effect, resulting in page loading for users It feels slow. In addition, there may be many interfaces on the page. Many interfaces send DOM node data requests at one time, which will inevitably cause the page to freeze.

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 of loading DOM (Document Object Model) node data, computer equipment and storage medium
  • Method and device of loading DOM (Document Object Model) node data, computer equipment and storage medium
  • Method and device of loading DOM (Document Object Model) node data, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and / or collections thereof.

[0026] It should also be understood that the term "and / or" use...

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 a device of loading DOM (Document Object Model) node data, computer equipment and a storage medium. Excessive consumption of network resources is avoided through caching DOM nodes of an already operated page area step by step. The DOM nodes which are in the page part area operated by a user and need to load the data are cached, the DOM nodes do not need to be re-found from a DOM tree structure in repeated operations, DOM nodes in the DOM tree structure are more, and resource waste caused by finding the DOM nodes, which correspond to the area, from the more DOM nodes is avoided. In addition, a case of page blocking caused by resource waste due to one-time caching of the DOM nodes of an entire page is also avoided.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method, a device, a computer device and a storage medium for loading DOM node data. Background technique [0002] For any page, its structure can be drawn as a DOM (Document Object Model, Document Object Model) tree structure. When loading a page, first load its DOM tree structure, and then find the DOM node in the DOM tree structure that needs to load data, and find the DOM After the node, load the data corresponding to the DOM node, and finally add the data corresponding to the DOM node to the page, and then display the data on the page. [0003] There are generally two existing methods for loading data of DOM nodes. The first method is to search for all DOM nodes that need to add data to the page at one time when starting to load the page, and then obtain the data of the DOM nodes one by one. When the data is added to the DOM After the node is displayed on the page, th...

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): G06F17/30
CPCG06F16/957
Inventor 方小伟
Owner PING AN TECH (SHENZHEN) 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