Web page display method and device

A webpage display and original webpage technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as frequent input and output operations, consume large processor resources, and affect user experience, so as to improve performance and user experience experience, reduce resource consumption, and avoid the effects of input and output operations

Active Publication Date: 2012-12-26
深圳市雅阅科技有限公司
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing technology, the original webpage data needs to be taken out from the cache every time the webpage content is displayed, and the input and output operations are frequent, and the original webpage data needs to be re-parsed and typeset when going back, which consumes a lot of processor resources, thereby reducing the browsing speed , affecting 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
  • Web page display method and device
  • Web page display method and device
  • Web page display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] see figure 1 , the present embodiment provides a method for displaying a web page, including:

[0040] 101: Parsing and typesetting the downloaded original web page data into a DOM tree;

[0041] Specifically, the downloaded original web page data is parsed and typesetting into a DOM tree by means of a parsing and typesetting engine.

[0042] A DOM tree can generally occupy about 200k of storage space.

[0043] 102: Serialize the DOM tree into an array, and store the array in memory after compression;

[0044] To serialize the DOM tree into an array, you can use the following method to achieve:

[0045] Serialize the root node, child nodes, and public data of the DOM tree in sequence, and write the serialization results of the root node, child nodes, and public data of the DOM tree into the sequential data stream in turn, and convert the sequential data stream into an array. The public data includes, but is not limited to: focus list, current focus information, page...

Embodiment 2

[0056] see figure 2 , the present embodiment provides a device for displaying web pages, including:

[0057] Parsing and typesetting module 201, for parsing and typesetting the downloaded original webpage data into a Document Object Model DOM tree;

[0058]The serialization compression module 202 is used to serialize the DOM tree into an array, and store the array in memory after compression;

[0059] The acquisition module 203 is used to take out the compressed array from the memory when the content of the webpage needs to be displayed;

[0060] The decompression and deserialization module 204 is used to decompress the compressed array and deserialize the decompressed array into a DOM tree;

[0061] The drawing module 205 is used to draw the DOM tree on the screen through the rendering engine.

[0062] see image 3 , the serialization compression module 202 includes: a serialization unit 202a and a compression unit 202b,

[0063] The serialization unit 202a is used to s...

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 web page display method and a web page display device and belongs to the field of wireless communication. The web page display method comprises the steps of: parsing and composing downloaded original web page data into a DOM (document object module) tree; serializing the DOM tree into an array, compressing the array and storing the compressed array in a memory; reading the compressed array from the memory when the content of a wed page needs to be displayed; decompressing the compressed array and deserializing the decompressed array into a DOM tree; and drawing the DOM tree in a screen through a rendering engine. According to the web page display method and the web page display device, the DOM tree is serialized and compressed to be stored in the memory; and when the web page content needs to be displayed, the compressed array is read from the memory, the original web page data is not needed to be obtained, reparsed and recomposed from buffer memory, the frequency input and output operations are avoided, the resource consumption of a processor is reduced, the decompressed array is deserialized into the DOM tree, and the DOM tree is drawn in the screen through the rendering engine, so that the web page content is displayed, the performance of a browser is improved, and the user experience is improved.

Description

technical field [0001] The invention relates to the field of wireless communication, in particular to a method and device for displaying web pages. Background technique [0002] With the development of wireless communication technology, many mobile terminals have the function of surfing the Internet. Users can browse webpages and obtain information in a timely manner through mobile terminals. However, compared with PCs (Personal Computers, personal computers), mobile terminals, especially low-end mobile terminals, have a great feature of low memory. Therefore, at present, many mobile terminals display web pages through a caching mechanism, and the specific implementation process is as follows: [0003] After the original webpage data is downloaded, it is stored in the cache. When the webpage content needs to be displayed, such as forward, backward or window switching, the original webpage data that needs to be displayed is taken out from the cache, and the original webpage...

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): G06F17/30
Inventor 李雪峰黄水成
Owner 深圳市雅阅科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products