CN106570098B - Page refreshing method and device - Google Patents

Page refreshing method and device Download PDF

Info

Publication number
CN106570098B
CN106570098B CN201610932504.6A CN201610932504A CN106570098B CN 106570098 B CN106570098 B CN 106570098B CN 201610932504 A CN201610932504 A CN 201610932504A CN 106570098 B CN106570098 B CN 106570098B
Authority
CN
China
Prior art keywords
updated
area
content
page
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610932504.6A
Other languages
Chinese (zh)
Other versions
CN106570098A (en
Inventor
宁月松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610932504.6A priority Critical patent/CN106570098B/en
Publication of CN106570098A publication Critical patent/CN106570098A/en
Priority to PCT/CN2017/092843 priority patent/WO2018076795A1/en
Application granted granted Critical
Publication of CN106570098B publication Critical patent/CN106570098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page refreshing method and device, and relates to the technical field of computers. The invention aims to further reduce the problem of resource and energy waste in the page refreshing process. Wherein, the method comprises the following steps: when the content of the page needs to be updated, acquiring the position of an area to be updated, wherein the area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is the content corresponding to at least one node to be updated in a rendering tree corresponding to the page; determining the position of a target area, wherein the target area is an area of a page which is visible on a display at present; and when the position of the area to be updated and the position of the target area have a preset relationship, not drawing the content to be updated in the area to be updated. The method and the device are applied to the process of local page updating.

Description

Page refreshing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page refreshing method and device.
Background
With the application of technologies such as JavaScript and Cascading Style Sheet 3 (CSS 3) in page display, the content of page display is more and more rich and various and is convenient for interaction. For example: many pages now have areas for showing animations or updating video on a regular basis.
As shown in fig. 1, the process of displaying or rendering a page generally includes: 101: the engine parses a received HTML (HyperText Markup Language) or XML (Extensible Markup Language) Document and constructs a Document Object Model (DOM) tree. 102: and adding style information and the like to construct a Render tree (Chinese: Render tree) corresponding to the DOM tree according to the node information in the DOM tree. The nodes in the Render tree and the nodes in the DOM tree have corresponding relations, the coordinates of different nodes in the Render tree are different, and different nodes correspond to different page areas and page contents respectively. 103: and laying out the pages according to the position and other attribute information of the nodes in the Render tree. 104: and synthesizing and refreshing the contents of the laid page to a cache region. 105: and drawing and displaying the content in the cache region. After the page is displayed, the content of a part of or the whole area of the page can be updated according to the updating requirement.
At present, the kernels of mainstream browsers such as webkit and chrome can realize local refreshing of pages, namely, areas needing to be updated frequently are distinguished from other areas which do not need to be updated after display, and the areas needing to be updated frequently are independently refreshed.
Although the partial refresh mechanism in the prior art can effectively reduce unnecessary refreshes to a certain extent and reduce the waste of resources and energy in the refresh process, the reduction of resources and energy is still limited.
Disclosure of Invention
The invention provides a page refreshing method and device, which can further reduce the waste of resources and energy on the basis of partial refreshing provided by the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for refreshing a page, including: acquiring the position of an area to be updated; determining the position of a target area, wherein the target area is an area which is visible on a display at present in the page; when the position of the area to be updated and the position of the target area have a preset relationship, the content to be updated is not drawn in the area to be updated in the process of page refreshing.
The area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page. In practical application, when a page is refreshed, nodes of a Render tree are generally used as a rendering basis, each node corresponds to specific content of the page, and when the page is refreshed locally, that is, when the page content is updated in a partial region of the page, the content of some nodes needs to be updated, and the content of some nodes does not need to be updated. Therefore, in the present invention, the node corresponding to the content to be updated is referred to as the node to be updated. Correspondingly, the area to be updated in the invention is the area to be updated of the content to be updated corresponding to the node to be updated.
The positions of the region to be updated and the target region may be expressed in the form of coordinates of a plurality of vertices of the region. For example: when the area to be updated and/or the target area is a rectangular area, the position of the area can be represented by coordinates of four vertices of the rectangle; when the area to be updated and/or the target area is a circular area, the position of the area can be represented by the center of the circle and the radius.
Therefore, the method for refreshing the page provided by the invention adds a process for judging whether the position of the area to be updated and the position of the area of the page which is currently visible on the display have a preset relationship when the local refreshing is required, and does not draw the content to be updated in the area to be updated when the position of the area to be updated and the position of the area of the page which is currently visible on the display have the preset relationship. Because the drawing process consumes a large amount of resources and energy, and the drawing process is not carried out, the waste of the resources and the energy in the page rendering process can be reduced.
As an optional embodiment, the step of determining that the area to be updated has a preset relationship with the position of the target area specifically includes: the area to be updated and the target area have no overlapping area.
In this embodiment, when there is no overlapping area between the area to be updated and the target area, it indicates that the area to be updated is located outside the area of the page currently visible on the display, and is not visible to the user. Therefore, in this case, the present invention can reduce the waste of resources and energy in the page refresh process by not drawing the content to be updated in the area to be updated.
As another optional embodiment, the step of enabling the position of the region to be updated and the target region to have a preset relationship specifically includes: an overlapping area exists between the area to be updated and the target area, but a first node exists in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated. When the first node and the node to be updated have the following relationship, it can be determined that the region corresponding to the first node completely covers the region to be updated: the area corresponding to the first node comprises an area corresponding to the node to be updated, and the value of the z coordinate of the first node in the rendering tree is larger than the value of the z coordinate of the node to be updated in the rendering tree.
In this embodiment, although there is an overlapping area between the area to be updated and the target area, there is another area that completely "blocks" the area to be updated, and therefore, the area to be updated is still invisible to the user.
As another optional embodiment, the preset relationship between the location of the region to be updated and the target region may further be: the area to be updated is completely positioned outside the target area, and the distance between the area to be updated and the target area is outside a preset range.
In this embodiment, when the area to be updated is not in the area where the page is currently visible on the display, in some cases, the user may move the page slightly so that the area to be updated falls within the page display area. Therefore, the judgment of the distance between the area to be updated and the area of the page which is currently visible on the display is added, and when the distance between the area to be updated and the area of the page which is currently visible on the display is shorter, in order to present a better page display effect, the content to be updated still needs to be refreshed and rendered in the area to be updated; when the distance between the area to be updated and the target area exceeds a certain range, the distance between the area to be updated and the target area may be considered to be relatively long, and in this case, the content to be updated may not be refreshed and drawn in the area to be updated.
As still another optional embodiment, the preset relationship between the location of the region to be updated and the target region may further be: the position of the area to be updated is completely outside the target area, and the time for the area to be updated to be completely outside the target area exceeds a certain time range.
In this embodiment, when the location of the area to be updated is completely outside the target area, and the time when the area to be updated is completely outside the target area exceeds a certain time range, it may be considered that the user does not need to browse the content of the area to be updated for a long time, and therefore, the content to be updated may not be refreshed and drawn in the area to be updated.
As an embodiment, when the position of the area to be updated and the position of the target area have the preset relationship, the method further includes: and determining the category of the content to be updated. Correspondingly, when the content to be updated belongs to the first category, the content to be updated is not cached in the cache region before the content to be updated is not drawn in the region to be updated; when the content to be updated belongs to the second category, before the content to be updated is not drawn in the area to be updated, the method further comprises: and refreshing the content to be updated to a cache region.
The first category is a content that, when the preset relationship exists between the area to be updated and the target area, if the content to be updated is not refreshed in the cache area, the content to be updated can still be normally displayed when the preset relationship does not exist between the area to be updated and the target area, that is, the content does not need to be updated under the condition that the user is invisible. The second category is the content that cannot be normally displayed when the preset relationship does not exist between the area to be updated and the target area, that is, the content still needs to be updated under the condition that the user is invisible, if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area.
In the embodiment, on the basis of judging whether the position of the area to be updated and the target area have the preset relationship, the type judgment of the content to be updated is also added, when the position of the area to be updated and the target area have the preset relationship and the content to be updated corresponding to the node to be updated belongs to the first type, in the process of page refreshing, the process of refreshing the content to be updated to the cache area is not processed, the drawing process is naturally terminated, and the waste of resources and energy in the page refreshing process can be further reduced. When the content to be updated corresponding to the node to be updated belongs to the second category, the content to be updated is still refreshed into the cache region, and only the drawing processing and the subsequent steps of the content to be updated are stopped, so that the normal display of the content to be updated can be ensured on the basis of reducing the waste of resources and energy as much as possible.
In a second aspect, an embodiment of the present invention further provides a page refreshing method, including: acquiring the position of an area to be updated; determining the position of a target area, wherein the target area is an area which is visible on a display at present in a page; and when the position of the area to be updated and the position of the target area have a preset relationship, refreshing the content to be updated to the area to be updated.
As described above, the area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is content corresponding to at least one node to be updated in the rendering tree corresponding to the page.
As an embodiment, the step of determining that the position of the region to be updated and the target region have a preset relationship specifically includes: the region to be updated and the target region have an overlapping region, and a first node does not exist in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated. That is, there is a partial overlap or a complete overlap of the region to be updated and the target region, and the overlapped region is not "occluded" by other regions, in which case the region to be updated is partially or fully visible to the user.
In some cases, the preset relationship between the area to be updated and the position of the target area may further be: the area to be updated and the target area do not overlap, but the distance between the area to be updated and the target area is within a preset range. Alternatively, the region to be updated does not overlap with the target region, but the duration is within a certain period of time, i.e., the duration is short. In these cases, in order to ensure a good page display effect, the content to be updated needs to be refreshed and drawn in the area to be updated.
In a third aspect, the present invention further provides a terminal, configured to execute the steps in the method according to the first aspect, where the functions of the terminal may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the functions.
In a possible embodiment, the terminal structure includes a processor, a memory, a display and a bus, and the processor is configured to support the terminal to execute the corresponding functions of the method. The memory is for coupling to the processor and holds the necessary program instructions and data for the terminal. The display is used to display the currently displayed area of the page. Optionally, the terminal further comprises a communication interface for supporting communication between the terminal and other devices.
In another possible embodiment, the terminal includes: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring the position of an area to be updated, the area to be updated is an area to be updated of content to be updated in a page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page; the display module is used for determining a currently displayed area in the page and displaying the page content in the currently displayed area on a display; the processing module is used for determining the position of a target area, wherein the target area is an area displayed on the display by the display module in a page; when the position of the area to be updated acquired by the acquisition module has a preset relationship with the position of the target area, the content to be updated is not drawn in the area to be updated in the process of page updating.
In a fourth aspect, the present invention provides a terminal, configured to execute the steps in the method according to the second aspect, where the functions of the terminal may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the functions.
In a possible embodiment, the terminal structure includes a processor, a memory, a display and a bus, and the processor is configured to support the terminal to execute the corresponding functions of the method. The memory is for coupling to the processor and holds the necessary program instructions and data for the terminal. Optionally, the terminal further comprises a communication interface for supporting communication between the terminal and other devices.
In another possible embodiment, the terminal includes: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring the position of an area to be updated, the area to be updated is an area to be updated of content to be updated in a page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page; the display module is used for determining a currently displayed area in the page and displaying the page content in the currently displayed area on a display; the processing module is used for determining the position of a target area, wherein the target area is an area displayed on the display by the display module in a page; and when the position of the area to be updated acquired by the acquisition module and the position of the target area have a preset relationship, refreshing the content to be updated to the area to be updated.
In a fifth aspect, the present invention provides a computer storage medium for storing computer software instructions for a terminal according to the third aspect, which comprises a program designed to execute the above aspects.
In a sixth aspect, the present invention provides a computer storage medium for storing computer software instructions for a terminal according to the fourth aspect, which contains a program designed to perform the above aspects.
Compared with a local refreshing mechanism in the prior art, the method and the device for refreshing the page provided by the invention have the advantages that when the local refreshing is required, the judgment process of whether the position of the area to be updated and the position of the area of the page which is currently visible on the display have the preset relationship is added, and when the position of the area to be updated and the position of the area of the page which is currently visible on the display have the preset relationship, the content to be updated is not drawn in the area to be updated in the process of refreshing the page. Since the drawing process consumes a large amount of resources and energy, the waste of resources and energy can be reduced without performing the drawing process. Therefore, the invention can reduce unnecessary refreshing process on the basis of partial refreshing in the prior art, and further can further reduce the waste of resources and energy in the page refreshing process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of page display in the prior art;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a page refreshing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another page refreshing method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a page refreshing method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a page refreshing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another page refreshing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments will be described clearly and completely with reference to the drawings in the embodiments, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The page refreshing method provided by the embodiment of the invention can be applied to a terminal. Fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal comprises at least one processor 201, a communication bus 202, a memory 203 and a display 204.
The processor 201 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), one or more integrated circuits, or the like.
The communication bus 202 may include a path that conveys information between the aforementioned components.
The Memory 203 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The display 204 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, or a Cathode Ray Tube (CRT) display device.
In particular implementations, processor 201 may include one or more CPUs such as CPU0 and CPU1 in fig. 2, for example, as one embodiment.
In particular implementations, terminal 200 may include multiple processors, such as processor 201 and processor 208 in FIG. 2, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, as an embodiment, the terminal 200 further includes at least one communication interface 205, where the communication interface 205 is suitable for any transceiver and other devices, and is used for communicating with other devices or communication Networks, such as an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like.
In one embodiment, the terminal 200 may further include other output devices 206 and input devices 207. The output device 206 is in communication with the processor 201 and may display information in a variety of ways. For example, the output device may be a projector (projector) or the like. The input device 207 is in communication with the processor 201 and can accept user input in a variety of ways. For example, the input device 207 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.
The terminal 200 may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the terminal 200 may be a desktop, a laptop, a web server, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or a device with a similar structure as in fig. 2. The embodiment of the present invention does not limit the type of the terminal 200.
The terminal in the embodiment of the invention is also provided with software programs such as a browser, and the specific operation of the browser can be executed by the processor. When a web page is operated, a user generally inputs a Uniform Resource Locator (URL) address into a browser to request a response from a server. When the browser receives the response sent by the server, the browser analyzes the page content expressed by HyperText Markup Language (HTML) contained in the response, renders the page content and displays the page content to the user. If the response content includes data that needs to be updated regularly, such as news, advertisements, animation, video, etc., and needs to be updated regularly in a specific area of the page, the browser saves the content in the database after acquiring the content, and acquires and displays corresponding content from the database when the page needs to be updated. Illustratively, a certain specific area of the page is used for scrolling and playing a group of news, the group of news includes 5 news, and after the browser acquires the content of the group of news from the server and stores the content in the database, in the running process of the web page, when the browser runs to a code that needs to update the content of the page, the browser acquires corresponding data from the database and updates the display.
As shown in fig. 3, in combination with the application scenario, an embodiment of the present invention provides a method for refreshing a page, which is applied to a terminal shown in fig. 2, and the method includes:
301: and acquiring the position of the area to be updated.
The area to be updated is an area to be updated in the page of the content to be updated. As described above, in the process of loading a page for the first time, the browser obtains the content of the page, parses the entire page into a dom tree including a plurality of different nodes, constructs a render tree corresponding to the dom tree, and renders the page using the nodes in the render tree as basic elements. Wherein each node of the render tree has a coordinate in the render tree, each node corresponding to a particular content of the page. When the page is partially refreshed, that is, when the page content is updated to a partial area of the page, the content of some nodes needs to be updated, and the content of some nodes does not need to be updated. Therefore, in the present invention, the node corresponding to the content to be updated is referred to as a node to be updated, and the number of the nodes to be updated may be one or more. Correspondingly, the area to be updated in the invention is the area to be updated of the content to be updated corresponding to the node to be updated.
The content to be updated may be a media file such as a picture, audio data, or video data. For example: if an area for dynamically playing the picture exists in the page, the picture currently played in the area is the picture 1, and when the picture 2 needs to be played, the picture 2 is the content to be updated.
Alternatively, the position of the area to be updated may be represented by coordinates of a plurality of vertices of the area to be updated in a preset coordinate system, for example: when the area to be updated is a rectangular area, the area to be updated can be represented by the vertex coordinates of the rectangular area. When the area to be updated is a circular area, it can be represented by the center of the circular area and the radius of the circular area.
Optionally, the terminal may divide each page into a plurality of regions according to the nodes in advance and store the relationship between different regions. For example, node 1 corresponds to region 1, node 2 corresponds to region 2, node 3 corresponds to region 3, there is an overlapping region between region 1 and region 2, and there is no overlapping region between region 1 and region 2.
302: the location of the target area is determined.
Wherein the target area is an area of the page that is currently visible on the display.
In practical applications, a terminal may not be able to display a complete web page, but only a portion of the web page may be displayed, and a user may view the content of the web page through operations such as pulling up and pulling down. Therefore, a part of the area on the webpage and the content displayed in the area are visible to the user, and another part of the area and the content corresponding to the area are invisible to the user. The target area referred to in this embodiment is the portion of the page area that is visible to the user.
Optionally, the position of the target area may also be represented by coordinates of a plurality of vertices of the target area in a preset coordinate system, for example: when the target region is a rectangular region, the target region may be represented by the coordinates of the vertices of the rectangular region. When the target area is a circular area, the target area may be represented by a center of the circular area and a radius of the circular area.
303: and judging whether a preset relation exists between the position of the area to be updated and the position of the target area.
Optionally, a preset relationship exists between the area to be updated and the position of the target area, which specifically includes any one of the following cases.
And A1, the area to be updated and the target area have no overlapping area.
In this embodiment, when there is no overlapping area between the area to be updated and the target area, it indicates that the area to be updated is located outside the area of the page currently visible on the display, and is not visible to the user. Therefore, in this case, the present invention can reduce the waste of resources and energy in the page refresh process by not drawing the content to be updated in the area to be updated.
A2, an overlapping area exists between the area to be updated and the target area, but a first node exists in the rendering tree corresponding to the page, and the area corresponding to the first node completely covers the area to be updated.
Specifically, when the first node and the node to be updated have the following relationship, it may be determined that the region corresponding to the first node completely blocks the region to be updated: the value of the z coordinate of the first node in the rendering tree is larger than that of the z coordinate of the node to be updated in the rendering tree, and the area to be updated is completely located in the area corresponding to the first node.
In this embodiment, although there is an overlapping area between the area to be updated and the target area, there is another area that completely "blocks" the area to be updated, and therefore, the area to be updated is still invisible to the user.
And A3, the area to be updated is completely outside the target area, and the distance between the area to be updated and the target area is outside the preset range.
In this embodiment, when the area to be updated is not within the visible area of the page currently displayed on the display, in some cases, the user may slightly move the page so that the area to be updated falls within the page display area. Therefore, the judgment of the distance between the area to be updated and the visual area of the page currently displayed on the display is added, and when the distance between the area to be updated and the visual area of the page currently displayed on the display is short, in order to present a better page display effect, the content to be updated still needs to be refreshed and rendered in the area to be updated; when the distance between the area to be updated and the target area exceeds a certain range, the distance between the area to be updated and the target area may be considered to be relatively long, and in this case, the content to be updated may not be refreshed and drawn in the area to be updated.
And A4, the position of the area to be updated is completely outside the target area, and the time for the area to be updated to be completely outside the target area exceeds a certain time range.
In this embodiment, when the location of the area to be updated is completely outside the target area, and the time when the area to be updated is completely outside the target area exceeds a certain time range, it may be considered that the user does not need to browse the content of the area to be updated for a long time, and therefore, the content to be updated may not be refreshed and drawn in the area to be updated.
Correspondingly, the position of the area to be updated and the position of the target area do not have a preset relationship, and the method specifically comprises the following conditions:
and B1, the area to be updated is partially or completely overlapped with the target area, and the overlapped area is not blocked by other areas, namely the area to be updated is partially or completely visible for a user.
B2, the area to be updated and the target area do not overlap, but the distance between the area to be updated and the target area is within a preset range.
B3, the area to be updated and the target area do not overlap, but the duration is within a certain period of time, i.e. the duration is short. In these cases, in order to ensure a good page display effect, the content to be updated needs to be refreshed and drawn in the area to be updated.
After determining the positions of the area to be updated and the target area, judging whether a preset relationship exists between the position of the area to be updated and the position of the target area, if not, indicating that the area to be updated is visible to the user, and executing step 304; if the preset relationship exists, it indicates that the area to be updated is not visible to the user, step 305 is performed.
304: and refreshing the content to be updated to the area to be updated.
And if the preset relation exists, storing the content to be updated in the cache region, and drawing and displaying the content to be updated in the region to be updated, so that the region to be updated is refreshed.
On the contrary, the node to be updated is not located in the target area, or the node to be updated is located in the target area but is blocked by other nodes, so that the node to be updated is not considered to be visible to the user. In case the user is not visible, the area to be updated does not need to be refreshed.
And 305, not drawing the content to be updated in the area to be updated.
The drawing operation consumes more resources and energy in the page display process, so that the consumption of the resources and the energy can be reduced without the drawing operation. The refresh process actually includes operations of caching the content to be updated in a cache, drawing, displaying, and the like. Not performing rendering processing means not performing rendering processing and subsequent operations. The process of "caching the content to be updated in the cache area" before the rendering operation may not be performed, or may be performed normally.
Compared with a local refresh mechanism in the prior art, the page refresh method provided by the embodiment of the invention adds a process of judging whether a preset relationship exists between the position of the area to be updated and the position of the area of the page which is currently visible on the display when local refresh is required, and does not draw the content to be updated in the area to be updated when the preset relationship exists between the position of the area to be updated and the position of the area of the page which is currently visible on the display. Since the drawing process consumes a large amount of resources and energy, the waste of resources and energy can be reduced without performing the drawing process. Therefore, the invention can reduce unnecessary refreshing process on the basis of partial refreshing in the prior art, and further can further reduce the waste of resources and energy in the page refreshing process.
In order to reduce the waste of resources and energy in the page refreshing process as much as possible, reduce unnecessary refreshing processes, and facilitate normal display of some contents, thereby avoiding influence on user use, the category of the contents needs to be distinguished in the actual processing process of not refreshing the contents of the area to be updated, therefore, as shown in fig. 4, an embodiment of the present invention further provides a page refreshing method, which specifically includes:
401: and acquiring the position of the area to be updated.
The specific implementation process of this step may refer to step 301, and is not described herein again.
402: the location of the target area is determined.
The specific implementation process of this step may refer to step 302, and is not described herein again.
403: and judging whether a preset relation exists between the position of the area to be updated and the position of the target area.
The specific implementation process of this step may refer to step 303, and is not described herein again.
If the preset relationship does not exist, step 404 is performed, and if the preset relationship exists, step 405 is performed.
404: and refreshing the content to be updated to the area to be updated.
The specific implementation process of this step can refer to step 304, and is not described herein again.
405: the category of the content to be updated is determined.
The category of the content to be updated comprises a first category and a second category.
The first category is a content that, when the preset relationship exists between the area to be updated and the target area, if the content to be updated is not refreshed in the cache area, the content to be updated can still be normally displayed when the preset relationship does not exist between the area to be updated and the target area, that is, the content does not need to be updated under the condition that the user is invisible. For example, the content to be updated is a group of pictures that are not associated with each other, or a dynamic image that is played repeatedly, and when the area to be updated corresponding to the content has the preset relationship with the target area, the content does not need to be updated continuously because the content is not updated continuously, and thus the content does not need to be updated continuously and stored in the cache area. And refreshing the content to be updated to the area to be updated when the preset relation between the area to be updated of the contents and the target area does not exist any more, so that the updated content can be normally displayed. The second category is the content that cannot be normally displayed when the preset relationship does not exist between the area to be updated and the target area, that is, the content still needs to be updated under the condition that the user is invisible, if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area. For example, the content to be updated includes a counter, and count statistics needs to be performed on a certain element in the updated content, that is, the content to be updated is the content that needs to be updated continuously, and if the updated content is not continuously refreshed into the cache region, an error occurs in the count statistics.
If the position of the area to be updated and the position of the target area have a preset relationship and the content to be updated belongs to the first category, step 406 is executed to reduce waste of resources and energy to the maximum extent.
Illustratively, the content of the first category includes content such as pictures or videos that need to be dynamically updated in a web page, and each update of the content does not affect each other, and when the update is performed, the area to be updated is located outside the user visible area, and the update can be ignored, and neither caching nor rendering of the content to be updated is required. And when the next time of updating, if the area to be updated is positioned in the visible area of the user, the content needing to be updated can be normally acquired again for caching and drawing.
If the position of the area to be updated and the target area have a preset relationship and the content to be updated belongs to the second category, step 407 is executed to ensure normal use of the user on the basis of reducing resource and energy waste as much as possible.
For example, some pages are displayed according to the principle that all acquired data are refreshed into a cache region, and the content displayed in the region is changed by changing the coordinates of the data to be displayed. The second category of content referred to in the embodiments of the present invention includes such content. For example: and if a certain area is used for displaying 1 group of pictures and 8 pictures in total, the data corresponding to the 8 groups of pictures are all refreshed to a cache area in the process of displaying or rendering a page, and the corresponding pictures can be displayed by changing the node coordinates corresponding to the pictures to be displayed during drawing. In order to better display all 8 groups of pictures, changing the node coordinates corresponding to the pictures to be displayed is often performed according to a certain rule, for example, the node coordinates are refreshed to the next group of pictures at preset time intervals. Therefore, if the updated content is not cached in the cache region according to the first category of processing mode, the updated content needs to be acquired again each time the updated content is displayed, and the picture is displayed from the group 1 again, so that the subsequent picture is difficult to be displayed. Therefore, in such an application scenario, even if the area to be updated is not in the user-visible area, the content to be updated still needs to be refreshed in the cache area, otherwise the page content cannot be displayed normally.
406: not caching the content to be updated in a cache region and not drawing the content to be updated in the region to be updated.
For the content to be updated belonging to the first category, no operation is performed from the step of not refreshing the content to be updated to the cache region, and further, the process of drawing and the like is naturally terminated.
407: and refreshing the content to be updated to a cache region, but not drawing the content to be updated in the region to be updated.
For the contents to be updated in the second category, even if the contents do not need to be drawn, the contents still need to be refreshed into the cache region to ensure that the contents are updated in real time and subsequent display is not affected.
In the embodiment, on the basis of judging whether the position of the area to be updated and the target area have the preset relationship, the type judgment of the content to be updated is also added, when the position of the area to be updated and the target area have the preset relationship and the content to be updated corresponding to the node to be updated belongs to the first type, in the process of page refreshing, the process of refreshing the content to be updated to the cache area is not processed, the drawing process is naturally terminated, and the waste of resources and energy in the page refreshing process can be further reduced. When the content to be updated corresponding to the node to be updated belongs to the second category, the content to be updated is still refreshed into the cache region, and only the drawing processing and the subsequent steps of the content to be updated are stopped, so that the normal display of the content to be updated can be ensured on the basis of reducing the waste of resources and energy as much as possible.
It should be noted that, in conjunction with the page refresh process shown in fig. 1, each step in the embodiment of the present invention is executed after step 103 shown in fig. 1 and before step 104, that is, the present invention is executed before caching the content to be updated in the area to be updated and drawing the content to be updated in the whole page refresh process. In addition, the drawing operation not in the area to be updated in the embodiment of the present invention means that step 105 in the page refreshing process is not performed; the embodiment of the present invention refers to not caching the content to be updated in the cache region, which means not performing step 104 in the page refreshing process.
As shown in fig. 5, an embodiment of the present invention further provides a method for refreshing a page, which is applied to the terminal shown in fig. 2, and the method includes:
501: and acquiring the position of the area to be updated.
The area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page.
502: the location of the target area is determined.
Wherein the target area is an area of the page that is currently visible on the display.
The specific implementation process of step 501 and step 502 can refer to step 301 and step 302.
503: and judging whether a preset relation exists between the position of the area to be updated and the position of the target area.
When the position of the area to be updated and the position of the target area have a preset relationship, executing the following step 504, and when the position of the area to be updated and the position of the target area do not have a preset relationship, executing the following step 505.
The method includes that a preset relationship exists between the position of a region to be updated and the position of a target region, and specifically includes the following conditions:
and A1, the area to be updated is partially or completely overlapped with the target area, and the overlapped area is not blocked by other areas, namely the area to be updated is partially or completely visible for a user.
A2, the area to be updated and the target area do not overlap, but the distance between the area to be updated and the target area is within a preset range.
A3, the area to be updated and the target area do not overlap, but the duration is within a certain period of time, namely the duration is short. In these cases, in order to ensure a good page display effect, the content to be updated needs to be refreshed and drawn in the area to be updated.
Correspondingly, the position of the area to be updated and the position of the target area do not have a preset relationship, and the method specifically comprises the following conditions:
and B1, the area to be updated and the target area do not have an overlapping area.
In this embodiment, when there is no overlapping area between the area to be updated and the target area, it indicates that the area to be updated is located outside the area of the page currently visible on the display, and is not visible to the user. Therefore, in this case, the present invention can reduce the waste of resources and energy in the page refresh process by not drawing the content to be updated in the area to be updated.
B2, an overlapping area exists between the area to be updated and the target area, but a first node exists in the rendering tree corresponding to the page, and the area corresponding to the first node completely covers the area to be updated.
Specifically, when the first node and the node to be updated have the following relationship, it may be determined that the region corresponding to the first node completely blocks the region to be updated: the value of the z coordinate of the first node in the rendering tree is larger than that of the z coordinate of the node to be updated in the rendering tree, and the area to be updated is completely located in the area corresponding to the first node.
In this embodiment, although there is an overlapping area between the area to be updated and the target area, there is another area that completely "blocks" the area to be updated, and therefore, the area to be updated is still invisible to the user.
And B3, the area to be updated is completely outside the target area, and the distance between the area to be updated and the target area is outside the preset range.
In this embodiment, when the area to be updated is not in the area where the page is currently visible on the display, in some cases, the user may move the page slightly so that the area to be updated falls within the page display area. Therefore, the judgment of the distance between the area to be updated and the area of the page which is currently visible on the display is added, and when the distance between the area to be updated and the area of the page which is currently visible on the display is shorter, in order to present a better page display effect, the content to be updated still needs to be refreshed and rendered in the area to be updated; when the distance between the area to be updated and the target area exceeds a certain range, the distance between the area to be updated and the target area may be considered to be relatively long, and in this case, the content to be updated may not be refreshed and drawn in the area to be updated.
And B4, the position of the area to be updated is completely outside the target area, and the time for the area to be updated to be completely outside the target area exceeds a certain time range.
In this embodiment, when the location of the area to be updated is completely outside the target area, and the time when the area to be updated is completely outside the target area exceeds a certain time range, it may be considered that the user does not need to browse the content of the area to be updated for a long time, and therefore, the content to be updated may not be refreshed and drawn in the area to be updated.
504: and refreshing the content to be updated to the area to be updated.
505: the content to be updated is not drawn in the area to be updated.
Compared with a local refreshing mechanism in the prior art, the method for refreshing the page provided by the embodiment of the invention adds a judgment process for judging whether the position of the area to be updated and the position of the area of the page which is currently visible on the display have a preset relationship or not when the local refreshing is required, and refreshes the content to be updated to the area to be updated only when the position of the area to be updated and the position of the area of the page which is currently visible on the display have the preset relationship, so that the local refreshing of the page is realized. If the preset relation is not met, the page does not need to be refreshed locally, and compared with a local refreshing mechanism in the prior art, the method and the device can reduce unnecessary refreshing processes, and further can further reduce the waste of resources and energy in the page refreshing process.
As shown in fig. 6, as a specific application of the method shown in fig. 3 and fig. 4, the present invention further provides a device for page refreshing, where the device, as a terminal, specifically includes:
the obtaining module 601 is configured to obtain a location of the area to be updated.
The area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page.
A display module 602, configured to determine a currently displayed area in the page, and display the page content in the currently displayed area on a display.
A processing module 603, configured to determine a position of a target area, where the target area is an area displayed on the display by the display module 602 in a page; when the position of the area to be updated acquired by the acquiring module 601 and the position of the target area have a preset relationship, the content to be updated is not drawn in the area to be updated in the process of page refreshing.
In the present embodiment, the terminal is presented in the form of a functional module. A "module" as used herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that provide the described functionality. In a simple embodiment, those skilled in the art will appreciate that the terminal may take the form shown in fig. 2. The obtaining module 601 and the processing module 603 may be implemented by the processor 201 and the memory 203 of fig. 2, and the displaying module 602 may be implemented by the display 204 of fig. 2.
Optionally, the step of determining that the position of the region to be updated and the position of the target region have a preset relationship specifically includes: the area to be updated and the target area have no overlapping area.
Optionally, the step of determining that the position of the region to be updated and the position of the target region have a preset relationship specifically includes: the region to be updated and the target region have an overlapping region, and a first node exists in a rendering tree corresponding to the page; and the area corresponding to the first node completely shields the area to be updated corresponding to the node to be updated.
Optionally, the processing module 603 is further configured to determine the category of the content to be updated when the preset relationship exists between the position of the area to be updated and the position of the target area; when the content to be updated belongs to a first category, not caching the content to be updated in a cache region; the first category is the content which can still be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area; when the content to be updated belongs to a second category, refreshing the content to be updated to a cache region; the second category is content which cannot be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area.
Compared with a local refresh mechanism in the prior art, the page refresh device provided in the embodiment of the present invention adds a determination process of whether a preset relationship exists between the position of the area to be updated and the position of the area of the page that is currently visible on the display when local refresh is required, and does not draw the content to be updated in the area to be updated when the preset relationship exists between the position of the area to be updated and the position of the area of the page that is currently visible on the display. Since the drawing process consumes a large amount of resources and energy, the waste of resources and energy can be reduced without performing the drawing process. Therefore, the invention can reduce unnecessary refreshing process on the basis of partial refreshing in the prior art, and further can further reduce the waste of resources and energy in the page refreshing process.
As shown in fig. 7, as a specific application of the method shown in fig. 5, the present invention further provides a device for page refreshing, where the device, as a terminal, specifically includes:
an obtaining module 701, configured to obtain a location of the area to be updated.
The area to be updated is an area to be updated of the content to be updated in the page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page.
A display module 702, configured to determine a currently displayed area in the page, and display the page content in the currently displayed area on a display.
A processing module 703, configured to determine a position of a target area, where the target area is a visible area displayed on the display by the display module 702 in a page; when the position of the area to be updated acquired by the acquiring module 701 has a preset relationship with the position of the target area, the content to be updated is refreshed to the area to be updated.
In the present embodiment, the terminal is presented in the form of a functional module. A "module" as used herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that provide the described functionality. In a simple embodiment, those skilled in the art will appreciate that the terminal may take the form shown in fig. 2. The obtaining module 701 and the processing module 703 may be implemented by the processor 201 and the memory 203 of fig. 2, and the displaying module 702 may be implemented by the display 204 of fig. 2.
Optionally, the step of determining that the position of the region to be updated and the position of the target region have a preset relationship specifically includes: the area to be updated and the target area have no overlapping area.
Optionally, the step of determining that the position of the region to be updated and the position of the target region have a preset relationship specifically includes: the region to be updated and the target region have an overlapping region, and a first node does not exist in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated.
Compared with a local refreshing mechanism in the prior art, the page refreshing device provided by the embodiment of the invention adds a judgment process for judging whether the position of the area to be updated and the position of the area of the page which is currently visible on the display have a preset relationship when the local refreshing is required, and refreshes the content to be updated to the area to be updated when the position of the area to be updated and the position of the area of the page which is currently visible on the display have the preset relationship, so that the local refreshing of the page is realized. If the preset relation is not met, the page does not need to be refreshed locally, and compared with a local refreshing mechanism in the prior art, the method and the device can reduce unnecessary refreshing processes, and further can further reduce the waste of resources and energy in the page refreshing process.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (12)

