CN106055720A - Webpage displaying method and device - Google Patents

Webpage displaying method and device Download PDF

Info

Publication number
CN106055720A
CN106055720A CN201610565697.6A CN201610565697A CN106055720A CN 106055720 A CN106055720 A CN 106055720A CN 201610565697 A CN201610565697 A CN 201610565697A CN 106055720 A CN106055720 A CN 106055720A
Authority
CN
China
Prior art keywords
web
web page
address
webpage
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610565697.6A
Other languages
Chinese (zh)
Inventor
於飞
於一飞
张少伟
左景龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610565697.6A priority Critical patent/CN106055720A/en
Publication of CN106055720A publication Critical patent/CN106055720A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention relates to a webpage displaying method and device, and belongs to the technical field of terminals. The method comprises the following steps: when a webpage acquisition instruction is received, acquiring a corresponding webpage main body from a local cache based on a target webpage address carried by the webpage acquisition instruction, and sending a webpage acquisition request to a server, wherein the webpage main body is an unchangeable part in a target webpage; when the webpage main body is acquired, displaying the webpage main body; when webpage data returned by the server based on the webpage acquisition request are received, resolving the webpage data, wherein the webpage data are all data used for displaying the target webpage; and displaying the resolved webpage data on the webpage main body in a covering way in order to finish displaying of the target webpage. According to the webpage displaying method and device, the webpage main body corresponding to the target webpage address is displayed, so that the richness and flexibility of webpage displaying are enhanced, and the phenomenon that a display interface is blank when the terminal waits for the webpage data returned by the server is avoided.

Description

Webpage display process and device
Technical field
It relates to internet arena, particularly relate to a kind of Webpage display process and device.
Background technology
Along with the development of technology, network has become as an indispensable part in life, wherein, carries out net by network Page browsing is one of user's means using network.When user needs to browse webpage, can be obtained from server by terminal Take web page resources, and show webpage based on this web page resources.
In correlation technique, when user inputs URL in the terminal, (Uniform Resource Locator, unified resource is fixed Position symbol) or click on a URL time, this terminal can to server send webpage obtain request, this webpage obtain request in carry This URL.When server receives the acquisition request of this webpage, obtain HTML (Hyper Text Markup corresponding for this URL Language, HTML) document is described, this HTML describes and has recorded all kinds of nets shown needed for this webpage in document The description information of page data, such as, the description information of the data such as picture and video.Therefore, describe when terminal receives this HTML During document, the description information parsing at least one web data document can be described from this HTML, and based on each webpage The description information of data, sends data acquisition request to server.When server receives this data acquisition request, to this eventually End returns corresponding web data.When this terminal receives this web data, load this web data, thus show this net Page.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of Webpage display process and device.
First aspect according to disclosure embodiment, it is provided that a kind of Webpage display process, described method includes:
When receiving webpage and obtaining instruction, obtain, based on described webpage, the target web address that instruction is carried, from this locality Obtaining the web page body of correspondence in caching, and send webpage acquisition request to server, described web page body is in target web Do not produce the part of change;
When getting described web page body, described web page body is shown;
When receiving described server and obtaining, based on described webpage, the web data that request returns, to described web data Resolving, described web data is the total data for showing described target web;
Web data after resolving covers and shows on described web page body, to complete the display of described target web.
Alternatively, described method also includes:
Judge whether the web page address set of storage exists described target web address;
When described web page address set exists described target web address, perform described acquisition based on described webpage and refer to The target web address that order is carried, obtains the web page body of correspondence from local cache, and please to server transmission webpage acquisition The operation asked.
It should be noted that terminal is by judging whether there is this target web address in web page address set, and only When there is this target web address, obtaining corresponding web page body, that is to say, when there is not this target web address, can To be performed without obtaining the operation of corresponding web page body, and it is based on directly on this webpage and obtains instruction, send net to server Page obtains request, thus decreases the operation burden of terminal, improves the operational efficiency of terminal.
Alternatively, described acquisition based on described webpage instructs the target web address carried, and it is right to obtain from local cache The web page body answered, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has described target web ground The web page body that location is corresponding;
In corresponding relation between described web page address and web page body, storage has described target web address corresponding During web page body, based on described target web address, obtain from the corresponding relation between described web page address and web page body Described web page body.
It should be noted that terminal obtains this target web ground from the corresponding relation between web page address and web page body During web page body corresponding to location, owing to the corresponding relation between this web page address and web page body stores in the terminal, therefore, when When corresponding relation between this web page address with web page body stores the web page body having this target web address corresponding, terminal This web page body can be obtained easily, thus decrease terminal and obtain the time of web page body, improve terminal and obtain net The efficiency of page main body.
Alternatively, described acquisition based on described webpage instructs the target web address carried, and it is right to obtain from local cache The web page body answered, including:
Judge whether locally stored Web browsing history record is cached with described target web address;
When described Web browsing history record is cached with described target web address, based on described target web ground Location, obtains the web page body of correspondence from described Web browsing history record.
It should be noted that terminal obtains the web page body that this target web address is corresponding from Web browsing history record Time, owing to this Web browsing history record stores in the terminal, therefore, when in this Web browsing history record, storage has this target During web page address, terminal can be easy to according to this this web page body of target web address acquisition, thus decrease terminal and obtain The time of web page body, improve terminal and obtain the efficiency of web page body.
Alternatively, described acquisition based on described webpage instructs the target web address carried, and it is right to obtain from local cache The web page body answered, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has described target web ground The web page body that location is corresponding;
In corresponding relation between described web page address and web page body, storage has described target web address corresponding During web page body, based on described target web address, obtain from the corresponding relation between described web page address and web page body Described web page body;
Corresponding relation between described web page address and web page body does not stores described target web address corresponding During web page body, it is judged that whether locally stored Web browsing history record is cached with described target web address;
When described Web browsing history record is cached with described target web address, based on described target web ground Location, obtains the web page body of correspondence from described Web browsing history record.
It should be noted that owing to terminal cannot obtain this mesh from the corresponding relation between web page address and web page body During mark web page body corresponding to web page address, it is also possible to obtain this target web address from Web browsing history record corresponding During web page body, thus improve terminal and obtain reliability and the efficiency of web page body.
Second aspect according to disclosure embodiment, it is provided that a kind of Web page display apparatus, described device includes:
Acquisition module, for when receiving webpage and obtaining instruction, obtaining, based on described webpage, the target network that instruction is carried Page address, obtains the web page body of correspondence from local cache, and described web page body is the portion not producing change in target web Point;
Sending module, for when receiving webpage and obtaining instruction, sends webpage to server and obtains request;
First display module, for when getting described web page body, shows described web page body;
Parsing module, is used for when receiving described server and obtaining, based on described webpage, the web data that request returns, Resolving described web data, described web data is the total data for showing described target web;
Second display module, the web data after resolving covers and shows at described web page body, to complete State the display of target web.
Alternatively, described device also includes:
Whether judge module, exist described target web address in the web page address set judging storage;
, for there is described target web address in described judge module determines described web page address set in trigger module Time, trigger described acquisition based on described webpage and instruct the target web address carried, from local cache, obtain the webpage of correspondence Main body, and send webpage acquisition request to server.
Alternatively, described acquisition module includes:
First judging unit, in the corresponding relation between web page address and the web page body judging storage, if deposit Contain the web page body that described target web address is corresponding;
First acquiring unit, in the corresponding relation between described web page address and web page body, storage has described mesh During mark web page body corresponding to web page address, based on described target web address, between described web page address and web page body Corresponding relation in obtain described web page body.
Alternatively, described acquisition module includes:
Second judging unit, for judging whether be cached with described target network in locally stored Web browsing history record Page address;
Second acquisition unit, is used for when being cached with described target web address in described Web browsing history record, base In described target web address, from described Web browsing history record, obtain the web page body of correspondence.
Alternatively, described acquisition module includes:
3rd judging unit, in the corresponding relation between web page address and the web page body judging storage, if deposit Contain the web page body that described target web address is corresponding;
3rd acquiring unit, in the corresponding relation between described web page address and web page body, storage has described mesh During mark web page body corresponding to web page address, based on described target web address, between described web page address and web page body Corresponding relation in obtain described web page body;
4th judging unit, does not stores described mesh in the corresponding relation between described web page address and web page body During mark web page body corresponding to web page address, it is judged that whether locally stored Web browsing history record is cached with described target Web page address;
4th acquiring unit, is used for when being cached with described target web address in described Web browsing history record, base In described target web address, from described Web browsing history record, obtain the web page body of correspondence.
The third aspect according to disclosure embodiment, it is provided that a kind of Web page display apparatus, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When receiving webpage and obtaining instruction, obtain, based on described webpage, the target web address that instruction is carried, from this locality Obtaining the web page body of correspondence in caching, and send webpage acquisition request to server, described web page body is in target web Do not produce the part of change;
When getting described web page body, described web page body is shown;
When receiving described server and obtaining, based on described webpage, the web data that request returns, to described web data Resolving, described web data is the total data for showing described target web;
Web data after resolving covers and shows on described web page body, to complete the display of described target web.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: in the disclosed embodiments, when When terminal receives the acquisition instruction of this webpage, can obtain, based on this webpage, the target web address carried in instruction, from this locality Caching obtains the web page body of correspondence, and when getting this web page body, this web page body is shown, meanwhile, also Instruction can be obtained based on this webpage, send webpage to server and obtain request, and receiving this server based on this webpage After the web data that the request of acquisition returns, this web data is resolved, thus the web data after resolving shows at this On web page body, that is to say, this terminal can normally show the web data after this parsing, thus avoids in web displaying mistake The flicker of display interface in journey, simultaneously because this target web can be shown in advance when showing complete target web Main part, thus add the rich of web displaying and motility, it is to avoid terminal waiting for server returns webpage number According to time, display interface is blank phenomenon.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the present invention Example, and for explaining the principle of the present invention together with description.
Fig. 1 is the flow chart according to a kind of Webpage display process shown in an exemplary embodiment.
Fig. 2 A is the flow chart according to the another kind of Webpage display process shown in an exemplary embodiment.
Fig. 2 B is according to a kind of display interface schematic diagram shown in an exemplary embodiment.
Fig. 2 C is according to the another kind of display interface schematic diagram shown in an exemplary embodiment.
Fig. 3 A is the structured flowchart according to a kind of Web page display apparatus shown in an exemplary embodiment.
Fig. 3 B is the structured flowchart according to the first acquisition module shown in an exemplary embodiment.
Fig. 3 C is the structured flowchart according to the second acquisition module shown in an exemplary embodiment.
Fig. 3 D is the structured flowchart according to the third acquisition module shown in an exemplary embodiment.
Fig. 4 is the structured flowchart according to the another kind of Web page display apparatus shown in an exemplary embodiment.
Reference:
1: web page body;
11: the title of target web, 12: webpage pattern identification, 13: sublink catalogue;
2: the text message that target web updates, 3: image information.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the present invention are consistent.
Before disclosure embodiment is carried out explanation explained in detail, first the application scenarios of disclosure embodiment is given Introduce.At present, when user carries out web page browsing, terminal may be usually based on the URL of user's input and sends webpage to server Obtain request, when the HTML receiving server return describes document, can describe document from this HTML and parse at least The description information of one web data, and description information based on each web data, send data acquisition request to server. When server receives this data acquisition request, return corresponding web data to this terminal.When this terminal receives this net During page data, load this web data, thus show this webpage.When the network speed of the internetwork connection mode that terminal uses is slower, Terminal is during waiting for server responds the acquisition request of this webpage, and the display interface of terminal will be blank out, have impact on User uses the experience effect of terminal.Therefore, disclosure embodiment provides a kind of Webpage display process, can show net in advance The web page body of page, so that terminal is when showing webpage, improve the motility of web displaying and rich, it is to avoid terminal When waiting for server returns web data, display interface is blank phenomenon, improves Consumer's Experience effect.
Fig. 1 is the flow chart according to a kind of Webpage display process shown in an exemplary embodiment, as it is shown in figure 1, the party Method, in terminal, comprises the following steps.
In a step 101, when receiving webpage and obtaining instruction, obtain, based on this webpage, the target web ground that instruction is carried Location, obtains the web page body of correspondence from local cache, and sends webpage acquisition request to server, and this web page body is target Webpage does not produce the part of change.
In a step 102, when getting this web page body, this web page body is shown.
In step 103, when receiving this server and obtaining, based on this webpage, the web data that request returns, to this net Page data resolves, and this web data is the total data for showing this target web.
At step 104, the web data after resolving covers and shows on this web page body, to complete this target web Display.
In the disclosed embodiments, when terminal receives the acquisition instruction of this webpage, instruction can be obtained based on this webpage In the target web address carried, from local cache, obtain the web page body of correspondence, and when getting this web page body, will This web page body shows, at the same time it can also be obtain instruction based on this webpage, sends webpage to server and obtains request, and After receiving the web data that this server returns based on the acquisition request of this webpage, this web data is resolved, thus Web data after resolving shows on this web page body, and that is to say, this terminal can normally show the webpage after this parsing Data, thus avoid the flicker of display interface during web displaying, simultaneously because complete target network can shown During page, the main part of this target web can be shown in advance, thus add the rich of web displaying and motility, it is to avoid When terminal waiting for server returns web data, display interface is blank phenomenon.
Alternatively, the method also includes:
Judge whether the web page address set of storage exists this target web address;
When this web page address set exists this target web address, perform to obtain, based on this webpage, the mesh that instruction is carried Mark web page address, obtains the web page body of correspondence from local cache, and sends the operation of webpage acquisition request to server.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has this target web address Corresponding web page body;
In corresponding relation between this web page address with web page body, storage has the webpage that this target web address is corresponding During main body, based on this target web address, from the corresponding relation between this web page address and web page body, obtain this webpage master Body.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge whether locally stored Web browsing history record is cached with this target web address;
When this Web browsing history record is cached with this target web address, based on this target web address, from this Web browsing history record obtains the web page body of correspondence.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has this target web address Corresponding web page body;
In corresponding relation between this web page address with web page body, storage has the webpage that this target web address is corresponding During main body, based on this target web address, from the corresponding relation between this web page address and web page body, obtain this webpage master Body;
Corresponding relation between this web page address with web page body does not stores the webpage that this target web address is corresponding During main body, it is judged that whether locally stored Web browsing history record is cached with this target web address;
When this Web browsing history record is cached with this target web address, based on this target web address, from this Web browsing history record obtains the web page body of correspondence.
Above-mentioned all optional technical schemes, all can be according to arbitrarily combining the alternative embodiment forming the disclosure, and the disclosure is real Execute example this is repeated the most one by one.
Fig. 2 A is the flow chart of a kind of Webpage display process provided according to an exemplary embodiment, with reference to Fig. 2 A, the party Method comprises the steps.
In step 201, when terminal receives webpage acquisition instruction, obtain, based on this webpage, the target network that instruction is carried Page address, obtains the web page body of correspondence from local cache, and sends webpage acquisition request to server, and this web page body is Target web does not produce the part of change.
It should be noted that webpage obtains instruction is used for obtaining the web data of target web, and this webpage obtains instruction Can be triggered by assigned operation by user, this assigned operation can be clicking operation, slide, voice operating etc., these public affairs Open embodiment this is not specifically limited.
Further, when this terminal receives webpage acquisition instruction, it is also possible to judge in the web page address set of storage Whether there is this target web address;When there is this target web address in this web page address set, terminal can be based on this Webpage obtains the target web address that instruction is carried, and obtains the web page body of correspondence from local cache.
Wherein, the operation that whether there is this target web address in the web page address set of terminal judges storage can be: This target web address is compared with each web page address in web page address set, when depositing in this web page address set When the web page address identical with this target web address, determine and this web page address set exists this target web address, no Then determine and this target web address does not exist this target web address.
It should be noted that this web page address set can be previously stored in the terminal,
Also, it should be noted this web page body can include the title of webpage, sublink catalogue, webpage pattern identification Deng, this is not specifically limited by disclosure embodiment.
It addition, when change web page address set does not exist this target web address time, terminal can receive net When page obtains instruction, send webpage to server and obtain request.
It should be noted that terminal is by judging whether there is this target web address in web page address set, and only When there is this target web address, obtaining corresponding web page body, that is to say, when there is not this target web address, can To be performed without obtaining the operation of corresponding web page body, and it is based on directly on this webpage and obtains instruction, send net to server Page obtains request, thus decreases the operation burden of terminal, improves the operational efficiency of terminal.
Furthermore, this terminal obtains, based on this webpage, the target web address that instruction is carried, and obtains correspondence from local cache The operation of web page body can be to include following three kinds of modes.
First kind of way, in the corresponding relation between web page address and the web page body of terminal judges storage, if storage There is the web page body that this target web address is corresponding;In corresponding relation between this web page address and web page body, storage has this During web page body corresponding to target web address, based on this target web address, between this web page address and web page body Corresponding relation obtains this web page body.
Such as, when target web address is www.xx.com, it is judged that web page address as shown in table 1 and web page body it Between corresponding relation in, if storage has web page body corresponding to this target web address, when this web page address and web page body Between corresponding relation in storage when having web page body corresponding for this target web address www.xx.com, based on this target web Address www.xx.com, obtaining this web page body from the corresponding relation between this web page address and web page body is web page body B。
Table 1
Web page address Web page body
www.yy.com Web page body A
www.xx.com Web page body B
www.A.com Web page body C
www.ab.com Web page body D
...... ......
It should be noted that between the most only with web page address and the web page body shown in above-mentioned table 1 Corresponding relation as a example by illustrate, to disclosure embodiment constitute limit.
Also, it should be noted the corresponding relation between this web page address and web page body can be arranged in advance.
It addition, it is corresponding when the corresponding relation between this web page address with web page body has not stored this target web address Web page body time, terminal can receive webpage obtain instruction time, to server send webpage obtain request.
It should be noted that terminal obtains this target web ground from the corresponding relation between web page address and web page body During web page body corresponding to location, owing to the corresponding relation between this web page address and web page body stores in the terminal, therefore, when When corresponding relation between this web page address with web page body stores the web page body having this target web address corresponding, terminal This web page body can be obtained easily, thus decrease terminal and obtain the time of web page body, improve terminal and obtain net The efficiency of page main body.
Whether the second way, be cached with this target web ground in the Web browsing history record that terminal judges is locally stored Location;When this Web browsing history record is cached with this target web address, based on this target web address, clear from this webpage Look at and historical record obtains the web page body of correspondence.
Wherein, this target web address can be compared by terminal with the web page address in Web browsing history record, When there is the web page address identical with this target web address in this Web browsing history record, determine locally stored net Page browsing historical record is cached with this target web address.
It should be noted that whether the locally stored Web browsing history record of terminal judges is cached with this target web The operation of address is possible not only to include aforesaid way, it is also possible to include other modes, and this is not done concrete limit by disclosure embodiment Fixed.
Also, it should be noted terminal carries out the record of web displaying before Web browsing history is recorded as current time.
It addition, when in the Web browsing history record that this is locally stored uncached have this target web address time, terminal with Sample can send webpage to server obtain request when receiving this webpage and obtaining instruction.
It should be noted that terminal obtains the web page body that this target web address is corresponding from Web browsing history record Time, owing to this Web browsing history record stores in the terminal, therefore, when in this Web browsing history record, storage has this target During web page address, terminal can be easy to according to this this web page body of target web address acquisition, thus decrease terminal and obtain The time of web page body, improve terminal and obtain the efficiency of web page body.
The third mode, in the corresponding relation between web page address and the web page body of terminal judges storage, if storage There is the web page body that this target web address is corresponding;In corresponding relation between this web page address and web page body, storage has this During web page body corresponding to target web address, based on this target web address, between this web page address and web page body Corresponding relation obtains this web page body;Corresponding relation between this web page address and web page body does not stores this target network During web page body corresponding to page address, it is judged that whether locally stored Web browsing history record is cached with this target web ground Location;When this Web browsing history record is cached with this target web address, based on this target web address, clear from this webpage Look at and historical record obtains the web page body of correspondence.
It should be noted that owing to terminal cannot obtain this mesh from the corresponding relation between web page address and web page body During mark web page body corresponding to web page address, it is also possible to obtain this target web address from Web browsing history record corresponding During web page body, thus improve terminal and obtain reliability and the efficiency of web page body.
Also, it should be noted terminal is based on this target web address, from local cache, obtain the web page body of correspondence Mode be possible not only to include above-mentioned three kinds of modes, it is also possible to including other modes, such as, terminal may determine that locally stored Whether Web browsing history record is cached with this target web address;When this Web browsing history record is cached with this target During web page address, based on this target web address, from this Web browsing history record, obtain the web page body of correspondence;When this net In page browsing historical record uncached when having this target web address, terminal may determine that web page address and the web page body of storage Between corresponding relation in, if storage has web page body corresponding to this target web address;As this web page address and webpage master When in corresponding relation between body, storage has web page body corresponding to this target web address, based on this target web address, from Obtaining this web page body in corresponding relation between this web page address and web page body, this is not done concrete limit by disclosure embodiment Fixed.
It addition, it is corresponding when the corresponding relation between web page address with web page body does not stores this target web address During web page body, or, when in locally stored Web browsing history record uncached have this target web address time, terminal with Sample can send webpage to server obtain request when receiving this webpage and obtaining instruction.
To sum up, no matter whether terminal can get the web page body that this target web address is corresponding from local cache, This terminal all will send webpage to server obtain request when receiving webpage and obtaining instruction.
In step 202., this web page body, when getting this web page body, is shown by terminal.
Such as, when terminal is when getting this web page body, display interface as shown in Figure 2 B shows this target network The web page body 1 of page address, this web page body 1 includes the title 11 of this target web, webpage pattern identification 12 and sublink Catalogue 13.
It should be noted that in the disclosed embodiments, terminal perform step 202 and perform step 203 time the most suitable The restriction of sequence, that is to say, this terminal can first carry out step 202, then performs step 203, it is also possible to first carry out step 203, Then step 202 is performed, it is also possible to performing step 202 and step 203, this is not specifically limited by disclosure embodiment simultaneously.
In step 203, when server receives the webpage acquisition request that this terminal sends, obtaining based on this webpage please The target web address carried in asking, returns corresponding web data to terminal.
It should be noted that the operation that server returns corresponding web data based on this target web address is referred to Correlation technique, this is repeated by disclosure embodiment the most one by one.
In step 204, when terminal receives the web data that this server obtains request return based on this webpage, right This web data resolves, and this web data is the total data for showing this target web.
It should be noted that the operation that web data is resolved by terminal is referred to correlation technique, the disclosure is implemented This is repeated by example the most one by one.
In step 205, the web data after terminal will resolve covers and shows on this web page body, to complete this target The display of webpage.
It should be noted that this web data can include the text message that the data of web page body, target web update, Image informations etc., this is not specifically limited by disclosure embodiment.
Such as, see Fig. 2 C, after the web data after terminal will resolve shows on this web page body 1, this display circle Face can show text message 2 and image information 3 that the web page body 1 of this target web, target web update.
Show on this web page body it should be noted that terminal is possible not only to the web data covering after resolving, with Time, it is also possible to the web data after resolving compares, when depositing in the web data after this parsing with the data of web page body When the web data identical with the data of this web page body, the web data that this is identical is not shown, but will be with this The web data that the data of web page body differ shows, this is not specifically limited by disclosure embodiment.
It addition, the web data after this parsing is shown by terminal not only by aforesaid way, the most all right Show by other means, such as, when being resolved to this web data and including video data, present terminal can be made Internetwork connection mode judge;When this terminal carries out internetwork connection mode for mobile data traffic, can not show This video data, or, when this terminal carries out internetwork connection mode for mobile data traffic, can be with display reminding information, should The internetwork connection mode that information can point out user currently used is mobile data traffic, in disclosure embodiment to this not It is specifically limited.
Also, it should be noted owing to the web data after this parsing can be shown by terminal, and this terminal based on This target web address, may cannot get the web page body that this target web address is corresponding from local cache, therefore, when When this terminal cannot get the web page body of this target web, this terminal still can show this target web, thus ensures The reliability of display target web.
In the disclosed embodiments, when terminal receives the acquisition instruction of this webpage, instruction can be obtained based on this webpage In the target web address carried, from local cache, obtain the web page body of correspondence, and when getting this web page body, will This web page body shows, at the same time it can also be obtain instruction based on this webpage, sends webpage to server and obtains request, and After receiving the web data that this server returns based on the acquisition request of this webpage, this web data is resolved, thus Web data after resolving shows on this web page body, and that is to say, this terminal can normally show the webpage after this parsing Data, thus avoid the flicker of display interface during web displaying, simultaneously as no matter whether terminal can be from this locality Getting the web page body that target web address is corresponding in caching, this terminal all can show the webpage number obtained from server According to, thus ensure that the reliability of display target web.Further, since can be when showing complete target web, Ke Yiti The main part of front this target web of display, thus add the rich of web displaying and motility, it is to avoid terminal wait When server returns web data, display interface is blank phenomenon.
Fig. 3 A is according to a kind of Web page display apparatus structured flowchart shown in an exemplary embodiment.With reference to Fig. 3 A, this dress Put and include acquisition module 301, sending module the 302, first display module 303, parsing module 304 and the second display module 305.
Acquisition module 301, for when receiving webpage and obtaining instruction, obtaining, based on this webpage, the target network that instruction is carried Page address, obtains the web page body of correspondence from local cache, and this web page body is the part not producing change in target web;
Sending module 302, for when receiving webpage and obtaining instruction, sends webpage to server and obtains request;
First display module 303, for when getting this web page body, shows this web page body;
Parsing module 304, for when receiving this server and obtaining, based on this webpage, the web data that request returns, right This web data resolves, and this web data is the total data for showing this target web;
Second display module 305, the web data after resolving covers and shows at this web page body, to complete this The display of target web.
Alternatively, device also includes:
Whether judge module, exist this target web address in the web page address set judging storage;
Trigger module, for when there is this target web address during this judge module determines this web page address set, touches Send out this and obtain target web address of carrying of instruction based on this webpage, from local cache, obtain the web page body of correspondence, and to Server sends webpage and obtains request.
Alternatively, seeing Fig. 3 B, this acquisition module 301 includes:
First judging unit 3011, in the corresponding relation between web page address and the web page body judging storage, be No storage has the web page body that this target web address is corresponding;
First acquiring unit 3012, in the corresponding relation between this web page address and web page body, storage has this mesh During mark web page body corresponding to web page address, based on this target web address, right between this web page address and web page body This web page body of middle acquisition should be related to.
Alternatively, seeing Fig. 3 C, this acquisition module 301 includes:
Second judging unit 3013, for judging whether be cached with this target in locally stored Web browsing history record Web page address;
Second acquisition unit 3014, is used for when being cached with this target web address in this Web browsing history record, base In this target web address, from this Web browsing history record, obtain the web page body of correspondence.
Alternatively, seeing Fig. 3 D, this acquisition module 301 includes:
3rd judging unit 3015, in the corresponding relation between web page address and the web page body judging storage, be No storage has the web page body that this target web address is corresponding;
3rd acquiring unit 3016, in the corresponding relation between this web page address and web page body, storage has this mesh During mark web page body corresponding to web page address, based on this target web address, right between this web page address and web page body This web page body of middle acquisition should be related to;
4th judging unit 3017, does not stores this mesh in the corresponding relation between this web page address and web page body During mark web page body corresponding to web page address, it is judged that whether locally stored Web browsing history record is cached with this target network Page address;
4th acquiring unit 3018, is used for when being cached with this target web address in this Web browsing history record, base In this target web address, from this Web browsing history record, obtain the web page body of correspondence.
In the disclosed embodiments, when terminal receives the acquisition instruction of this webpage, instruction can be obtained based on this webpage In the target web address carried, from local cache, obtain the web page body of correspondence, and when getting this web page body, will This web page body shows, at the same time it can also be obtain instruction based on this webpage, sends webpage to server and obtains request, and After receiving the web data that this server returns based on the acquisition request of this webpage, this web data is resolved, thus Web data after resolving shows on this web page body, and that is to say, this terminal can normally show the webpage after this parsing Data, thus avoid the flicker of display interface during web displaying, simultaneously because complete target network can shown During page, the main part of this target web can be shown in advance, thus add the rich of web displaying and motility, it is to avoid When terminal waiting for server returns web data, display interface is blank phenomenon.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is the block diagram according to a kind of device 400 for web displaying shown in an exemplary embodiment.Such as, dress Putting 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 can include following one or more assembly: processes assembly 402, memorizer 404, power supply Assembly 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communications component 416.
Process assembly 402 and generally control the integrated operation of device 400, such as with display, call, data communication, phase The operation that machine operation and record operation are associated.Process assembly 402 and can include that one or more processor 420 performs to refer to Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 402 can include one or more module, just Mutual in process between assembly 402 and other assemblies.Such as, process assembly 402 and can include multi-media module, many to facilitate Media component 408 and process between assembly 402 mutual.
Memorizer 404 is configured to store various types of data to support the operation at device 400.Showing of these data Example includes any application program for operation on device 400 or the instruction of method, contact data, telephone book data, disappears Breath, picture, video etc..Memorizer 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
The various assemblies that power supply module 406 is device 400 provide power supply.Power supply module 406 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 400, the assembly that power supply is associated.
The screen of one output interface of offer that multimedia groupware 408 is included between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action Border, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers Body assembly 408 includes a front-facing camera and/or post-positioned pick-up head.When device 400 is in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 410 is configured to output and/or input audio signal.Such as, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined It is set to receive external audio signal.The audio signal received can be further stored at memorizer 404 or via communication set Part 416 sends.In certain embodiments, audio-frequency assembly 410 also includes a speaker, is used for exporting audio signal.
I/O interface 412 provides interface for processing between assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Set button.
Sensor cluster 414 includes one or more sensor, for providing the state of various aspects to comment for device 400 Estimate.Such as, what sensor cluster 414 can detect device 400 opens/closed mode, the relative localization of assembly, such as described Assembly is display and the keypad of device 400, and sensor cluster 414 can also detect device 400 or 400 1 assemblies of device Position change, the presence or absence that user contacts with device 400, device 400 orientation or acceleration/deceleration and device 400 Variations in temperature.Sensor cluster 414 can include proximity transducer, is configured to when not having any physical contact detect The existence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, is used for becoming Use as in application.In certain embodiments, this sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 416 is configured to facilitate the communication of wired or wireless mode between device 400 and other equipment.Device 400 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement In example, communications component 416 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel. In one exemplary embodiment, described communications component 416 also includes near-field communication (NFC) module, to promote junction service.Example As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 400 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 404 of instruction, above-mentioned instruction can have been performed said method by the processor 420 of device 400.Such as, Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by the process of mobile terminal When device performs so that mobile terminal is able to carry out a kind of Webpage display process, and described method includes:
When receiving webpage and obtaining instruction, obtain, based on this webpage, the target web address that instruction is carried, slow from this locality Depositing the middle web page body obtaining correspondence, and send webpage acquisition request to server, this web page body is not produce in target web The part of changing.
When getting this web page body, this web page body is shown.
When receiving this server and obtaining, based on this webpage, the web data that request returns, this web data is solved Analysis, this web data is the total data for showing this target web.
Web data after resolving covers and shows on this web page body, to complete the display of this target web.
Alternatively, the method also includes:
Judge whether the web page address set of storage exists described target web address;
When described web page address set exists described target web address, perform to obtain instruction based on this webpage and carry Target web address, obtain from local cache correspondence web page body, and to server send webpage obtain request behaviour Make.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has this target web address Corresponding web page body;
In corresponding relation between this web page address with web page body, storage has the webpage that this target web address is corresponding During main body, based on this target web address, from the corresponding relation between this web page address and web page body, obtain this webpage master Body.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge whether locally stored Web browsing history record is cached with this target web address;
When this Web browsing history record is cached with this target web address, based on this target web address, from this Web browsing history record obtains the web page body of correspondence.
Alternatively, obtain, based on this webpage, the target web address that instruction is carried, from local cache, obtain the net of correspondence Page main body, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has this target web address Corresponding web page body;
In corresponding relation between this web page address with web page body, storage has the webpage that this target web address is corresponding During main body, based on this target web address, from the corresponding relation between this web page address and web page body, obtain this webpage master Body;
Corresponding relation between this web page address with web page body does not stores the webpage that this target web address is corresponding During main body, it is judged that whether locally stored Web browsing history record is cached with this target web address;
When this Web browsing history record is cached with this target web address, based on this target web address, from this Web browsing history record obtains the web page body of correspondence.
In the disclosed embodiments, when terminal receives the acquisition instruction of this webpage, instruction can be obtained based on this webpage In the target web address carried, from local cache, obtain the web page body of correspondence, and when getting this web page body, will This web page body shows, at the same time it can also be obtain instruction based on this webpage, sends webpage to server and obtains request, and After receiving the web data that this server returns based on the acquisition request of this webpage, this web data is resolved, thus Web data after resolving shows on this web page body, and that is to say, this terminal can normally show the webpage after this parsing Data, thus avoid the flicker of display interface during web displaying, simultaneously because complete target network can shown During page, the main part of this target web can be shown in advance, thus add the rich of web displaying and motility, it is to avoid When terminal waiting for server returns web data, display interface is blank phenomenon.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or Person's adaptations is followed the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (11)

1. a Webpage display process, it is characterised in that described method includes:
When receiving webpage and obtaining instruction, obtain, based on described webpage, the target web address that instruction is carried, from local cache The middle web page body obtaining correspondence, and send webpage acquisition request to server, described web page body is not produce in target web The part of changing;
When getting described web page body, described web page body is shown;
When receiving described server and obtaining, based on described webpage, the web data that request returns, described web data is carried out Resolving, described web data is the total data for showing described target web;
Web data after resolving covers and shows on described web page body, to complete the display of described target web.
Method the most as claimed in claim, it is characterised in that described method also includes:
Judge whether the web page address set of storage exists described target web address;
When there is described target web address in described web page address set, execution is described to be taken based on the acquisition instruction of described webpage The target web address of band, obtains the web page body of correspondence from local cache, and sends webpage acquisition request to server Operation.
3. claim or as described in method, it is characterised in that described obtain the target network carried of instruction based on described webpage Page address, obtains the web page body of correspondence from local cache, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has described target web address pair The web page body answered;
In corresponding relation between described web page address and web page body, storage has the webpage that described target web address is corresponding During main body, based on described target web address, obtain described from the corresponding relation between described web page address and web page body Web page body.
4. claim or as described in method, it is characterised in that described obtain the target network carried of instruction based on described webpage Page address, obtains the web page body of correspondence from local cache, including:
Judge whether locally stored Web browsing history record is cached with described target web address;
When described Web browsing history record is cached with described target web address, based on described target web address, from Described Web browsing history record obtains the web page body of correspondence.
5. claim or as described in method, it is characterised in that described obtain the target network carried of instruction based on described webpage Page address, obtains the web page body of correspondence from local cache, including:
Judge in the corresponding relation between web page address and the web page body of storage, if storage has described target web address pair The web page body answered;
In corresponding relation between described web page address and web page body, storage has the webpage that described target web address is corresponding During main body, based on described target web address, obtain described from the corresponding relation between described web page address and web page body Web page body;
Corresponding relation between described web page address and web page body does not stores the webpage that described target web address is corresponding During main body, it is judged that whether locally stored Web browsing history record is cached with described target web address;
When described Web browsing history record is cached with described target web address, based on described target web address, from Described Web browsing history record obtains the web page body of correspondence.
6. a Web page display apparatus, it is characterised in that described device includes:
Acquisition module, for when receiving webpage and obtaining instruction, obtains, based on described webpage, the target web ground that instruction is carried Location, obtains the web page body of correspondence from local cache, and described web page body is the part not producing change in target web;
Sending module, for when receiving webpage and obtaining instruction, sends webpage to server and obtains request;
First display module, for when getting described web page body, shows described web page body;
Parsing module, for when receiving described server and obtaining, based on described webpage, the web data that request returns, to institute Stating web data to resolve, described web data is the total data for showing described target web;
Second display module, the web data after resolving covers and shows at described web page body, to complete described mesh The display of mark webpage.
Device the most as claimed in claim, it is characterised in that described device also includes:
Whether judge module, exist described target web address in the web page address set judging storage;
Trigger module, is used for when there is described target web address during described judge module determines described web page address set, Trigger described acquisition based on described webpage and instruct the target web address carried, from local cache, obtain the webpage master of correspondence Body, and send webpage acquisition request to server.
8. claim or as described in device, it is characterised in that described acquisition module includes:
First judging unit, in the corresponding relation between web page address and the web page body judging storage, if storage has The web page body that described target web address is corresponding;
First acquiring unit, in the corresponding relation between described web page address and web page body, storage has described target network During web page body corresponding to page address, based on described target web address, right between described web page address and web page body The described web page body of middle acquisition should be related to.
9. claim or as described in device, it is characterised in that described acquisition module includes:
Second judging unit, for judging whether be cached with described target web ground in locally stored Web browsing history record Location;
Second acquisition unit, for when being cached with described target web address in described Web browsing history record, based on institute State target web address, from described Web browsing history record, obtain the web page body of correspondence.
10. claim or as described in device, it is characterised in that described acquisition module includes:
3rd judging unit, in the corresponding relation between web page address and the web page body judging storage, if storage has The web page body that described target web address is corresponding;
3rd acquiring unit, in the corresponding relation between described web page address and web page body, storage has described target network During web page body corresponding to page address, based on described target web address, right between described web page address and web page body The described web page body of middle acquisition should be related to;
4th judging unit, does not stores described target network in the corresponding relation between described web page address and web page body During web page body corresponding to page address, it is judged that whether locally stored Web browsing history record is cached with described target web Address;
4th acquiring unit, for when being cached with described target web address in described Web browsing history record, based on institute State target web address, from described Web browsing history record, obtain the web page body of correspondence.
11. 1 kinds of Web page display apparatus, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When receiving webpage and obtaining instruction, obtain, based on described webpage, the target web address that instruction is carried, from local cache The middle web page body obtaining correspondence, and send webpage acquisition request to server, described web page body is not produce in target web The part of changing;
When getting described web page body, described web page body is shown;
When receiving described server and obtaining, based on described webpage, the web data that request returns, described web data is carried out Resolving, described web data is the total data for showing described target web;
Web data after resolving covers and shows on described web page body, to complete the display of described target web.
CN201610565697.6A 2016-07-18 2016-07-18 Webpage displaying method and device Pending CN106055720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610565697.6A CN106055720A (en) 2016-07-18 2016-07-18 Webpage displaying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610565697.6A CN106055720A (en) 2016-07-18 2016-07-18 Webpage displaying method and device

Publications (1)

Publication Number Publication Date
CN106055720A true CN106055720A (en) 2016-10-26

Family

ID=57187811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610565697.6A Pending CN106055720A (en) 2016-07-18 2016-07-18 Webpage displaying method and device

Country Status (1)

Country Link
CN (1) CN106055720A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019000722A1 (en) * 2017-06-27 2019-01-03 武汉斗鱼网络科技有限公司 Hypertext markup language webpage loading method and device
CN109756524A (en) * 2017-11-01 2019-05-14 温世文 A kind of Webpage display process and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN105208127A (en) * 2015-10-09 2015-12-30 上海瀚银信息技术有限公司 Webpage caching processing method and system and intelligent terminal
CN105320687A (en) * 2014-07-29 2016-02-10 腾讯科技(北京)有限公司 Webpage display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN105320687A (en) * 2014-07-29 2016-02-10 腾讯科技(北京)有限公司 Webpage display method and device
CN105208127A (en) * 2015-10-09 2015-12-30 上海瀚银信息技术有限公司 Webpage caching processing method and system and intelligent terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019000722A1 (en) * 2017-06-27 2019-01-03 武汉斗鱼网络科技有限公司 Hypertext markup language webpage loading method and device
CN109756524A (en) * 2017-11-01 2019-05-14 温世文 A kind of Webpage display process and device

