CN112784201B - Webpage display method, device, terminal and storage medium - Google Patents

Webpage display method, device, terminal and storage medium Download PDF

Info

Publication number
CN112784201B
CN112784201B CN202110125641.XA CN202110125641A CN112784201B CN 112784201 B CN112784201 B CN 112784201B CN 202110125641 A CN202110125641 A CN 202110125641A CN 112784201 B CN112784201 B CN 112784201B
Authority
CN
China
Prior art keywords
content
webpage
sub
website
web
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
CN202110125641.XA
Other languages
Chinese (zh)
Other versions
CN112784201A (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.)
Amusement Starcraft Beijing Technology Co ltd
Original Assignee
Amusement Starcraft Beijing 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 Amusement Starcraft Beijing Technology Co ltd filed Critical Amusement Starcraft Beijing Technology Co ltd
Priority to CN202110125641.XA priority Critical patent/CN112784201B/en
Publication of CN112784201A publication Critical patent/CN112784201A/en
Application granted granted Critical
Publication of CN112784201B publication Critical patent/CN112784201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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

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

The disclosure relates to a webpage display method, a webpage display device, a terminal and a storage medium, and belongs to the technical field of Internet. The method comprises the following steps: acquiring a target website to be accessed; inquiring first webpage content corresponding to a target website in a locally stored database, wherein the database comprises the website and the webpage content sent by a website server corresponding to the website; the first web page content is rendered. Because the locally stored database comprises the webpage content corresponding to the website, when a user wants to access the target website, the user can directly inquire the first webpage content corresponding to the target website in the database and render the first webpage content, and the webpage corresponding to the target website can be displayed without waiting for the response of the website server after sending a webpage access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved.

Description