1. A method of page refresh, comprising:
acquiring the position of an area to be updated, wherein the area to be updated is an area to be updated of content to be updated in a page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page;
determining the position of a target area, wherein the target area is an area which is visible on a display at present in the page;
when the position of the area to be updated and the position of the target area have a preset relationship, the content to be updated is not drawn in the area to be updated in the process of page refreshing;
when the preset relationship exists between the position of the area to be updated and the position of the target area, the method further comprises the following steps:
determining the category of the content to be updated;
when the content to be updated belongs to the first category, before the content to be updated is not drawn in the area to be updated, the method further comprises: not caching the content to be updated in a cache region; the first category is the content which can still be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area;
when the content to be updated belongs to the second category, before the content to be updated is not drawn in the area to be updated, the method further comprises: refreshing the content to be updated to a cache region; the second category is content which cannot be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area.
2. The method according to claim 1, wherein the position of the region to be updated and the target region has a preset relationship, specifically comprising:
the area to be updated and the target area have no overlapping area.
3. The method according to claim 1, wherein the position of the region to be updated and the target region has a preset relationship, specifically comprising:
the region to be updated and the target region have an overlapping region, and a first node exists in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated.
4. The method of claim 1, comprising:
and when the position of the area to be updated does not have the preset relationship with the position of the target area, refreshing the content to be updated to the area to be updated.
5. The method according to claim 4, wherein the absence of the preset relationship between the location of the region to be updated and the location of the target region specifically includes:
the region to be updated and the target region have an overlapping region, and a first node does not exist in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated.
6. An apparatus for page refresh, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring the position of a region to be updated, the region to be updated is a region to be updated of content to be updated in a page, and the content to be updated is content corresponding to at least one node to be updated in a rendering tree corresponding to the page;
the display module is used for determining a currently displayed area in the page and displaying the page content in the currently displayed area on a display;
the processing module is used for determining the position of a target area, wherein the target area is an area displayed on the display by the display module in a page; when the position of the area to be updated acquired by the acquisition module and the position of the target area have a preset relationship, the content to be updated is not drawn in the area to be updated in the process of page updating;
the processing module is further configured to determine a category of the content to be updated when the preset relationship exists between the position of the area to be updated and the position of the target area;
when the content to be updated belongs to a first category, not caching the content to be updated in a cache region; the first category is the content which can still be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area;
when the content to be updated belongs to a second category, refreshing the content to be updated to a cache region; the second category is content which cannot be normally displayed when the preset relationship does not exist between the area to be updated and the target area if the content to be updated is not refreshed in the cache area when the preset relationship exists between the area to be updated and the target area.
7. The apparatus according to claim 6, wherein the existence of the preset relationship between the location of the region to be updated and the location of the target region specifically includes:
the area to be updated and the target area have no overlapping area.
8. The apparatus according to claim 6, wherein the existence of the preset relationship between the location of the region to be updated and the location of the target region specifically includes:
the region to be updated and the target region have an overlapping region, and a first node exists in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated.
9. The apparatus of claim 6, wherein:
the processing module is further configured to refresh the content to be updated to the area to be updated when the preset relationship does not exist between the position of the area to be updated acquired by the acquiring module and the position of the target area.
10. The apparatus according to claim 9, wherein the absence of the preset relationship between the location of the region to be updated and the location of the target region specifically includes:
the region to be updated and the target region have an overlapping region, and a first node does not exist in a rendering tree corresponding to the page; and the area corresponding to the first node completely covers the area to be updated.
11. A terminal, comprising: a processor, a memory, a display, and a bus through which the processor, memory, display communicate with each other, wherein:
the memory is to store computer executable program code;
the processor is configured to perform the method of any one of claims 1 to 3 in accordance with computer executable program code stored in the memory;
the display is used for displaying the currently displayed area in the page.
12. A terminal, comprising: a processor, a memory, a display, and a bus through which the processor, memory, display communicate with each other, wherein:
the memory is to store computer executable program code;
the processor is configured to perform the method of any one of claims 4 to 5 in accordance with computer executable program code stored in the memory;
the display is used for displaying the currently displayed area in the page.
CN201610932504.6A 2016-10-31 2016-10-31 Page refreshing method and device Active CN106570098B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610932504.6A CN106570098B (en) 2016-10-31 2016-10-31 Page refreshing method and device
PCT/CN2017/092843 WO2018076795A1 (en) 2016-10-31 2017-07-13 Page refreshing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610932504.6A CN106570098B (en) 2016-10-31 2016-10-31 Page refreshing method and device

