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

A method and terminal for displaying a page

A technology for displaying pages and pages, applied in the computer field, can solve problems such as device freezes, heavy redrawing and reordering losses, and flashbacks, and achieve the effect of avoiding freezes and reducing memory and CPU resources.

Pending Publication Date: 2019-03-01
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a method and terminal for displaying pages to solve the problem in the prior art that when infinite list scrolling occurs, such as when the news information list keeps scrolling, new nodes will be continuously added to the list, As a result, the DOM tree is getting bigger and bigger, and the loss of redrawing and rearranging is getting bigger and bigger, which eventually causes the device to freeze, freeze until the application or browser crashes.

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
  • A method and terminal for displaying a page
  • A method and terminal for displaying a page
  • A method and terminal for displaying a page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] See figure 1 , figure 1 It is an implementation flowchart of a method for displaying a page provided by an embodiment of the present invention. The execution subject of the method for displaying a page in this embodiment is a terminal. Terminals include, but are not limited to, mobile terminals such as smartphones, tablet computers, and wearable devices, and may also be desktop computers. The method for displaying a page as shown in the figure may include:

[0030] S101: Determine a first number of node labels allowed to be displayed on the page according to size information of a visible...

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 is applicable to the computer technical field, and provides a method and a terminal for displaying a page. The method comprises the following steps: determining a first number of node labels allowed to be displayed on the page according to the size information of a visual window of the current page; creating a second number of node containers according to the first number of node tags; the second number is greater than the first number; determining a first target node tag to be displayed from the node tag list according to the scrolling instruction when the page scrolling instruction is obtained; storing and displaying the contents corresponding to the first target node tag through an available node container; the node container corresponding to the second target node tag moved out of the visual window is recycled and emptied. The embodiment of the invention stores the content corresponding to the node label which is about to enter the visual window through the multiplexing node container, avoids the situation that new node information is continuously added to the list when the infinite information list is scrolled, and reduces the resource consumed by redrawing and rearranging the web page due to the increase of the node information.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and a terminal for displaying pages. Background technique [0002] Hyper Text Markup Language (HTML) is a standard markup language for creating web pages. HTML5 is the fifth major revision of HTML. H5 applications are applications (applications, APPs) written in HTML5, and generally run with the help of browsers such as IE. [0003] Due to its own characteristics, the mobile H5 page will repaint and reflow when modifying the elements of the HTML5 page. Redrawing: It is a browser behavior caused by a change in the appearance of an element; such as changing properties such as visibility, outline, and background color. Rearrangement: It is a behavior that causes the recalculation of the Document Object Model (Document ObjectModel, DOM) tree. Behaviors that cause rearrangement include: adding and deleting visible DOM; element position change; element size ch...

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 Applications(China)
IPC IPC(8): G06F9/451
CPCG06F9/451
Inventor 林泽全
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT 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