Webpage display method, device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a webpage display method, device, terminal and storage medium.
Background
With the rapid development of internet technology, people can learn, work or entertain by accessing web pages, for example, browsing news in web pages or watching videos played in web pages, etc.
In the related art, when a user accesses a web page, a user terminal sends a web page access request to a web server, the web server responds to the web page access request to return corresponding web page content, the user terminal renders the web page content, and the user can only see the web page displayed in the user terminal. In the method, because a certain time is required for interaction between the user terminal and the website server, the speed of displaying the webpage by the user terminal is slower.
Disclosure of Invention
The invention provides a webpage display method, a webpage display device, a terminal and a storage medium, which can improve the speed of displaying webpages.
According to an aspect of the embodiments of the present disclosure, there is provided a web page display method including:
Acquiring a target website to be accessed;
Inquiring first webpage content corresponding to the target website in a locally stored database, wherein the database comprises the website and the webpage content sent by a website server corresponding to the website;
rendering the first web page content.
According to the method provided by the embodiment of the disclosure, because the locally stored database comprises the webpage content corresponding to the website, when a user wants to access the target website, the user can directly inquire the first webpage content corresponding to the target website in the database and render the first webpage content, and the webpage corresponding to the target website can be displayed without waiting for the response of the website server after sending the webpage access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved.
In one possible implementation manner, after the target web address to be accessed is obtained, the web page display method further includes:
Sending a webpage access request carrying the target website to a website server corresponding to the target website;
Receiving second webpage content returned by the website server;
After the rendering of the first web page content, the web page display method further includes:
Determining web page update content, wherein the web page update content refers to web page content which is included in the second web page content and is not included in the first web page content;
rendering the web page update content.
In the embodiment of the disclosure, the first web page content is the web page content sent by the web server when the target web address is accessed before, and the terminal receives the second web page content returned by the web server this time after sending the web page access request to the web server, so that compared with the first web page content, the second web page content is updated, and the web page update content which is included in the second web page content and is not included in the first web page content is rendered, thereby realizing the instant effect of web page display and ensuring the freshness of web page display.
In one possible implementation manner, after the receiving the second web content returned by the web server, the web page display method further includes:
And replacing the first webpage content corresponding to the target website in the database with the second webpage content.
In the embodiment of the disclosure, the first webpage content corresponding to the target website is replaced by the second webpage content returned by the website server, so that the update of the webpage content stored in the database is realized, and the situation that the same webpage content is displayed every time the user accesses the target website is avoided.
In one possible implementation manner, after the receiving the second web content returned by the web server, the web page display method further includes:
re-sending a webpage access request carrying the target website to the website server;
Receiving third webpage content returned by the website server;
And replacing the first webpage content corresponding to the target website in the database with the third webpage content.
In the embodiment of the disclosure, since the web page access request corresponding to the third web page content is sent after the web page access request corresponding to the second web page content, compared with the second web page content, the third web page content is updated, and the terminal replaces the first web page content with the third web page content, and the web page displayed when the user accesses the website next time is the updated web page instead of the same web page as the last time, so that by acquiring the web page content displayed next time in advance, the speed of web page display is improved, the instant effect of web page display can be realized, and the freshness of web page display is ensured.
In one possible implementation manner, the webpage display method further includes:
receiving webpage content corresponding to the target website periodically sent by the website server;
And replacing the webpage content corresponding to the target website in the database with the webpage content received last time.
In the embodiment of the disclosure, the web server periodically transmits the web content to the terminal, and the terminal continuously updates the web content stored in the database by replacing the web content corresponding to the target web address with the web content received last time, so that the consistency of the web content stored in the terminal and the web content provided by the web server is ensured, the web content in the database is rendered subsequently, the speed of web display is improved, the instant effect of web display is realized, and the freshness of web display is ensured.
In one possible implementation manner, after the target web address to be accessed is obtained, the web page display method further includes:
If the webpage content corresponding to the target website is not queried in the database, sending a webpage access request carrying the target website to the webpage server;
receiving second webpage content returned by the webpage server;
Rendering the second webpage content, and storing the target website and the second webpage content in the database correspondingly.
In the embodiment of the disclosure, if the webpage content corresponding to the target website is not queried in the database, the second webpage content returned by the webpage server is rendered, so that the situation that the webpage cannot be displayed when the webpage content is not queried is avoided.
In one possible implementation manner, the database further includes a sub-website, sub-webpage update content corresponding to the sub-website, and first page content, where the first page content refers to webpage content corresponding to a first page website to which the sub-website belongs, and the sub-webpage update content refers to webpage content that is included in sub-webpage content corresponding to the sub-website and is not included in the first page content; the target website is a home page website corresponding to a home page of the website;
After the rendering of the first web page content, the web page display method further includes:
Responding to the triggering operation of any sub-website in the rendered website home page, and inquiring sub-webpage updating content and home page content corresponding to the sub-website in the database;
And rendering the updated contents of the sub webpage and the first page contents.
In the embodiment of the disclosure, the locally stored database comprises the sub-web page update content and the home page content corresponding to the sub-web address, so that when a user wants to access the sub-web address, the sub-web page update content and the home page content can be directly queried in the database and rendered, the sub-web page corresponding to the sub-web address can be displayed without waiting for the response of the web server after sending a web page access request to the web server, the time consumed for interaction with the web server is saved, and the speed for displaying the sub-web page can be improved. In addition, only the webpage content which is included in the sub webpage content and not included in the first page content is stored, but not the complete sub webpage content is stored, so that the storage space can be saved.
In one possible implementation manner, the rendering the updated sub-web page content and the web page content corresponding to the home page website includes:
Determining a display position corresponding to the updated content of the sub-webpage;
Removing the webpage content corresponding to the display position in the home page content;
and rendering the rest webpage content and the sub webpage updating content in the home page content.
In the embodiment of the disclosure, the display position corresponding to the sub-webpage updating content is overlapped with the display position corresponding to part of the webpage content in the first webpage content, so that the overlapped webpage content in the first webpage content is removed, the rest webpage content and the sub-webpage updating content in the first webpage content are directly rendered, and the situation that different webpage contents are sequentially rendered at the same display position is avoided. Compared with the method that the first page content is rendered firstly and the sub-page updated content is rendered to cover the overlapped web page content, the method saves time required by the overlapped web page content, and therefore the rendering speed can be improved, and the speed of sub-page display is improved.
In one possible implementation manner, the webpage display method further includes:
If the sub-web page updating content corresponding to the sub-web address is not queried in the database, sending a web page access request carrying the sub-web address to a web server corresponding to the sub-web address;
receiving sub-webpage content returned by the website server;
rendering the sub-webpage content and determining sub-webpage updating content corresponding to the sub-website;
And storing the sub website and the updated contents of the sub webpage in the database correspondingly.
In the embodiment of the disclosure, if the sub-webpage updating content corresponding to the sub-website is not queried in the database, the sub-webpage content returned by the webpage server is rendered, so that the situation that the sub-webpage cannot be displayed when the sub-webpage updating content is not queried is avoided. And the sub-webpage updating content determined at the present is stored, so that the sub-webpage updating content stored locally is conveniently and directly acquired for rendering next time, and the speed of sub-webpage display is improved.
According to still another aspect of the embodiments of the present disclosure, there is provided a web page display device including:
a web address acquisition unit configured to perform acquisition of a target web address to be accessed;
the webpage content query unit is configured to perform query on first webpage content corresponding to the target website in a locally stored database, wherein the database comprises the website and the webpage content sent by a website server corresponding to the website;
and a web content rendering unit configured to perform rendering of the first web content.
In one possible implementation manner, the web page display device further includes:
an access request sending unit configured to send a web page access request carrying the target website to a website server corresponding to the target website;
The webpage content receiving unit is configured to receive second webpage content returned by the website server;
The web page display device further includes:
An update content determination unit configured to perform determination of web page update content, which refers to web page content included in the second web page content and not included in the first web page content;
And an update content rendering unit configured to perform rendering of the web page update content.
In one possible implementation manner, the web page display device further includes:
and the webpage content replacing unit is configured to replace the first webpage content corresponding to the target website in the database with the second webpage content.
In one possible implementation manner, the access request sending unit is further configured to perform resending, to the website server, a web page access request carrying the target website;
The webpage content receiving unit is further configured to execute receiving third webpage content returned by the website server;
The web page display device further includes:
and the webpage content replacing unit is configured to replace the first webpage content corresponding to the target website in the database with the third webpage content.
In one possible implementation manner, the web page display device further includes:
the webpage content receiving unit is configured to receive webpage content corresponding to the target website periodically sent by the website server;
and the webpage content replacing unit is configured to replace the webpage content corresponding to the target website in the database with the webpage content received last time.
In one possible implementation manner, the web page display device further includes:
An access request sending unit configured to perform sending a web page access request carrying the target web address to the web page server if the web page content corresponding to the target web address is not queried in the database;
The webpage content receiving unit is configured to execute receiving of second webpage content returned by the webpage server;
And the webpage content storage unit is configured to execute rendering of the second webpage content and store the target website and the second webpage content in the database correspondingly.
In one possible implementation manner, the database further includes a sub-website, sub-webpage update content corresponding to the sub-website, and first page content, where the first page content refers to webpage content corresponding to a first page website to which the sub-website belongs, and the sub-webpage update content refers to webpage content that is included in sub-webpage content corresponding to the sub-website and is not included in the first page content; the target website is a home page website corresponding to a home page of the website;
the webpage content query unit is further configured to execute a trigger operation for responding to any one of the sub-websites in the rendered website home page, and query the database for sub-webpage updated content and home page content corresponding to the sub-websites;
The webpage content rendering unit is further configured to perform rendering of the sub webpage update content and the top page content.
In one possible implementation manner, the webpage content rendering unit includes:
a position determining subunit configured to perform determining a display position corresponding to the updated content of the sub-web page;
A web content removing subunit configured to perform removal of web content corresponding to the display position in the top page content;
and the content rendering subunit is configured to perform rendering of the rest webpage content and the sub webpage updating content in the top page content.
In one possible implementation manner, the web page display device further includes:
An access request sending unit configured to perform sending a web page access request carrying the sub-web address to a web server corresponding to the sub-web address if the sub-web page update content corresponding to the sub-web address is not queried in the database;
the webpage content receiving unit is configured to receive the sub webpage content returned by the website server;
The webpage content rendering unit is further configured to perform rendering of the sub webpage content;
An update content determining unit configured to perform determining update content of the sub-web page corresponding to the sub-web address;
and the webpage content storage unit is configured to store the sub-website and the sub-webpage updating content in the database correspondingly.
According to still another aspect of the embodiments of the present disclosure, there is provided a terminal including:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the web page display method of the above aspect.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform the web page display method of the above aspect.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer program product including a computer program which, when executed by a processor, implements the web page display method described in the above aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of implementing an environment according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a web page display method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating another web page display method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a sub-web page display method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating another web page display method according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a web page display device according to an exemplary embodiment.
Fig. 7 is a block diagram of another web page display device, according to an exemplary embodiment.
Fig. 8 is a block diagram of a terminal according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description of the present disclosure and the claims and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data related to the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
FIG. 1 is a schematic diagram of an implementation environment provided in accordance with an exemplary embodiment, the implementation environment comprising: a terminal 10 and a web server 102. The terminal 101 may be a mobile phone, a computer, a tablet computer, or other devices, and the website server 102 may be a server, or a server cluster formed by a plurality of servers, or a cloud computing service center. The terminal 101 interacts with the web server 102 through a network connection.
Alternatively, the terminal 101 installs a browser, and establishes a communication connection with the web server 102 through the browser, thereby accessing the web content provided by the web server 102, and a web page containing the web content is apparent on the terminal 101.
In the embodiment of the present disclosure, the terminal 101 may query the web page content corresponding to the locally stored web address, or receive the web page content sent by the web server 102, so as to render the web page content to display the web page. The web server 102 may respond to a web page access request transmitted from the terminal 101 to return corresponding web page content, or periodically transmit web page content to the terminal 101.
The webpage display method provided by the embodiment of the disclosure is applied to various scenes.
For example, in the context of accessing a web site. The database locally stored in the terminal comprises websites and webpage contents corresponding to the websites. When a user wants to access a website, inputting the website of the website into a webpage display interface of a browser, after the terminal obtains the website, inquiring webpage content corresponding to the website in a database, and rendering the inquired webpage content to display the webpage. In addition, when the stored webpage content is queried, a webpage access request can be sent to the website server, the returned webpage content is received, and then the currently displayed webpage is updated according to the received webpage content.
Fig. 2 is a flowchart of a web page display method according to an exemplary embodiment, and referring to fig. 2, the method is applied to a terminal, and includes the following steps:
201. The terminal acquires a target website to be accessed.
202. The terminal queries first webpage content corresponding to a target website in a locally stored database, wherein the database comprises the website and the webpage content sent by a website server corresponding to the website.
203. The terminal renders the first webpage content.
According to the method provided by the embodiment of the disclosure, because the locally stored database comprises the webpage content corresponding to the website, when a user wants to access the target website, the user can directly inquire the first webpage content corresponding to the target website in the database and render the first webpage content, and the webpage corresponding to the target website can be displayed without waiting for the response of the website server after sending the webpage access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved.
In one possible implementation manner, after the target website to be accessed is acquired, the webpage display method further includes:
Sending a webpage access request carrying a target website to a website server corresponding to the target website;
receiving second webpage content returned by the website server;
after rendering the first web page content, the web page display method further comprises:
determining web page update content, wherein the web page update content refers to web page content which is included in the second web page content and is not included in the first web page content;
Rendering the web page update content.
In one possible implementation manner, after receiving the second web page content returned by the website server, the web page display method further includes:
And replacing the first webpage content corresponding to the target website in the database with the second webpage content.
In one possible implementation manner, after receiving the second web page content returned by the website server, the web page display method further includes:
re-sending a webpage access request carrying a target website to a website server;
Receiving third webpage content returned by the website server;
and replacing the first webpage content corresponding to the target website in the database with the third webpage content.
In one possible implementation manner, the webpage display method further includes:
receiving webpage content corresponding to a target website periodically transmitted by a website server;
and replacing the webpage content corresponding to the target website in the database with the webpage content received last time.
In one possible implementation manner, after the target website to be accessed is acquired, the webpage display method further includes:
if the webpage content corresponding to the target website is not queried in the database, sending a webpage access request carrying the target website to a webpage server;
receiving second webpage content returned by the webpage server;
Rendering the second webpage content, and storing the target website and the second webpage content in a database correspondingly.
In one possible implementation manner, the database further comprises a sub website, sub webpage updating content corresponding to the sub website and a top page content, wherein the top page content refers to webpage content corresponding to the top page website to which the sub website belongs, and the sub webpage updating content refers to webpage content which is included in the sub webpage content corresponding to the sub website and is not included in the top page content; the target website is a home page website corresponding to the home page of the website;
After the first webpage content is rendered, the webpage display method further comprises the following steps:
responding to the triggering operation of any sub-website in the rendered website head page, and inquiring sub-webpage updating content and head page content corresponding to the sub-website in a database;
Rendering the updated content and the first page content of the sub-web page.
In one possible implementation manner, rendering the updated contents of the sub-web pages and the web page contents corresponding to the first page web address includes:
Determining a display position corresponding to the updated content of the sub-web page;
removing the webpage content corresponding to the display position in the home page content;
and rendering the rest webpage content and the sub webpage updating content in the home page content.
In one possible implementation manner, the webpage display method further includes:
if the updated contents of the sub-web pages corresponding to the sub-web addresses are not queried in the database, sending a web page access request carrying the sub-web addresses to a web server corresponding to the sub-web addresses;
Receiving sub-webpage content returned by a website server;
Rendering the sub-webpage content and determining sub-webpage updating content corresponding to the sub-website;
And storing the sub-website and the updated sub-webpage content in a database correspondingly.
Fig. 3 is a flowchart illustrating another web page display method according to an exemplary embodiment, referring to fig. 3, the method is performed by a terminal and a web server, and the method includes the steps of:
301. the terminal acquires a target website to be accessed.
The terminal obtains a target address to be accessed, wherein the target address is the address of the website.
In some embodiments, the terminal displays a web page display interface, and the target web address to be accessed is obtained in the web page display interface. The web page display interface is used for displaying web pages, and a user views the web pages from the web page display interface. Optionally, the web page display interface is an interface in a browser running in the terminal.
When a user wants to access a certain webpage, a target website corresponding to the webpage can be input into the webpage display interface. Or under the condition that the webpage display interface comprises the target website, the user executes triggering operation on the target website in the webpage display interface, for example, the webpage display interface of the browser comprises links corresponding to a plurality of webpages, wherein the links are websites corresponding to webpages, and the user directly clicks the links corresponding to the webpages. Therefore, the terminal can acquire the target website to be accessed in the webpage display interface according to the operation of the user.
In some embodiments, the target web site is a URL (Uniform Resource Locator ) corresponding to the web site. The website comprises a website top page and a sub-webpage, wherein the website top page refers to a top screen of the website, namely, the content of a first screen displayed after the website is opened is an entry webpage of the website, and the sub-webpage of the website can be jumped from the website top page. Optionally, if the target website is the first page website of the first page of the website, the target website includes the root domain name of the website. Optionally, the target website is a website of a website sub-web page, which may also be called a sub-website, and the target website includes a sub-domain name of the website.
302. The terminal inquires first webpage content corresponding to a target website in a locally stored database.
The terminal locally stores a database, wherein the database comprises web addresses and web page contents sent by a web server corresponding to the web addresses, and the web addresses and the web page contents are correspondingly stored. The web page content includes a plurality of elements in the web page, style information, color information, position information, etc. of the elements, including text, pictures, videos, etc. The database stores web page content corresponding to the web address, and the web page content is web page content sent by the web server when the web address is accessed before.
Therefore, if the terminal acquires the target website, the first webpage content corresponding to the target website is queried in the database.
303. The terminal renders the first webpage content.
The terminal inquires first webpage content corresponding to a target website in the database, acquires the first webpage content, and renders the first webpage content, so that a webpage corresponding to the target website is displayed, and a user can view the webpage to be accessed.
In some embodiments, after the terminal obtains the target address in the web page display interface, the terminal renders the first web page content in the web page display interface after obtaining the first web page content, so as to display the web page corresponding to the target web address in the web page display interface.
In the related art, when a terminal requests to access a website, the terminal needs to send a webpage access request to a remote website server, the website server receives the webpage access request and processes the webpage access request, then returns webpage content corresponding to the website to the terminal, and the terminal renders the webpage content, so that the user can see the displayed webpage. Therefore, from the request of accessing the website to the view of the webpage corresponding to the website, the user needs to wait for the terminal to interact with the website server, so that a white screen time period exists, the webpage cannot be displayed in the white screen time period, the webpage display speed is low, and the webpage display process is influenced by factors such as a network state, a website server state and the like.
In the embodiment of the disclosure, since the terminal stores the web page content corresponding to the web address in the local database, when the user wants to access the target web address, the user can directly inquire the first web page content corresponding to the target web address in the database and render the first web page content, and the web page corresponding to the target web address can be displayed without waiting for the response of the web server after sending the web page access request to the web server, thereby effectively avoiding the white screen problem. Therefore, the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved. And the webpage display process is not influenced by factors such as network state, website server state and the like, and even if a certain network node has a problem, the webpage access requirement of a user can be met immediately.
304. The terminal sends a web page access request carrying the target website to a website server corresponding to the target website.
After acquiring a target website to be accessed, the terminal can acquire the first webpage content in the database and send a webpage access request carrying the target website to the website server corresponding to the target website. The website server corresponding to the target website is used for providing services for the website corresponding to the target website.
305. And the website server responds to the webpage access request and returns second webpage content to the terminal.
The website server obtains a target website carried in the webpage access request, obtains second webpage content corresponding to the target website, and returns the second webpage content to the terminal. The web site server stores web page content corresponding to the web site address of the web site, and updates the web page content corresponding to the web site address continuously. In the embodiment of the disclosure, the first web page content stored in the terminal is the web page content sent by the web server when the terminal accesses the target web address last time, and the second web page content is the web page content sent by the web server when the terminal accesses the target web address this time, so that compared with the first web page content, the second web page content is updated by the web server and has timeliness compared with the first web page content.
It should be noted that the embodiments of the present disclosure will be described by taking steps 302-303 as an example, and then steps 304-305 as an example. In another embodiment, the terminal may send a web page access request to the web server while querying the database for the first web page content, that is, performing steps 302-303 and steps 304-305 in parallel.
306. And the terminal receives the second webpage content returned by the website server and determines the webpage updating content.
And the terminal receives the second webpage content returned by the website server, and determines webpage updating content according to the first webpage content and the second webpage content. Because the second web page content is updated relative to the first web page content, the second web page content includes web page content that is not included in the first web page content, and the web page updated content is web page content that is included in the second web page content and is not included in the first web page content.
In some embodiments, the first web page content includes web page contents of a plurality of web page nodes, the second web page content includes web page contents of a plurality of web page nodes, the terminal determines differences between the web page contents of the plurality of web page nodes included in the first web page content and the web page contents of the plurality of web page nodes included in the second web page content, thereby determining the web page node with the difference, and determining the web page contents of the web page node with the difference in the second web page content as the web page update content.
For example, the web page update content includes content such as weather or date displayed in the web page, or the web page update content includes a display style or display manner of the web page, or the like. For another example, if the website corresponding to the target website is a news website, the web page update content is updated news.
It should be noted that, because the second web page content is more time-efficient than the first web page content, after receiving the second web page content returned by the website server, the terminal may also replace the first web page content corresponding to the target website in the database with the second web page content, so that when the user accesses the target website next time, the user may directly acquire the second web page content in the database to render, so as to display the updated web page, thereby realizing the update of the web page content stored in the database, and avoiding the situation that the user accesses the target website to display the same web page each time.
307. The terminal renders the web page update content.
And after the terminal determines the webpage updating content, rendering the webpage updating content, so that the updated webpage is displayed. The terminal only needs to partially render the web page update content, so as to cover the web page content which is different from the second web page content in the first web page content, finish refreshing the web page, realize the instant effect of web page display and ensure the freshness of web page display.
The terminal renders the first webpage content, and then renders the webpage displayed by the webpage updating content, which is the same as the webpage displayed by the second webpage content directly rendered by the terminal. And only the updated webpage content is rendered, compared with the re-rendering of the second webpage content, the repeated rendering of the same webpage content in the first webpage content and the second webpage content can be avoided, so that the rendering efficiency is improved, and the webpage display speed is further increased.
In some embodiments, when the terminal renders the first web page content in the web page display interface, after the terminal determines the web page update content, the terminal renders the web page update content in the current web page display interface, so as to display the updated web page, that is, only the web page update content needs to be locally rendered in the current web page display interface, and the second web page content does not need to be re-rendered in the whole web page display interface.
It should be noted that, in the above steps 302-307, it is described that when the first web page content corresponding to the target web address is queried, the first web page content is rendered to display the web page, then after the second web page content returned by the web server is received, the web page currently displayed is locally updated according to the second web page content. In another embodiment, if the terminal does not query the webpage content corresponding to the target website in the database, sending a webpage access request carrying the target website to the webpage server, receiving the second webpage content returned by the webpage server, and then rendering the second webpage content, thereby displaying the webpage corresponding to the target website, and avoiding the situation that the webpage cannot be displayed when the webpage content is not queried.
The terminal can also store the target website and the second webpage content corresponding to the second webpage content in the database after receiving the second webpage content returned by the website server, so that the second webpage content stored in the database can be directly obtained for rendering to display the webpage when the target website is accessed next time.
308. And the terminal sends the webpage access request carrying the target website to the website server again.
After displaying the web page, the terminal will also send a web page access request carrying the target web address to the web server again. And the terminal resends the webpage access request to the website server in the silence state. The silence state refers to a state that a user of the terminal does not feel, that is, the user does not need to perform any operation on the terminal, and the terminal automatically sends a web page access request to the web server again in the process of displaying the web page.
It should be noted that, the above steps are described only by taking the example of sending the web page access request to the web server again after the terminal renders the web page update content. In another embodiment, the terminal may set a timing to resend the web page access request to the web server, for example, the terminal resends the web page access request to the web server in response to receiving the second web page content returned from the web server. Or after receiving the first target duration of the second webpage content, the terminal resends the webpage access request to the website server. Or the terminal re-sends the web page access request to the web server after rendering the second target duration of the web page update content, which is not limited in the embodiment of the present disclosure.
309. And the website server responds to the webpage access request and returns third webpage content to the terminal.
The website server obtains a target website carried in the webpage access request, obtains third webpage content corresponding to the target website, and returns the third webpage content to the terminal. In the embodiment of the disclosure, the second web content is a web content requested by the terminal to the web server according to the operation of the user, and the third web content is a web content requested by the terminal to the server again after responding to the operation of the user, and because the web content in the web server is continuously updated, compared with the second web content, the third web content is an updated web content and has timeliness compared with the second web content.
310. And the terminal receives the third webpage content returned by the website server and replaces the first webpage content corresponding to the target website in the database with the third webpage content.
The terminal receives the third webpage content returned by the website server, and because the third webpage content has timeliness compared with the second webpage content, the terminal replaces the first webpage content corresponding to the target website in the database with the third webpage content, and when the user accesses the website next time, the third webpage content can be directly acquired in the database to render so as to display the updated webpage instead of the webpage the same as the last time, so that the speed of displaying the webpage is improved by acquiring the webpage content displayed next time in advance, the instant effect of displaying the webpage can be realized, and the freshness of displaying the webpage is ensured.
It should be noted that, in the above steps 307-310, it is described that the terminal re-actively sends the web page access request to the web server, so as to obtain the third web page content to be stored. In another embodiment, after the terminal executes the step 306 and receives the second web content returned by the web server, the terminal replaces the first web content corresponding to the target web address in the database with the second web content, and the terminal does not need to execute the steps 307-310. Or in another embodiment, the terminal does not perform the steps 307-310, but the web content corresponding to the target web address is periodically sent to the terminal by the web server. The terminal receives webpage content corresponding to a target website periodically sent by the website server; and replacing the webpage content corresponding to the target website in the database with the webpage content received last time. Because the web server continuously updates the web content, the web server periodically pushes the web content to the terminal, and the web content stored in the database of the terminal can be continuously updated, so that the consistency of the web content stored in the terminal and the web content provided by the web server is ensured, the web content in the database is rendered subsequently, the speed of web display is improved, the instant effect of web display can be realized, and the freshness of web display is ensured.
In some embodiments, the website includes a first page and a sub-web page, where the network address of the first page may be referred to as a first page address, and the network address of the sub-web page of the website may be referred to as a sub-web address. The target website is a home page website corresponding to a website home page, and the database of the terminal also comprises a sub website, sub webpage updating contents corresponding to the sub website and home page contents, wherein the home page contents refer to webpage contents corresponding to the home page website to which the sub website belongs, and the sub webpage updating contents refer to webpage contents which are included in the sub webpage contents corresponding to the sub website and are not included in the home page contents. Since the website top page can comprise sub-websites, the website top page can jump to sub-webpages of the website. After the terminal displays the website home page, the sub-web pages corresponding to the website home page can be displayed. The method for displaying the sub-web page comprises the following steps:
311. and the terminal responds to the triggering operation of any one of the sub-websites in the rendered website head page, and inquires the sub-webpage updating content and the head page content corresponding to the sub-websites in the database.
In the step 310, the terminal renders the web page content to display a website top page, where the website top page includes at least one sub-website. If the user wants to access any one of the sub-websites in the website home page, the triggering operation of the any one of the sub-websites is executed. And the terminal responds to the triggering operation of any one of the sub-websites in the website home page, and queries the sub-webpage updating content and the home page content corresponding to the sub-websites in the database. When the sub-web page update content stored in the database is the update content determined according to the sub-web page content sent by the web server when the sub-web address is accessed before, the sub-web page update content is similar to the web page update content in step 306.
In some embodiments, the child websites included in the website top page are web page links, which may be in a picture form, a text form, a video form, or the like. In some embodiments, the triggering operation of the sub-website by the user includes a single click operation, a double click operation, a sliding operation, a drag operation, or the like.
In some embodiments, the terminal stores the sub-web address and the sub-web page updated content correspondingly, stores the home page web address and the home page content correspondingly, and stores the sub-web address and the home page web address correspondingly, so that the terminal queries the sub-web page updated content corresponding to the sub-web address and the home page web address corresponding to the sub-web address in response to the triggering operation of the sub-web address, and then queries the home page content corresponding to the home page web address, thereby obtaining the sub-web page updated content and the home page content.
312. The terminal renders the updated contents of the sub-web pages and the first page contents.
Because the sub-webpage updating content is the content which is included in the sub-webpage content and is not included in the first page content, the sub-webpage corresponding to the sub-website can be displayed by rendering the first page content and the sub-webpage updating content, the sub-webpage can be displayed without waiting for the response of the website server after sending a webpage access request to the website server, the time consumed by interaction with the website server is saved, and the speed of displaying the sub-webpage can be improved. In addition, since the first page content is already stored in the database of the terminal, only the webpage content which is included in the sub-webpage content and is not included in the first page content needs to be stored, and compared with the storage of the complete sub-webpage content, the storage space can be saved.
In some embodiments, the terminal determines a display position corresponding to the sub-web page update content, then removes the web page content corresponding to the display position in the home page content, and renders the remaining web page content and the sub-web page update content in the home page content, thereby displaying the sub-web page. Because the display positions corresponding to the sub-webpage updating contents are overlapped with the display positions corresponding to part of the webpage contents in the first webpage content, the overlapped webpage contents are removed, and the rest webpage contents and the sub-webpage updating contents in the first webpage content are directly rendered, so that different webpage contents are prevented from being rendered successively at the same display position. Compared with the method that the first page content is rendered firstly, the sub-page updated content is rendered and the overlapped web page content is covered, the method saves time required by the overlapped web page content, and therefore the rendering speed can be improved, and the speed of sub-page display is improved.
In some embodiments, the terminal may also send a web page access request carrying the sub web address to the web server while acquiring the updated sub web page content and the first page content stored in the database, and the web server returns the sub web page content corresponding to the sub web address to the terminal in response to the web page access request, and then renders the sub web page content to complete refreshing of the sub web page, thereby realizing the instant effect of sub web page display.
In one possible implementation manner, the terminal redetermines the sub-web page update content according to the received sub-web page content and the currently stored home page content, wherein the redetermined sub-web page update content refers to web page content which is included in the sub-web page content and is not included in the home page content. And then replacing the currently stored sub-webpage content with the redetermined sub-webpage content, so that the updating of the updated sub-webpage content stored in the database is realized, and the situation that the same sub-webpage is displayed every time when a user accesses the sub-website can be avoided.
It should be noted that, steps 311-312 above illustrate that, in the case where the updated contents of the sub-web page are queried, the sub-web page is displayed by rendering the updated contents of the sub-web page and the first page contents. In another embodiment, if the updated contents of the sub-web pages corresponding to the sub-web addresses are not queried in the database, as shown in fig. 4, the above steps 311-312 are replaced by steps 401-404:
401. The terminal responds to the triggering operation of any sub-website in the rendered website head page, and if the updated contents of the sub-webpages corresponding to the sub-websites are not queried in the database, a webpage access request carrying the sub-websites is sent to a website server corresponding to the sub-websites;
402. The terminal receives the sub-webpage content returned by the website server;
403. rendering sub-webpage content by the terminal;
404. The terminal determines the sub-web page updating content corresponding to the sub-web address, and stores the sub-web address and the sub-web page updating content in a database.
If the sub-webpage updating content corresponding to the sub-website is not queried in the database, rendering the sub-webpage content returned by the webpage server, thereby avoiding the situation that the sub-webpage cannot be displayed when the sub-webpage updating content is not queried. And the sub-webpage updating content determined at the present is stored, so that the sub-webpage updating content stored locally is conveniently and directly acquired for rendering next time, and the speed of sub-webpage display is improved.
According to the method provided by the embodiment of the disclosure, because the locally stored database comprises the webpage content corresponding to the website, when a user wants to access the target website, the user can directly inquire the first webpage content corresponding to the target website in the database and render the first webpage content, and the webpage corresponding to the target website can be displayed without waiting for the response of the website server after sending the webpage access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved.
And the second webpage content is more time-efficient than the first webpage content, so that the webpage update content which is included in the second webpage content and not included in the first webpage content is rendered, the instant effect of webpage display is realized, and the freshness of webpage display is ensured.
And the first webpage content is replaced by the second webpage content or the third webpage content, so that the update of the webpage content stored in the database is realized, and the situation that the same webpage content is displayed every time the user accesses the target website is avoided.
And the sub-web page updating content and the first page content are directly queried in the database to be rendered, and the sub-web page corresponding to the sub-web address can be displayed without waiting for the response of the website server after sending a web page access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the sub-web page can be improved.
Fig. 5 is a flowchart illustrating a web page display method according to an exemplary embodiment, see fig. 5, the method comprising the steps of:
1. And the user inputs a target website to be accessed in a browser of the terminal.
2. The terminal queries the webpage content corresponding to the target website in the database, and sends a webpage access request to the website server, wherein the webpage access request carries the target website.
3. If the database comprises the webpage content corresponding to the target website, the terminal firstly renders the inquired webpage content. And then, the webpage content requested at the time is received, the webpage updating content is determined according to the inquired webpage content and the received webpage content, and the webpage updating content is rendered. And then the terminal sends a webpage access request to the website server again, acquires the webpage content of the next time in advance, and stores the pre-acquired webpage content and the target website in a database in a corresponding manner.
4. If the database does not contain the webpage content corresponding to the target website, the terminal waits for the response of the website server, receives the webpage content requested this time, renders the received webpage content, and stores the webpage content and the target website in the database correspondingly.
Fig. 6 is a block diagram illustrating a web page display device according to an exemplary embodiment. Referring to fig. 6, the apparatus includes a web address acquisition unit 601, a web content query unit 602, and a web content rendering unit 603.
A website acquiring unit 601 configured to perform acquisition of a target website to be accessed;
The web content query unit 602 is configured to perform query on first web content corresponding to a target web address in a locally stored database, where the database includes the web address and web content sent by a web server corresponding to the web address;
the web content rendering unit 603 is configured to perform rendering of the first web content.
According to the device provided by the embodiment of the disclosure, because the locally stored database comprises the webpage content corresponding to the website, when a user wants to access the target website, the user can directly inquire the first webpage content corresponding to the target website in the database and render the first webpage content, and the webpage corresponding to the target website can be displayed without waiting for the response of the website server after sending the webpage access request to the website server, so that the time consumed by interaction with the website server is saved, and the speed of displaying the webpage can be improved.
In one possible implementation, referring to fig. 7, the web page display device further includes:
An access request sending unit 604 configured to perform sending a web page access request carrying a target web address to a web server corresponding to the target web address;
The web content receiving unit 605 is configured to perform receiving of the second web content returned by the web server;
an update content determination unit 606 configured to perform determination of web page update content, which refers to web page content that is included in the second web page content and is not included in the first web page content;
The update content rendering unit 607 is configured to perform rendering of web page update content.
In one possible implementation, referring to fig. 7, the web page display device further includes:
The web content replacing unit 608 is configured to perform replacement of the first web content corresponding to the target web address in the database with the second web content.
In one possible implementation, referring to fig. 7, the access request sending unit 604 is further configured to perform resending the web page access request carrying the target web address to the web server;
the web content receiving unit 605 is further configured to perform receiving a third web content returned by the web server;
The web page display device further includes:
The web content replacing unit 608 is configured to perform replacement of the first web content corresponding to the target web address in the database with the third web content.
In one possible implementation, referring to fig. 7, the web page display device further includes:
a web content receiving unit 605 configured to execute receiving web content corresponding to a target web address periodically transmitted by the web server;
the web content replacing unit 608 is configured to replace the web content corresponding to the target web address in the database with the web content received last time.
In one possible implementation, referring to fig. 7, the web page display device further includes:
An access request sending unit 604 configured to perform sending a web page access request carrying a target web address to a web page server if web page content corresponding to the target web address is not queried in the database;
the web content receiving unit 605 is configured to perform receiving of the second web content returned by the web server;
the web content storage unit 609 is configured to perform rendering of the second web content and store the target web address in the database in correspondence with the second web content.
In one possible implementation manner, the database further comprises a sub website, sub webpage updating content corresponding to the sub website and a top page content, wherein the top page content refers to webpage content corresponding to the top page website to which the sub website belongs, and the sub webpage updating content refers to webpage content which is included in the sub webpage content corresponding to the sub website and is not included in the top page content; the target website is a home page website corresponding to the home page of the website;
the web page content query unit 602 is further configured to perform a trigger operation for responding to any one of the sub-websites in the rendered website top page, and query the database for sub-web page update content and top page content corresponding to the sub-websites;
the web content rendering unit 603 is further configured to perform rendering of the sub-web page update content and the top page content.
In one possible implementation, referring to fig. 7, the web content rendering unit 603 includes:
A position determining subunit 6031 configured to perform determination of a display position corresponding to the update content of the sub-web page;
A web content removal subunit 6032 configured to perform removal of web content corresponding to the display position in the home page content;
The content rendering subunit 6033 is configured to perform rendering of the remaining web page content and the sub-web page update content in the top page content.
In one possible implementation, referring to fig. 7, the web page display device further includes:
an access request sending unit 604 configured to perform sending a web page access request carrying a sub-web address to a web server corresponding to the sub-web address if the sub-web page update content corresponding to the sub-web address is not queried in the database;
the web content receiving unit 605 is configured to perform receiving of sub-web content returned by the web server;
the web content rendering unit 603 is further configured to perform rendering of sub-web content;
an update content determining unit 606 configured to perform determination of sub-web page update content corresponding to the sub-web address;
the web page content storage unit 609 is configured to perform storing of the sub web addresses in the database in correspondence with the updated contents of the sub web pages.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
In an exemplary embodiment, there is also provided a terminal including one or more processors and volatile or non-volatile memory for storing one or more processor-executable instructions; wherein the one or more processors are configured to perform the web page display method of the above aspect.
Fig. 8 is a block diagram illustrating a structure of a terminal 800 according to an exemplary embodiment. The terminal 800 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 800 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, and the like.
The terminal 800 includes: a processor 801 and a memory 802.
Processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 801 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 801 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may integrate a GPU (Graphics Processing Unit, web page display) for rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 801 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one program code for execution by processor 801 to implement the web page display method provided by the method embodiments in the present disclosure.
In some embodiments, the terminal 800 may further optionally include: a peripheral interface 803, and at least one peripheral. The processor 801, the memory 802, and the peripheral interface 803 may be connected by a bus or signal line. Individual peripheral devices may be connected to the peripheral device interface 803 by buses, signal lines, or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 804, a display 805, a camera assembly 806, audio circuitry 807, a positioning assembly 808, and a power supply 809.
Peripheral interface 803 may be used to connect at least one Input/Output (I/O) related peripheral to processor 801 and memory 802. In some embodiments, processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuitry 804 may also include NFC (NEAR FIELD Communication) related circuitry, which is not limited by the present disclosure.
The display 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to collect touch signals at or above the surface of the display 805. The touch signal may be input as a control signal to the processor 801 for processing. At this time, the display 805 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 805 may be one and disposed on a front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even more, the display 805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 805 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 806 is used to capture images or video. Optionally, the camera assembly 806 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
Audio circuitry 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, inputting the electric signals to the processor 801 for processing, or inputting the electric signals to the radio frequency circuit 804 for voice communication. For stereo acquisition or noise reduction purposes, a plurality of microphones may be respectively disposed at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 807 may also include a headphone jack.
The location component 808 is utilized to locate the current geographic location of the terminal 800 for navigation or LBS (Location Based Service, location-based services). The positioning component 808 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati positioning system of Russia, or the Galileo positioning system of the European Union.
A power supply 809 is used to power the various components in the terminal 800. The power supply 809 may be an alternating current, direct current, disposable battery, or rechargeable battery. When the power supply 809 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the structure shown in fig. 8 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
In an exemplary embodiment, a computer readable storage medium is also provided, which when executed by a processor of a terminal, enables the terminal to perform the steps performed by the terminal in the above-described web page display method. Alternatively, the computer readable storage medium may be a ROM (Read Only Memory), a RAM (random access Memory ), a CD-ROM (compact disc Read Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program, which, when executed by a processor of a terminal, enables the terminal to perform the steps performed by the terminal in the above-described web page display method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A web page display method, characterized in that the web page display method comprises:
acquiring a target website to be accessed, wherein the target website is a home page website corresponding to a home page of a website;
Inquiring first webpage content corresponding to the target website in a locally stored database, wherein the database comprises the website and the webpage content sent by a website server corresponding to the website, and the first webpage content comprises webpage contents of a plurality of webpage nodes; the database also comprises a sub website, sub webpage updating contents corresponding to the sub website and a first page content, wherein the first page content refers to webpage contents corresponding to the first page website to which the sub website belongs, the sub webpage updating contents refer to webpage contents which are included in the sub webpage contents corresponding to the sub website and are not included in the first page content, and the sub webpage contents are identical to part of the webpage contents of the first page content;
Rendering the first web page content;
sending a webpage access request carrying the target website to a website server corresponding to the target website; receiving second webpage content returned by a website server corresponding to the target website, wherein the second webpage content comprises webpage contents of a plurality of webpage nodes; determining a webpage node with a difference based on the first webpage content and the second webpage content, and determining the webpage content of the webpage node with the difference in the second webpage content as webpage update content, wherein the webpage update content refers to webpage content which is included in the second webpage content and is not included in the first webpage content; rendering the web page update content; automatically sending a webpage access request carrying the target website to a website server corresponding to the target website again in the webpage displaying process; receiving third webpage content returned by the website server; replacing the first webpage content corresponding to the target website in the database with the third webpage content;
Responding to the triggering operation of any sub-website in the rendered website home page, and inquiring sub-webpage updating content and home page content corresponding to the sub-website in the database;
If the sub-web page updating content corresponding to the sub-web address is not queried in the database, sending a web page access request carrying the sub-web address to a web server corresponding to the sub-web address; receiving sub-webpage content returned by the website server; rendering the sub-web page content; determining the updated contents of the sub-web pages corresponding to the sub-web addresses according to the contents of the sub-web pages and the currently stored first page contents; and storing the sub-web address and the sub-web page updating content in the database correspondingly, wherein the sub-web page updating content is used for rendering when the sub-web address is accessed next time.
2. The method for displaying a web page according to claim 1, wherein after receiving the second web page content returned from the web server, the method for displaying a web page further comprises:
And replacing the first webpage content corresponding to the target website in the database with the second webpage content.
3. The web page display method as recited in claim 1, wherein the web page display method further comprises:
receiving webpage content corresponding to the target website periodically sent by the website server;
And replacing the webpage content corresponding to the target website in the database with the webpage content received last time.
4. The web page display method as recited in claim 1, wherein after the target web site to be accessed is obtained, the web page display method further comprises:
If the webpage content corresponding to the target website is not queried in the database, sending a webpage access request carrying the target website to the website server;
Receiving second webpage content returned by the website server;
Rendering the second webpage content, and storing the target website and the second webpage content in the database correspondingly.
5. The method for displaying a web page according to claim 1, wherein after the step of querying the database for the updated contents and the top page contents of the sub-web pages corresponding to the sub-web addresses in response to the triggering operation on any sub-web address in the rendered top page of the website, the method for displaying a web page further comprises:
And under the condition that the sub-webpage updating content corresponding to the sub-website is queried, rendering the sub-webpage updating content and the top page content.
6. The method of claim 5, wherein rendering the sub-web page update content and the web page content corresponding to the home page web address comprises:
Determining a display position corresponding to the updated content of the sub-webpage;
Removing the webpage content corresponding to the display position in the home page content;
and rendering the rest webpage content and the sub webpage updating content in the home page content.
7. A web page display device, the web page display device comprising:
The website acquisition unit is configured to acquire a target website to be accessed, wherein the target website is a home page website corresponding to a home page of a website;
The webpage content query unit is configured to perform query on first webpage content corresponding to the target website in a locally stored database, wherein the database comprises websites and webpage content sent by a website server corresponding to the websites, and the first webpage content comprises webpage content of a plurality of webpage nodes; the database also comprises a sub website, sub webpage updating contents corresponding to the sub website and a first page content, wherein the first page content refers to webpage contents corresponding to the first page website to which the sub website belongs, the sub webpage updating contents refer to webpage contents which are included in the sub webpage contents corresponding to the sub website and are not included in the first page content, and the sub webpage contents are identical to part of the webpage contents of the first page content;
A web content rendering unit configured to perform rendering of the first web content;
an access request sending unit configured to send a web page access request carrying the target website to a website server corresponding to the target website;
The webpage content receiving unit is configured to execute receiving second webpage content returned by the website server corresponding to the target website, wherein the second webpage content comprises webpage contents of a plurality of webpage nodes;
An update content determination unit configured to perform determination of a web page node having a difference based on the first web page content and the second web page content, and determine, as web page update content, web page content of a web page node having a difference in the second web page content, the web page update content being web page content included in the second web page content and not included in the first web page content;
an update content rendering unit configured to perform rendering of the web page update content;
the access request sending unit is further configured to automatically send a web page access request carrying the target web address to the web server corresponding to the target web address again in the process of displaying the web page;
The webpage content receiving unit is further configured to execute receiving third webpage content returned by the website server;
A web content replacing unit configured to perform replacement of a first web content corresponding to the target web address in the database with the third web content;
the webpage content query unit is further configured to execute a trigger operation for responding to any one of the sub-websites in the rendered website home page, and query the database for sub-webpage updated content and home page content corresponding to the sub-websites;
An access request sending unit configured to perform sending a web page access request carrying the sub-web address to a web server corresponding to the sub-web address if the sub-web page update content corresponding to the sub-web address is not queried in the database;
the webpage content receiving unit is configured to receive the sub webpage content returned by the website server;
The webpage content rendering unit is further configured to perform rendering of the sub webpage content;
The updating content determining unit is configured to determine the sub-webpage updating content corresponding to the sub-website according to the sub-webpage content and the currently stored first page content;
and the webpage content storage unit is configured to store the sub-website and the sub-webpage updating content in the database correspondingly, wherein the sub-webpage updating content is used for rendering when the sub-website is accessed next time.
8. The web page display device of claim 7, wherein the web page display device further comprises:
and the webpage content replacing unit is configured to replace the first webpage content corresponding to the target website in the database with the second webpage content.
9. The web page display device of claim 7, wherein the web page display device further comprises:
the webpage content receiving unit is configured to receive webpage content corresponding to the target website periodically sent by the website server;
and the webpage content replacing unit is configured to replace the webpage content corresponding to the target website in the database with the webpage content received last time.
10. The web page display device of claim 7, wherein the web page display device further comprises:
an access request sending unit configured to perform sending a web page access request carrying the target web address to the web server if the web page content corresponding to the target web address is not queried in the database;
The webpage content receiving unit is configured to receive second webpage content returned by the website server;
And the webpage content storage unit is configured to execute rendering of the second webpage content and store the target website and the second webpage content in the database correspondingly.
11. The web page display device according to claim 7, wherein the web page content rendering unit is further configured to perform rendering of the sub-web page update content and the top page content in a case where the sub-web page update content corresponding to the sub-web address is queried.
12. The apparatus of claim 11, wherein the web content rendering unit comprises:
a position determining subunit configured to perform determining a display position corresponding to the updated content of the sub-web page;
A web content removing subunit configured to perform removal of web content corresponding to the display position in the top page content;
and the content rendering subunit is configured to perform rendering of the rest webpage content and the sub webpage updating content in the top page content.
13. A terminal, the terminal comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the web page display method of any one of claims 1 to 6.
14. A computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform the web page display method of any one of claims 1 to 6.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method of displaying a web page of any one of claims 1 to 6.
CN202110125641.XA 2021-01-29 2021-01-29 Webpage display method, device, terminal and storage medium Active CN112784201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110125641.XA CN112784201B (en) 2021-01-29 2021-01-29 Webpage display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110125641.XA CN112784201B (en) 2021-01-29 2021-01-29 Webpage display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112784201A CN112784201A (en) 2021-05-11
CN112784201B true CN112784201B (en) 2024-05-14

Family

ID=75759729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110125641.XA Active CN112784201B (en) 2021-01-29 2021-01-29 Webpage display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112784201B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656737B (en) * 2021-08-20 2024-05-14 北京百度网讯科技有限公司 Webpage content display method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN105930538A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Webpage accessing request processing method and server
CN106708900A (en) * 2015-11-17 2017-05-24 北大方正集团有限公司 Webpage content loading method and device
CN109284458A (en) * 2018-09-28 2019-01-29 平安普惠企业管理有限公司 Webpage display process, device, computer equipment and storage medium
CN109492176A (en) * 2018-10-30 2019-03-19 天脉聚源(北京)教育科技有限公司 A kind of page info update method and device
CN109684575A (en) * 2018-10-30 2019-04-26 平安科技(深圳)有限公司 Processing method and processing device, storage medium, the computer equipment of web data
CN109840114A (en) * 2017-11-24 2019-06-04 阿里巴巴集团控股有限公司 Page processing method and mobile terminal
CN111191158A (en) * 2019-12-27 2020-05-22 北京达佳互联信息技术有限公司 Webpage resource caching method and device, computer equipment and storage medium
CN111708600A (en) * 2020-08-20 2020-09-25 腾讯科技(深圳)有限公司 Page display method, device, equipment and computer readable storage medium
CN112115396A (en) * 2020-09-21 2020-12-22 北京达佳互联信息技术有限公司 Webpage rendering method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160006787A1 (en) * 2014-07-04 2016-01-07 Xiaomi Inc. Methods and devices for visiting a webpage

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN106708900A (en) * 2015-11-17 2017-05-24 北大方正集团有限公司 Webpage content loading method and device
CN105930538A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Webpage accessing request processing method and server
CN109840114A (en) * 2017-11-24 2019-06-04 阿里巴巴集团控股有限公司 Page processing method and mobile terminal
CN109284458A (en) * 2018-09-28 2019-01-29 平安普惠企业管理有限公司 Webpage display process, device, computer equipment and storage medium
CN109492176A (en) * 2018-10-30 2019-03-19 天脉聚源(北京)教育科技有限公司 A kind of page info update method and device
CN109684575A (en) * 2018-10-30 2019-04-26 平安科技(深圳)有限公司 Processing method and processing device, storage medium, the computer equipment of web data
CN111191158A (en) * 2019-12-27 2020-05-22 北京达佳互联信息技术有限公司 Webpage resource caching method and device, computer equipment and storage medium
CN111708600A (en) * 2020-08-20 2020-09-25 腾讯科技(深圳)有限公司 Page display method, device, equipment and computer readable storage medium
CN112115396A (en) * 2020-09-21 2020-12-22 北京达佳互联信息技术有限公司 Webpage rendering method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112784201A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN109819273B (en) End-side advertisement display method and corresponding terminal and server
CN111724775B (en) Voice interaction method and electronic equipment
CN101893985B (en) Method for controlling menu in mobile terminal and mobile terminal using the same
CN108717432B (en) Resource query method and device
CN110110263B (en) Webpage display method, device, terminal and storage medium
CN111953811B (en) Site access method, site registration method, device, equipment and storage medium
CN110430324A (en) A kind of application is spread its tail the display methods and electronic equipment of information
CN110213153B (en) Display method, acquisition method, device, terminal and storage medium of unread messages
CN111858971B (en) Multimedia resource recommendation method, device, terminal and server
WO2020211705A1 (en) Contact person recommendation method and electronic device
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
WO2020233556A1 (en) Call content processing method and electronic device
CN112052355B (en) Video display method, device, terminal, server, system and storage medium
CN111399819B (en) Data generation method, device, electronic equipment and storage medium
CN114579228B (en) Message display method and terminal equipment
WO2022127200A1 (en) Content display method and apparatus
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN112784201B (en) Webpage display method, device, terminal and storage medium
CN113609358B (en) Content sharing method, device, electronic equipment and storage medium
CN113190307A (en) Control adding method, device, equipment and storage medium
CN110505253B (en) Method, device and storage medium for requesting webpage information
CN113204701B (en) Data recommendation method, device, terminal and storage medium
CN111682983B (en) Interface display method and device, terminal and server
CN111638819B (en) Comment display method, device, readable storage medium and system
CN110321332A (en) Multimedia file restoration methods, device, terminal and storage medium

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