Publications (2)

Publication Number Publication Date
CN106570098A CN106570098A (en) 2017-04-19
CN106570098B true CN106570098B (en) 2020-06-16

Family

ID=60414218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610932504.6A Active CN106570098B (en) 2016-10-31 2016-10-31 Page refreshing method and device

Country Status (2)

Country Link
CN (1) CN106570098B (en)
WO (1) WO2018076795A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570098B (en) * 2016-10-31 2020-06-16 华为技术有限公司 Page refreshing method and device
CN107357623A (en) * 2017-07-20 2017-11-17 上海金大师网络科技有限公司 A kind of Part-redraw method and system based on multi-layer image
CN110489187B (en) * 2018-05-15 2021-09-24 腾讯科技(深圳)有限公司 Page refreshing method and device, storage medium and computer equipment
CN110580125B (en) * 2018-06-07 2022-04-22 广州视源电子科技股份有限公司 Partial refreshing method, device, equipment and medium for display interface
WO2020054600A1 (en) * 2018-09-11 2020-03-19 株式会社ブックウォーカー Electronic content browsing system, electronic content browsing method, and computer-readable recording medium
CN110908680A (en) * 2018-09-17 2020-03-24 阿里巴巴集团控股有限公司 Information processing method, device and equipment
CN110908550B (en) * 2018-09-17 2022-11-08 北京京东尚科信息技术有限公司 Operation processing method and device in cursor hovering state
CN109783305B (en) * 2018-11-22 2022-08-19 厦门市美亚柏科信息股份有限公司 Method and device for monitoring information
CN109375918A (en) * 2018-11-23 2019-02-22 天津字节跳动科技有限公司 Interface rendering method, device, electronic equipment and the storage medium of small routine
CN111813467B (en) * 2019-04-10 2024-07-02 阿里巴巴集团控股有限公司 Interface refreshing method and device and readable storage medium
CN110134905B (en) * 2019-05-21 2022-03-04 北京字节跳动网络技术有限公司 Page update display method, device, equipment and storage medium
CN110311754B (en) * 2019-06-24 2022-03-11 北京字节跳动网络技术有限公司 Data receiving method and device, storage medium and electronic equipment
CN110647704B (en) * 2019-09-20 2022-05-24 北京思维造物信息科技股份有限公司 Page updating method, device and equipment
CN110909279B (en) * 2019-11-19 2022-09-13 广州至真信息科技有限公司 Webpage rendering method and device, computer equipment and storage medium
CN111831351A (en) * 2020-06-24 2020-10-27 平安普惠企业管理有限公司 Page loading method and device based on image analysis and computer equipment
CN112883297B (en) * 2021-02-26 2022-03-18 迈普通信技术股份有限公司 Network topology display method and device and electronic equipment
CN114398019B (en) * 2022-01-24 2024-02-23 广州文石信息科技有限公司 Screen update request processing method and device and electronic ink screen equipment
CN115442664A (en) * 2022-08-19 2022-12-06 武汉斗鱼鱼乐网络科技有限公司 Display method, device, medium and electronic equipment of panel view
CN115659087B (en) * 2022-11-28 2023-03-17 阿里巴巴(中国)有限公司 Page rendering method, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365930A (en) * 2012-04-11 2013-10-23 富泰华工业(深圳)有限公司 Webpage content display control system and webpage content display control method
CN104850415A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for loading pages
CN105701106A (en) * 2014-11-27 2016-06-22 广州市动景计算机科技有限公司 Web page refreshment method and device
CN105787036A (en) * 2016-02-25 2016-07-20 广州神马移动信息科技有限公司 Method and device for controlling page content to update

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100592291C (en) * 2007-03-29 2010-02-24 腾讯科技(深圳)有限公司 Web page dynamic updating method, system and apparatus
US20120144288A1 (en) * 2010-12-02 2012-06-07 International Business Machines Corporation Web page content display priority and bandwidth management
CN103853417B (en) * 2012-11-30 2017-08-04 腾讯科技(深圳)有限公司 The rolling Pagination Display method and apparatus of network dynamic picture
CN103577603B (en) * 2013-11-19 2017-11-17 北京京东尚科信息技术有限公司 A kind of webpage loading method, apparatus and system
CN106570098B (en) * 2016-10-31 2020-06-16 华为技术有限公司 Page refreshing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365930A (en) * 2012-04-11 2013-10-23 富泰华工业(深圳)有限公司 Webpage content display control system and webpage content display control method
CN104850415A (en) * 2014-02-13 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for loading pages
CN105701106A (en) * 2014-11-27 2016-06-22 广州市动景计算机科技有限公司 Web page refreshment method and device
CN105787036A (en) * 2016-02-25 2016-07-20 广州神马移动信息科技有限公司 Method and device for controlling page content to update