Similar Documents

Publication Publication Date Title
CN104159275B (en) Method for connecting network and device
CN104079962B (en) A kind of method and device for pushing recommendation information
CN107329743A (en) Methods of exhibiting, device and the storage medium of five application page
KR102282544B1 (en) Product display method and device
CN103986836A (en) Calendar reminding method and device
EP3561692A1 (en) Method and device for displaying web page content
CN106126685A (en) Page loading method and device
CN106896991B (en) Method and device for updating information
CN103916829A (en) Desktop message notifying method and device
CN107730847A (en) Sharing articles finding method and device
CN105095427A (en) Search recommendation method and device
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN105930536A (en) Method and device for creating indexes and method and device for jumping pages
CN106157602A (en) The method and apparatus of calling vehicle
CN105739834A (en) Menu displaying method and device
CN106775202A (en) A kind of method and device of information transfer
CN107220059A (en) The display methods and device of application interface
CN104182505B (en) Webpage rearrangement method and device
CN104683496B (en) address filtering method and device
CN106708967A (en) Page display method and device
CN106331076A (en) Advertisement push method and apparatus
CN106407458A (en) Method and device for acquiring content of browser application program
CN105808767A (en) Data updating method and apparatus
CN109521938A (en) Determination method, apparatus, electronic equipment and the storage medium of data evaluation information
CN106055720A (en) Webpage displaying method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161026

RJ01 Rejection of invention patent application after publication