Method for improving memory of browser

A browser and memory technology, applied in the web field, to improve the use of memory, improve the fluency of use and user experience, and reduce memory usage

Inactive Publication Date: 2021-01-22
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a method for improving browser memory, which solves the problem that the memory usage of the browser will not be significantly reduced after the node where the picture is located is removed from the DOM tree, and improves the use fluency and 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
  • Method for improving memory of browser
  • Method for improving memory of browser

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The method for improving browser memory of the present invention comprises:

[0022] Step (1), parsing the image data requested by the url;

[0023] Step (2), decoding the requested image data and storing it in memory;

[0024] Step (3), judging the invisible area of ​​the page, and removing the node in the DOM tree of the invisible area;

[0025] Step (4), traversing the removed nodes to obtain the corresponding url containing the picture;

[0026] Step (5), according to obtaining the corresponding url containing the picture, clear the decoded data corresponding to the url in the memory, and associate the url with the corresponding data before decoding;

[0027] Step (6), judging the visible area of ​​the page, if the original invisible area of ​​the removed node returns to the visible area, then add the removed node back to the DOM tree, and enter step (1).

[0028] In step (1), the specific method for parsing the image data requested by the url includes: creating ...

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 relates to the field of web, in particular to a method for improving the memory of a browser, which solves the problem that the memory occupation of the browser cannot be obviously reduced, improves the use of the memory of the browser, and improves the use fluency and the user experience. The invention discloses a method for improving the memory of a browser. The method comprises the following steps: analyzing picture data of a url request; decoding the requested picture data and storing the decoded picture data in a memory; judging an invisible area of the page, and removing nodes in the DOM tree of the invisible area; traversing the removed nodes, and obtaining a corresponding url containing the picture; removing decoded data corresponding to the url in a memory accordingto the obtained corresponding url containing the picture, and associating the url with the corresponding data before decoding; and judging the visual area of the page, and if the original invisible area of the removed node returns to the visual area again, adding the removed node back to the DOM tree again. The method is suitable for improving the browser memory.

Description

technical field [0001] The invention relates to the web field, in particular to a method for improving browser memory. Background technique [0002] With the popularization of web technology, the requirements for browser application performance and user experience are getting higher and higher. As an important performance indicator of browsers, memory usage directly affects browser experience. In the context of more and more web pages today, the image occupation on the page is the main reason for the increase in browser memory usage. Without affecting the function, reducing the memory usage of image data in the browser is decisive for improving user experience. [0003] Too many nodes on a web page will complicate the DOM tree structure and affect the fluency of the page, so the front end needs to remove unnecessary nodes. [0004] Existing technologies such as figure 1 , first create a node with a picture in the DOM tree, request the picture data according to the url, de...

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): G06F16/957G06F16/955G06F16/901
CPCG06F16/9027G06F16/955G06F16/9574
Inventor 曾祥阳
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
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