Also Published As

Publication number Publication date
CN106570098A (en) 2017-04-19
WO2018076795A1 (en) 2018-05-03

Similar Documents

Publication Publication Date Title
CN106570098B (en) Page refreshing method and device
US10339209B2 (en) Webpage display method and device
US10452758B1 (en) Optimizing online content rendering
CN112667330A (en) Page display method and computer equipment
US11610563B2 (en) Location-based display of pixel history
US10915236B2 (en) User interface design system
CN115793926A (en) List rendering method and device, electronic equipment and storage medium
KR20190059943A (en) Method and system for real-time content delivery
CN112395535B (en) Lazy loading method and apparatus for picture, medium and electronic device
AU2016205616A1 (en) Method of displaying content and electronic device implementing same
CN104881452A (en) Resource locator sniffing method, device and system
CN112800373B (en) Webpage resource data generation method and device, computer equipment and storage medium
CN109948084B (en) Webpage information display method, device, medium and computing equipment
US9633408B2 (en) Coalescing graphics operations
US20110066935A1 (en) Data file and rule driven synchronous or asynchronous document generation
TWI489370B (en) System and method for rendering widget
CN114168130A (en) Buried point data reporting method and device, electronic equipment and storage medium
CN117111799A (en) Data display method and device, storage medium and electronic equipment
US20160342570A1 (en) Document presentation qualified by conditions evaluated on rendering
CN113656020A (en) Reactnative-based picture display component development method and related components
CN113688336A (en) Page data loading method and loading device
US20190163762A1 (en) Reflow of user interface elements
TWM511642U (en) An AJAX web reminder for data updating
CN118466807A (en) Control method and device based on jQuery full-screen carousel map
CN118466806A (en) Image amplification special effect forming method and device based on real mouse hovering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant