Nothing Special   »   [go: up one dir, main page]

CN108268499A - A kind of Webpage display process and device - Google Patents

A kind of Webpage display process and device Download PDF

Info

Publication number
CN108268499A
CN108268499A CN201611261745.9A CN201611261745A CN108268499A CN 108268499 A CN108268499 A CN 108268499A CN 201611261745 A CN201611261745 A CN 201611261745A CN 108268499 A CN108268499 A CN 108268499A
Authority
CN
China
Prior art keywords
page
data
rendered
array
client
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.)
Pending
Application number
CN201611261745.9A
Other languages
Chinese (zh)
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.)
BEIJING UNION VOOLE TECHNOLOGY Co Ltd
Original Assignee
BEIJING UNION VOOLE TECHNOLOGY 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 BEIJING UNION VOOLE TECHNOLOGY Co Ltd filed Critical BEIJING UNION VOOLE TECHNOLOGY Co Ltd
Priority to CN201611261745.9A priority Critical patent/CN108268499A/en
Publication of CN108268499A publication Critical patent/CN108268499A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of Webpage display process and devices, to solve the problems, such as that client of the existing technology can repeat to load and repeat to render for the same page that user's repetitive requests are opened, network flow are avoided to waste, improves page response speed.Method includes:When client needs to show the first page of webpage, which judges in Hidden field with the presence or absence of the first page after rendering;If there is the first page after rendering in Hidden field, client calls the first page after rendering from Hidden field, and shows the first page after rendering;If there is no the first pages after rendering in Hidden field, then when the data that first page is stored in array, client obtains the data of first page from array, and the first page after being rendered to the data of first page, and shows the first page after rendering.

Description

Webpage display method and device
Technical Field
The invention relates to the technical field of internet, in particular to a webpage display method and device.
Background
In the prior art, when a user requests to open a page of a web page, the web page may be a page of a browser or a page of an Application (APP), and a client needs to load all data in the page through a network and render the page to display the rendered page. The process from the start of loading data to the presentation of the page to the user requires a certain response time. The time consumed by the two steps of loading all the data in the page and rendering the page directly determines the page response speed. When the user requests to open the previously opened page again, the client still needs to load all data in the page through the network and render the page, so that the rendered page can be displayed to the user.
Therefore, in the prior art, the problem that the same page opened by the client repeatedly requested by the user is repeatedly loaded and repeatedly rendered exists, so that network traffic is wasted, and the page response time is long.
Disclosure of Invention
The embodiment of the invention provides a webpage display method and a webpage display device, which are used for solving the problems that in the prior art, a client repeatedly loads and repeatedly renders the same page opened by a user repeatedly requesting.
In a first aspect, a method for displaying a webpage provided in an embodiment of the present invention includes:
when the client needs to display a first page of a webpage, the client judges whether the rendered first page exists in the hidden domain;
if the rendered first page exists in the hidden domain, the client calls the rendered first page from the hidden domain and displays the rendered first page;
if the rendered first page does not exist in the hidden domain, when the data of the first page is stored in the array, the client acquires the data of the first page from the array, renders the data of the first page to obtain the rendered first page, and displays the rendered first page.
In one possible design, before the client renders the data of the first page to obtain the rendered first page, the method further includes:
if the rendered first page does not exist in the hidden domain, the client acquires the data of the first page through a network when the data of the first page is not stored in the array;
the client stores the data of the first page acquired through the network in an array.
In one possible design, if the rendered first page does not exist in the hidden field, after the client displays the rendered first page, the method further includes:
and the client closes the displayed rendered first page and sets the rendered first page in the hidden domain.
In one possible design, the method further includes:
in the process that the client displays the rendered first page, the client acquires data of a second page through a network or from an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page;
and the client renders the data of the second page to obtain a rendered second page, and sets the rendered second page in the hidden domain.
In one possible design, the method further includes:
in the process that the client displays the rendered first page, the client acquires data of a second page through a network and stores the data of the second page in an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page.
In one possible design, the method further includes:
when the data of the third page is stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold value, the client deletes the data of the third page from the array; and/or the presence of a gas in the gas,
and when the memory occupied by the data of the page stored in the array exceeds a second threshold value, the client deletes the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest storage duration in the array.
In a second aspect, an embodiment of the present invention provides a web page display apparatus, where the apparatus is applied to a client, and the apparatus includes:
the judging unit is used for judging whether the rendered first page exists in the hidden domain when the client needs to display the first page of the webpage;
the processing unit is used for calling the rendered first page from the hidden domain and displaying the rendered first page if the judging unit judges that the rendered first page exists in the hidden domain;
the processing unit is further configured to, if the judging unit judges that the rendered first page does not exist in the hidden field, obtain data of the first page from the array when the data of the first page is stored in the array, render the data of the first page to obtain the rendered first page, and display the rendered first page.
In one possible design, the processing unit is further configured to:
before rendering the data of the first page to obtain a rendered first page, if the judging unit judges that the rendered first page does not exist in the hidden domain, the data of the first page is obtained through a network when the data of the first page is not stored in the array;
and storing the data of the first page acquired through the network in an array.
In one possible design, the processing unit is further configured to:
and if the judging unit judges that the rendered first page does not exist in the hidden domain, after the rendered first page is displayed, closing the displayed rendered first page, and setting the rendered first page in the hidden domain.
In one possible design, the processing unit is further configured to:
in the process of displaying the rendered first page, acquiring data of a second page through a network or from an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page;
rendering the data of the second page to obtain a rendered second page, and setting the rendered second page in the hidden domain.
In one possible design, the processing unit is further configured to:
and in the process of displaying the rendered first page, acquiring data of a second page through a network, and storing the data of the second page in an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page.
In one possible design, the processing unit is further configured to:
when the data of the third page is stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold value, deleting the data of the third page from the array; and/or the presence of a gas in the gas,
and when the memory occupied by the data of the page stored in the array exceeds a second threshold value, deleting the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest storage duration in the array.
According to the webpage display method and device provided by the embodiment of the invention, when the client needs to display the first page of the webpage, the client judges whether the rendered first page exists in the hidden domain. When the rendered first page exists in the hidden domain, the client can call the rendered first page from the hidden domain, and the rendered first page can be displayed without acquiring data of the first page and rendering the first page; if the rendered first page does not exist in the hidden domain, when the data of the first page is stored in the array, the client acquires the data of the first page from the array and renders the data of the first page to obtain the rendered first page, and the client can display the rendered first page without loading the data of the first page. The technical scheme provided by the embodiment of the invention solves the problems of repeated loading and repeated rendering of the same page opened by the repeated request of the user by the client in the prior art, avoids network flow waste and improves the page response speed.
Drawings
Fig. 1 is a schematic flowchart of a web page display method according to an embodiment of the present invention;
fig. 2A is a schematic process diagram of a first client displaying a page according to an embodiment of the present invention;
fig. 2B is a schematic process diagram of displaying a page at a second client according to an embodiment of the present invention;
fig. 3 is a schematic process diagram of displaying a page at a third client according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a web page display device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, 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 embodiment of the invention provides a webpage display method and device, which are used for solving the problems that a client repeatedly loads and repeatedly renders the same page which is repeatedly requested to be opened by a user in the prior art, avoiding network traffic waste and improving the page response speed. The method and the device are based on the same inventive concept, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
The technical scheme provided by the embodiment of the invention is suitable for the scene of displaying the webpage at the client, and is particularly suitable for the scene of needing to quickly display the webpage.
In the existing technical solution for displaying a web page, when a user requests to open a previously opened page again, a client still needs to load all data in the page through a network and render the page, so that the rendered page can be displayed. The technical scheme provided by the embodiment of the invention can realize that the client can rapidly display the rendered page, solves the problems of repeated loading and repeated rendering of the same page which is repeatedly requested to be opened by the client in the prior art, avoids network traffic waste and improves the page response speed.
The page of the webpage related to the embodiment of the invention can be a page of a browser or an APP page. The embodiment of the invention relates to a client, which is a program for providing service for a user, is generally installed on terminal equipment of the user and is matched with a server for operation, and the terminal provided with the client comprises but is not limited to a mobile phone, a television, a computer and other terminals.
The technical scheme provided by the embodiment of the invention is described in detail by the embodiment.
As shown in fig. 1, an embodiment of the present invention provides a method for displaying a web page, including:
s101, when the client needs to display the first page of the webpage, the client judges whether the rendered first page exists in the hidden domain.
In this embodiment, the first page is a page that the user requests the client to open. Taking the first page as an example of a page where the video playing client provides video selection for the user, the content to be displayed by the first page includes, but is not limited to, a video name, a picture, a video introduction, and other information.
In this embodiment, what exists in the hidden domain is a rendered page obtained by rendering content, which needs to be displayed, of the page by the client, the client does not display the rendered page existing in the hidden domain to the user, and the rendered page existing in the hidden domain can be displayed to the user only after being called out of the hidden domain.
In this embodiment, the reason why the rendered first page exists in the hidden field is divided into the following two cases:
the first condition is as follows: before S101, the client displays the rendered first page, and after closing the rendered first page, the client sets the rendered first page in the hidden field. Therefore, when S101 is executed, there may be a rendered first page in the hidden domain.
Case two: before S101, the client does not display the rendered first page, acquires data of the first page, renders the data of the first page to obtain the rendered first page, and sets the rendered first page in the hidden domain. Therefore, when S101 is executed, there may be a rendered first page in the hidden domain.
Therefore, when the client needs to display the first page of the web page, the response speed of displaying the first page is improved. The client can search whether the identifier for indicating the rendered first page exists in the hidden domain, judge whether the rendered first page exists in the hidden domain, and then call the rendered first page from the hidden domain and display the rendered first page under the condition that the rendered first page exists in the hidden domain. Therefore, in the process of displaying the rendered first page by the client, the data of the first page does not need to be acquired and the first page does not need to be rendered, so that the network flow consumed when the client acquires the data of the first page is reduced, the overhead time for rendering the first page is reduced, and the response speed for displaying the rendered first page is improved.
S102, if the rendered first page exists in the hidden domain, the client calls the rendered first page from the hidden domain and displays the rendered first page.
In S102, the client calls the rendered first page from the hidden domain and displays the rendered first page, the client does not need to acquire data of the first page and render the first page, network flow consumed when the client acquires the data of the first page is reduced, overhead time for rendering the first page is reduced, and response speed for displaying the rendered first page is improved.
S103, if the rendered first page does not exist in the hidden domain, when the data of the first page is stored in the array, the client acquires the data of the first page from the array, renders the data of the first page to obtain the rendered first page, and displays the rendered first page.
When the client needs to display the first page of the webpage, if the client judges that the rendered first page does not exist in the hidden domain, the client acquires the data of the first page from the array, renders the data of the first page to obtain the rendered first page, and displays the rendered first page.
One array can store data of one page, and can also store data of a plurality of pages. The client may set an array in the global variable, which will occupy the memory of the client. The process of storing a page of data in an array includes: the client acquires data of a page through a network, determines that the data of the page is not stored in the array, stores the data of the page in the array, and marks the data of the page in the array. The reason why the data of the first page is stored in the array can be divided into the following two cases:
the first condition is as follows: before S103, the client displays the rendered first page, and the client stores the data of the first page in an array. Therefore, when S103 is executed, the data of the first page may be stored in the array.
Case two: before S103, the client does not display the rendered first page, and the client acquires data of the first page through the network and stores the data of the first page in the array. Therefore, when S103 is executed, the data of the first page may be stored in the array.
In this embodiment, all data of the page may be stored in the array, and part of the data of the page may also be stored according to actual needs. Taking the example that the page stored in the array is the page for the video playing client to provide video selection for the user, the data stored in the array includes, but is not limited to, video name, picture, video introduction, charging information, resolution, code stream, etc.
The client can acquire the data of the first page from the array, and the client does not need to load the data of the first page through the network, so that the speed of acquiring the data of the first page by the client is not limited by the transmission speed of the network. In the process of displaying the rendered first page by the client, the data of the first page does not need to be acquired, so that the network flow consumed when the client acquires the data of the first page and the overhead time for acquiring the data of the first page are reduced, and the response speed for displaying the rendered first page is improved.
Optionally, if the rendered first page does not exist in the hidden field and the data of the first page is not stored in the array, the client acquires the data of the first page through the network and stores the data of the first page acquired through the network in the array, so that when the subsequent client needs to display the first page, the client can acquire the data of the first page from the array without repeatedly loading the data of the first page through the network, thereby reducing network traffic consumed when the client repeatedly acquires the data of the first page and overhead time for acquiring the data of the first page, and improving response speed of the client for displaying the rendered first page.
Optionally, after the client displays the rendered first page, if the client closes the displayed rendered first page, and at this time, if the rendered first page does not exist in the hidden domain, the client sets the rendered first page in the hidden domain, so that when the subsequent client needs to display the first page, the client can call the rendered first page from the hidden domain and display the rendered first page, and the data of the first page and the rendered first page do not need to be repeatedly acquired, thereby improving the response speed of displaying the rendered first page by the client when the user requests to turn the page.
Optionally, in the process of displaying the rendered first page by the client, the client may obtain data of the second page through the network, and store the data of the second page in the array. The second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page, and the first page can also be a second page of other pages. For example, in the case where the set number of pages is 2 pages and the second page includes a page whose set number of pages is before the first page and a page whose set number of pages is after the first page, when the rendered page number of which is 9 is displayed by the client, the client may acquire data of pages whose page numbers are 7, 8, 10, and 11 through the network and store the data of the pages whose page numbers are 7, 8, 10, and 11 in an array.
The client asynchronously obtains the data of the second page through the network and stores the obtained data of the second page into the array, so that when the client needs to display the second page, the client can obtain the data of the second page from the array, the client is prevented from loading the data of the second page through the network, and the response speed of displaying the rendered second page by the client when the user requests to turn over to the second page is further improved.
Optionally, when the speed of asynchronously acquiring the data of the second page through the network by the client is too low, if the number of pages of the second page that the client needs to acquire is large, the speed of acquiring the second page by the client is slow, and thus the response speed of displaying the second page by the client when the user requests to turn over to the second page cannot be improved. Therefore, the client can determine the set number of pages of the second page according to the performance of the terminal in which the client is installed and the transmission speed of the network to which the client is connected.
Optionally, in the process of displaying the rendered first page by the client, the client may further obtain data of the second page through a network or from an array, render the data of the second page by the client to obtain the rendered second page, and set the rendered second page in the hidden domain. The client sets the rendered second page in the hidden domain, and when the subsequent client needs to display the second page, the client can call the rendered second page from the hidden domain and display the rendered second page, so that the response speed of displaying the rendered second page by the client when the user requests to turn over to the second page is improved.
It should be noted that the data of the second page and the data of the first page may be stored in the same array, or may be stored in different arrays, which is not limited in this embodiment.
Considering that the real-time data of the page in the network may change after a period of time, a first threshold may be set, where the first threshold is effective time of the data of the page stored in the array, so that the data of the page stored in the array is consistent with the real-time data of the page in the network, and the specific details are as follows:
and when the data of the third page is stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold value, the client deletes the data of the third page from the array. The third page may be the first page stored in the array, or may be the second page stored in the array.
Optionally, after the client deletes the data of the third page from the array, the client may further obtain the data of the third page from the network, and store the obtained data of the third page in the array.
The client stores the data of the page in the array, and considering that the more the data of the page stored in the array is, the larger the storage space occupied by the array is, and if the storage space occupied by the array is too large, the performance of the client is affected, therefore, by setting a second threshold value, the second threshold value refers to an upper limit value of a memory occupied by the data of the page stored in the array, the quantity of the data stored in the array is controlled, and the condition that the response speed of the client is slowed down due to the too large storage space occupied by the array is avoided. The method comprises the following specific steps:
when the memory occupied by the data of the page stored in the array exceeds a second threshold, the client deletes the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest duration stored in the array, and the fourth page may be the first page stored in the array or the second page stored in the array.
To illustrate
Taking the client needs to display the page with the page number of 1 in the web page as an example, fig. 2A is a schematic diagram of a process of displaying the page with the page number of 1 by the client. In fig. 2A, a first page is a first page in the web page display method provided in fig. 1, a second page is a second page in the web page display method provided in fig. 1, a box represents a page, a number in the box is a page number of the page, an ellipse represents an array, and a rounded rectangle represents a network. When a user requests to open a page with the page number of 1, because the rendered page with the page number of 1 does not exist in the hidden domain and the data of the page with the page number of 1 is not stored in the array, the client acquires the data of the page with the page number of 1 through the network, displays the page with the page number of 1 after rendering the data of the page with the page number of 1, and stores the data of the page with the page number of 1 in the array. In the process of displaying the page data with the page number 1, the client asynchronously obtains the data of the page with the page number 2 through the network, and stores the data of the page with the page number 2 in the array. And the client renders the data of the page with the page number 2 to obtain the rendered page with the page number 2, and sets the rendered page with the page number 2 in the hidden domain.
When a user requests to turn from a page with a page number of 1 to a page with a page number of 2, taking the client needing to display the page with the page number of 2 in the web page as an example, fig. 2B is a schematic diagram of a process of displaying the page with the page number of 2 by the client. In fig. 2B, a page with a page number of 2 is a first page in the web page display method provided in fig. 1, a page with a page number of 1 and a page with a page number of 3 are second pages in the web page display method provided in fig. 1, a box represents a page, a number in the box is a page number of the page, an ellipse represents an array, and a rounded rectangle represents a network. When a user requests to turn over from a page with the page number of 1 to a page with the page number of 2, because the rendered page with the page number of 1 does not exist in the hidden domain, after the client displays the rendered page with the page number of 1, the client closes the displayed page with the rendered page number of 1, and sets the rendered page with the page number of 1 in the hidden domain. Because the rendered page with the page number of 2 exists in the hidden domain, the client calls the rendered page with the page number of 2 from the hidden domain and displays the rendered page with the page number of 2. The processing of the page with page number 3 by the client is the same as the processing of the page with page number 2 by the client in the example shown in fig. 2A, and is not described again here.
By way of example, 2
Taking the client needing to display the page with the page number 2 in the web page as an example, fig. 3 is a schematic diagram of a process of displaying the page with the page number 2 by the client. In fig. 3, a page with a page number of 2 is a first page in the web page display method provided in fig. 1, a page with a page number of 1 and a page with a page number of 3 are second pages in the web page display method provided in fig. 1, a box represents a page, a number in the box is a page number of the page, an ellipse represents an array, and a rounded rectangle represents a network. The user requests to open a page with the page number of 2, when the rendered page with the page number of 2 does not exist in the hidden domain, and the data of the page with the page number of 2 is stored in the array, the client acquires the data of the page with the page number of 2 from the array, renders the data of the page with the page number of 2 to obtain the rendered page with the page number of 2, and displays the rendered page with the page number of 2. In the process that the client displays the rendered page with the page number of 2, the client can also obtain the data of the page with the page number of 1 and the page with the page number of 3 from the array, the client renders the data of the page with the page number of 1 and the page with the page number of 3 to obtain the rendered page with the page number of 1 and the page with the page number of 3, and sets the rendered page with the page number of 1 and the rendered page with the page number of 3 in the hidden domain.
In the technical scheme provided by the embodiment of the invention, when the client needs to display the first page of the webpage, the client judges whether the rendered first page exists in the hidden domain. When the rendered first page exists in the hidden domain, the client can call the rendered first page from the hidden domain, and the rendered first page can be displayed without acquiring data of the first page and rendering the first page; if the rendered first page does not exist in the hidden domain, when the data of the first page is stored in the array, the client acquires the data of the first page from the array and renders the data of the first page to obtain the rendered first page, and the client can display the rendered first page without loading the data of the first page. Therefore, the technical scheme provided by the embodiment of the invention reduces the network flow consumed by the client when the client acquires the data of the first page, improves the response speed of the rendered first page displayed by the client, solves the problems of repeated loading and repeated rendering of the same page opened by the client in repeated requests of the user in the prior art, avoids network flow waste and improves the page response speed.
Based on the above embodiments, the embodiment of the present invention further provides a web page display apparatus, which may adopt the method provided in the embodiment corresponding to fig. 1, and the apparatus is applied to a client. Referring to fig. 4, the web page display apparatus 400 includes: a judging unit 401 and a processing unit 402. Wherein,
a determining unit 401, configured to determine whether a rendered first page exists in a hidden domain when a client needs to display the first page of a web page;
a processing unit 402, configured to, if the determining unit 401 determines that the rendered first page exists in the hidden domain, call the rendered first page from the hidden domain, and display the rendered first page;
the processing unit 402 is further configured to, if the determining unit 401 determines that the rendered first page does not exist in the hidden field, obtain data of the first page from the array when the data of the first page is stored in the array, render the data of the first page to obtain the rendered first page, and display the rendered first page.
Optionally, the processing unit 402 is further configured to:
before rendering the data of the first page to obtain a rendered first page, if the judging unit 401 judges that the rendered first page does not exist in the hidden field, when the data of the first page is not stored in the array, the data of the first page is acquired through a network;
and storing the data of the first page acquired through the network in an array.
Optionally, the processing unit 402 is further configured to:
if the determining unit 401 determines that the rendered first page does not exist in the hidden domain, after the rendered first page is displayed, the displayed rendered first page is closed, and the rendered first page is set in the hidden domain.
Optionally, the processing unit 402 is further configured to:
in the process of displaying the rendered first page, acquiring data of a second page through a network or from an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page;
rendering the data of the second page to obtain a rendered second page, and setting the rendered second page in the hidden domain.
Optionally, the processing unit 402 is further configured to:
and in the process of displaying the rendered first page, acquiring data of a second page through a network, and storing the data of the second page in an array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page.
Optionally, the processing unit 402 is further configured to:
when the data of the third page is stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold value, deleting the data of the third page from the array; and/or the presence of a gas in the gas,
and when the memory occupied by the data of the page stored in the array exceeds a second threshold value, deleting the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest storage duration in the array.
It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The webpage display device provided by the embodiment of the invention solves the problems that the client repeatedly loads and repeatedly renders the same page which is repeatedly requested to be opened by the user in the prior art, avoids network traffic waste and improves the page response speed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A method for displaying a web page, comprising:
when a client needs to display a first page of a webpage, the client judges whether the rendered first page exists in a hidden domain;
if the rendered first page exists in the hidden domain, the client calls the rendered first page from the hidden domain and displays the rendered first page;
if the rendered first page does not exist in the hidden domain, when the data of the first page is stored in an array, the client acquires the data of the first page from the array, renders the data of the first page to obtain the rendered first page, and displays the rendered first page.
2. The method of claim 1, wherein before the client renders the data of the first page to obtain the rendered first page, further comprising:
if the rendered first page does not exist in the hidden domain, the client acquires the data of the first page through a network when the data of the first page is not stored in the array;
and the client stores the data of the first page acquired through the network in the array.
3. The method of claim 1, wherein if the rendered first page is not present in the hidden domain, after the client displays the rendered first page, further comprising:
and the client closes the displayed rendered first page and sets the rendered first page in the hidden domain.
4. The method of claim 1, further comprising:
in the process that the client displays the rendered first page, the client acquires data of a second page from the array through a network, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page;
and the client renders the data of the second page to obtain a rendered second page, and sets the rendered second page in the hidden domain.
5. The method of claim 1, further comprising:
and in the process that the client displays the rendered first page, the client acquires data of a second page through a network and stores the data of the second page in the array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page.
6. The method of any of claims 1 to 5, further comprising:
when the data of a third page are stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold, the client deletes the data of the third page from the array; and/or the presence of a gas in the gas,
and when the memory occupied by the data of the page stored in the array exceeds a second threshold value, the client deletes the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest storage duration in the array.
7. A web page display apparatus, wherein the apparatus is applied to a client, the apparatus comprising:
the judging unit is used for judging whether the rendered first page exists in a hidden domain when the client needs to display the first page of the webpage;
the processing unit is used for calling the rendered first page from the hidden domain and displaying the rendered first page if the judging unit judges that the rendered first page exists in the hidden domain;
the processing unit is further configured to, if the determining unit determines that the rendered first page does not exist in the hidden field, obtain, when the data of the first page is stored in an array, the data of the first page from the array, render the data of the first page to obtain the rendered first page, and display the rendered first page.
8. The apparatus as recited in claim 7, said processing unit to further:
before rendering the data of the first page to obtain the rendered first page, if the judging unit judges that the rendered first page does not exist in the hidden domain, the data of the first page is obtained through a network when the data of the first page is not stored in the array;
storing the data of the first page acquired through the network in the array.
9. The apparatus as recited in claim 7, said processing unit to further:
if the judging unit judges that the rendered first page does not exist in the hidden domain, after the rendered first page is displayed, the displayed rendered first page is closed, and the rendered first page is arranged in the hidden domain.
10. The apparatus as recited in claim 7, said processing unit to further:
in the process of displaying the rendered first page, acquiring data of a second page from the array or through a network, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page;
rendering the data of the second page to obtain a rendered second page, and setting the rendered second page in the hidden domain.
11. The apparatus as recited in claim 7, said processing unit to further:
and in the process of displaying the rendered first page, acquiring data of a second page through a network, and storing the data of the second page in the array, wherein the second page comprises a page with a set page number before the first page and/or a page with a set page number after the first page.
12. The apparatus of any of claims 7 to 11, wherein the processing unit is further to:
when the data of a third page are stored in the array and the duration of the data of the third page stored in the array exceeds a first threshold value, deleting the data of the third page from the array; and/or the presence of a gas in the gas,
and when the memory occupied by the data of the page stored in the array exceeds a second threshold value, deleting the data of a fourth page from the array, wherein the data of the fourth page refers to the data of the page with the longest storage duration in the array.
CN201611261745.9A 2016-12-30 2016-12-30 A kind of Webpage display process and device Pending CN108268499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611261745.9A CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611261745.9A CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Publications (1)

Publication Number Publication Date
CN108268499A true CN108268499A (en) 2018-07-10

Family

ID=62755066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611261745.9A Pending CN108268499A (en) 2016-12-30 2016-12-30 A kind of Webpage display process and device

Country Status (1)

Country Link
CN (1) CN108268499A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740098A (en) * 2018-12-29 2019-05-10 深圳点猫科技有限公司 A kind of application processing method and electronic equipment based on multi-page window
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number
WO2021056940A1 (en) * 2019-09-29 2021-04-01 苏州浪潮智能科技有限公司 Webpage component maintaining method and apparatus
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095840A (en) * 2013-01-22 2013-05-08 北京锐讯灵通科技有限公司 Advertisement loading method used for mobile terminal
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor
US8881000B1 (en) * 2011-08-26 2014-11-04 Google Inc. System and method for informing users of an action to be performed by a web component
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104915461A (en) * 2015-07-10 2015-09-16 广州神马移动信息科技有限公司 Page presentation method and device
CN105511962A (en) * 2015-11-27 2016-04-20 华为技术有限公司 Rendering method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8881000B1 (en) * 2011-08-26 2014-11-04 Google Inc. System and method for informing users of an action to be performed by a web component
CN103095840A (en) * 2013-01-22 2013-05-08 北京锐讯灵通科技有限公司 Advertisement loading method used for mobile terminal
US8713010B1 (en) * 2013-02-19 2014-04-29 Luxian Limited Processor engine, integrated circuit and method therefor
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104915461A (en) * 2015-07-10 2015-09-16 广州神马移动信息科技有限公司 Page presentation method and device
CN105511962A (en) * 2015-11-27 2016-04-20 华为技术有限公司 Rendering method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740098A (en) * 2018-12-29 2019-05-10 深圳点猫科技有限公司 A kind of application processing method and electronic equipment based on multi-page window
CN109740098B (en) * 2018-12-29 2022-01-11 深圳点猫科技有限公司 Application processing method based on multi-page window and electronic equipment
CN110413278A (en) * 2019-06-27 2019-11-05 平安科技(深圳)有限公司 The method, apparatus and storage medium, computer equipment of paging display record number
WO2021056940A1 (en) * 2019-09-29 2021-04-01 苏州浪潮智能科技有限公司 Webpage component maintaining method and apparatus
CN114995817A (en) * 2022-08-03 2022-09-02 杭州乾冠数字物联技术有限公司 Web page large-screen data processing method based on Vuex

Similar Documents

Publication Publication Date Title
CN106886570B (en) Page processing method and device
CN107885645B (en) Method and device for calculating rendering duration of first screen of page and electronic equipment
CN106021421B (en) method and device for accelerating webpage rendering
CN108268499A (en) A kind of Webpage display process and device
US10601891B2 (en) Cloud streaming service system and cloud streaming service method for utilizing an optimal GPU for video decoding based on resource conditions, and apparatus for the same
CN109858962B (en) Advertisement display method based on electronic book and electronic equipment
CN109086105B (en) Page layout conversion method and device and electronic equipment
CN107807934B (en) Page display method and device and computing equipment
CN110609718A (en) Picture loading method and device, electronic equipment and readable storage medium
CN106791953A (en) Many player control methods, server and client
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
CN106470353B (en) Multimedia data processing method and device and electronic equipment
CN107203303A (en) A kind of interface display method and device
CN105678688B (en) Picture processing method and device
CN110866208B (en) Page response type layout method, device and equipment
CN106570060B (en) Random extraction method and device for data in information flow
CN112148395A (en) Page display method, device, equipment and storage medium
CN105760407A (en) Advertisement loading method, device and equipment
CN105468746B (en) Web-page Multi-media content processing method and device
US10165245B2 (en) Pre-fetching video content
CN104317581A (en) Display method and electronic equipment
CN111294500A (en) Image shooting method, terminal device and medium
CN113870093A (en) Image caching method and device, electronic equipment and storage medium
CN113691865A (en) Multimedia playing method and system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180710

WD01 Invention patent application deemed withdrawn after publication