CN106066868B - Webpage loading method and device - Google Patents
Webpage loading method and device Download PDFInfo
- Publication number
- CN106066868B CN106066868B CN201610366038.XA CN201610366038A CN106066868B CN 106066868 B CN106066868 B CN 106066868B CN 201610366038 A CN201610366038 A CN 201610366038A CN 106066868 B CN106066868 B CN 106066868B
- Authority
- CN
- China
- Prior art keywords
- webpage
- keystone resources
- code file
- mobile terminal
- resources
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Abstract
The disclosure discloses a kind of webpage loading method and device, belongs to Internet technical field.The webpage loading method includes: when needing to load webpage, and mobile terminal determines whether the keystone resources for being stored with the webpage;In the not stored keystone resources for having the webpage, the first load request of the webpage is sent to proxy server;Proxy server receives the first load request, obtains the code file and keystone resources of webpage, to the first load response of mobile terminal feedback;Mobile terminal carries out rendering to webpage and shows using code file and keystone resources in the first load response.After the load request that proxy server receives that mobile terminal is sent, code file and keystone resources directly to mobile terminal push webpage are shown with allowing mobile terminal to carry out rendering to webpage;After solving web page acquisition by mobile terminal code file in the related technology, waiting for server feedback keystone resources is needed to lead to the longer problem of webpage render time;Shorten the time of webpage rendering.
Description
Technical field
This disclosure relates to Internet technical field, in particular to a kind of webpage loading method and device.
Background technique
People load webpage frequently by the browser that mobile terminal is installed in life, carry out inspection information, obtain information etc.
Deng.
Browser needs to send load request, the corresponding web page code of server feedback to server when loading webpage
File, browser parse web page code file, determine the keystone resources needed when rendering, send to server for asking
The resource acquisition request for obtaining keystone resources, these keystone resources of server feedback are asked, terminal is rendered using these keystone resources
Show webpage.
Since mobile terminal is after getting web page code file, it is also necessary to the further crucial money of waiting for server feedback
Source, therefore the time for causing webpage to render is longer.
Summary of the invention
The disclosure provides a kind of webpage loading method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of webpage loading method is provided, is applied in mobile terminal, it is described
Method includes: when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage;There is the webpage not stored
Keystone resources when, send the first load request of the webpage to proxy server, first load request is for triggering
The proxy server obtains the code file of the webpage and the keystone resources of the webpage, Xiang Suoshu mobile terminal feedback
First load response of the keystone resources including the code file and the webpage;Receive the institute of the proxy server feedback
State the first load response;The code file for including using the first load response and the keystone resources, to the net
Page carries out rendering and shows.After sending load request to proxy server, the code of the webpage of Receiving Agent server feedback
File and keystone resources carry out rendering to webpage using code file and keystone resources and show, since proxy server can be anti-
Feed back keystone resources while presenting the code file of webpage, thus mobile terminal can first with code file and keystone resources into
The rendering of row webpage, saves the acquisition request and waiting agents server for individually sending to proxy server and obtaining keystone resources
The time of feedback keystone resources needs waiting for server after solving web page acquisition by mobile terminal code file in the related technology
Feedback keystone resources lead to the longer problem of webpage render time;The time that can shorten webpage rendering is achieved the effect that.
Optionally, the method also includes: when being stored with the keystone resources of the webpage, obtain the key of the webpage
The description information of resource;To the proxy server send be added with the description information the second load request, described second
Load request is used to trigger the code file corresponding with the webpage that the proxy server obtains storage, according to description information
Determine that the differential data of the keystone resources of the webpage, Xiang Suoshu mobile terminal feedback are added with the differential data and institute
The second load response of code file is stated, the differential data is used to be reflected in keystone resources and the institute of the mobile terminal storage
State the difference between the same keystone resources of proxy server storage.It, will by obtaining the description information of webpage keystone resources
Description information, which is added in load request, is sent to proxy server, when so that proxy server receives load request, energy
Enough differential datas that keystone resources are determined according to description information avoid load every time and require to ask to destination server again
Ask complete resource that webpage render time is caused to extend.
Optionally, the description information of the keystone resources for obtaining the webpage, comprising: inquire each pass of the webpage
Key resource;For inquiring the keystone resources of the webpage, the first kind key of the webpage that is inquiring and exceeding the time limit is provided
The description information in source, which is denoted as, to be inquired and has exceeded the time limit, and calculates the cryptographic Hash of the first kind keystone resources, the cryptographic Hash is added
It adds in the description information of the first kind keystone resources;Second class of the webpage that is inquiring and not yet exceeding the time limit is crucial
The description information of resource, which is denoted as, to be inquired and not yet exceeds the time limit;By the description of the third class keystone resources for the webpage not inquired
Information, which is denoted as, not to be inquired.By the keystone resources of query webpage, three kinds of possible situations are remembered into different description informations, energy
It is enough that the information of the resource needed when loading webpage is effectively passed into proxy server, enable proxy server according to retouching
It states information and directly transmits related resource, to save the time of webpage rendering.
Optionally, the method also includes: receive the second load response of proxy server feedback;When described
When only including code file in the second load response, provided using the code file and the crucial of the webpage being locally stored
Source, rendering show the webpage;When only including code file and differential data in the second load response, according to the difference
The original keystone resources corresponding with the differential data for measuring data and storage, the original keystone resources are updated to apply
Keystone resources are provided according to other keys of the key application resource, the code file and the webpage being locally stored
Source, rendering show the webpage;When including code file, differential data and keystone resources in the second load response, root
According to the differential data and the original keystone resources corresponding with the differential data of storage, more by the original keystone resources
It is newly key application resource, according to the pass for including in the key application resource, the code file, the second load response
Other keystone resources of key resource and the webpage being locally stored, rendering show the webpage.It is received by mobile terminal
The load response of webpage, the code file and resource and original keystone resources returned according to load response feedback update, be used into
The rendering display of row webpage divides the carry out resource of situation to merge and updates, keystone resources are reduced when enabling to load next time and are obtained
Time allow users to faster see webpage so as to shorten webpage render time.
According to the second aspect of an embodiment of the present disclosure, a kind of webpage loading method is provided, is applied in proxy server, institute
The method of stating includes: to receive the first load request of the webpage that mobile terminal is sent, and first load request is described mobile whole
The load request that end is sent when loading the webpage for the first time;Obtain the code file of the webpage and the crucial money of the webpage
Source;It include the first load response of the keystone resources of the code file and the webpage to mobile terminal feedback, it is described
First load response carries out the webpage using the code file and the keystone resources for triggering the mobile terminal
Rendering display.By for the first time receive client load webpage load request when, by the code file and keystone resources of webpage
Mobile terminal is fed back to, shows solve phase to allow mobile terminal to carry out rendering to webpage according to code file and keystone resources
It closes after server in technical solution receives the load request of code file and sends back to a response, then receive the acquisitions of keystone resources and ask
Seek rear returning response, and cause mobile terminal twice wait-for-response cause webpage render time extend the problem of, improve webpage
The efficiency of load.
Optionally, the keystone resources of the code file for obtaining the webpage and the webpage, comprising: in the generation
When reason server did not received the history load request of the webpage, the webpage is obtained from the destination server of the webpage
All resources of code file and the webpage, extract the keystone resources of the webpage;It is received in the proxy server
When crossing the history load request of the webpage, the code file of the webpage of storage and the crucial money of the webpage are inquired
Source.The code file and all resources that webpage is obtained by proxy server, when receiving the history load request of webpage, inquiry
The code file and keystone resources of the webpage of storage, which can return to mobile terminal and carry out rendering to webpage, to be shown;Agency service
What device was obtained to destination server is all resources, therefore withouts waiting for mobile terminal and send the load request of keystone resources
Know which resource needed to load;And when being loaded again to same page, return code file and keystone resources can shorten
The time of resource transmission allows user that can first see main content of pages, the time shown so as to shorten the page.
Optionally, the method also includes: receive the second load request of the webpage that the mobile terminal is sent, described the
Two load requests include the description information of the keystone resources of the webpage;Obtain code corresponding with the webpage text of storage
Part;The differential data for needing to feed back to the mobile terminal and keystone resources, the difference are determined according to the description information
Amount data are for being reflected in the keystone resources of the mobile terminal storage and the same crucial money of proxy server storage
Difference between source;To mobile terminal feedback added with differential data, keystone resources and the generation determined
Second load response of code file, the second load response are calculated for triggering the mobile terminal according to the differential data
Proxy server storage with obtain the keystone resources of the differential data, according to the calculated keystone resources, institute
Other keystone resources of the code file in the second load response and the webpage being locally stored are stated, rendering shows the net
Page.The load request for being added with description information is received by proxy server, the code file of the webpage of storage is obtained, by describing
Information determines the differential data for needing to return and keystone resources, relative to source material, it is only necessary to transmit seldom data, shorten
Time of data transmission.
Optionally, the differential data for being determined to need to feed back to the mobile terminal according to the description information, packet
It includes: when the description information of a keystone resources includes being used to indicate the information and cryptographic Hash for inquiring and having exceeded the time limit, then basis
The cryptographic Hash determines the original keystone resources for having the cryptographic Hash;Obtain storage is same with the original keystone resources
The key application resource of a resource calculates the difference between the original keystone resources and the key application resource, obtain with
The corresponding differential data of the original keystone resources, the differential data is for triggering the mobile terminal for the original key
Resource updates are the key application resource.By receiving the load that addition includes the information and cryptographic Hash that inquire and exceeded the time limit
Request, proxy server determine original keystone resources according to cryptographic Hash, by original keystone resources and the keystone resources meter got
Calculation obtains difference, that is, can determine the differential data for needing to feed back to mobile terminal, since cryptographic Hash is unique right with each resource
The relationship answered, therefore can prepare to judge the content that original keystone resources include, differential data, which is calculated, for proxy server mentions
Foundation is supplied.
According to the third aspect of an embodiment of the present disclosure, a kind of webpage loading device is provided, is applied in mobile terminal, it is described
Device comprises determining that module, is configured as when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage;
First sending module is configured as when the determining module determines the not stored keystone resources for having the webpage, Xiang Daili
Server sends the first load request of the webpage, and first load request obtains institute for triggering the proxy server
The code file of webpage and the keystone resources of the webpage are stated, Xiang Suoshu mobile terminal feedback includes the code file and institute
State the first load response of the keystone resources of webpage;First receiving module is configured as receiving the proxy server feedback
The first load response;First rendering module is configured as the code file for including using the first load response
With the keystone resources, rendering is carried out to the webpage and is shown.
Optionally, described device further include: obtain module, be configured as determining to be stored in the determining module described
When the keystone resources of webpage, the description information of the keystone resources of the webpage is obtained;Second sending module is configured as to described
Proxy server sends the second load request for being added with the description information, and second load request is for triggering the generation
The code file corresponding with the webpage that server obtains storage is managed, determines that the crucial of the webpage provides according to description information
The differential data in source, Xiang Suoshu mobile terminal feedback are answered added with the second load of the differential data and the code file
It answers, the keystone resources that the differential data is used to be reflected in the mobile terminal storage store same with the proxy server
Difference between a keystone resources.
Optionally, the acquisition module, comprising: inquiry submodule is configured as inquiring the crucial money of each of described webpage
Source;First label submodule is configured as the keystone resources of the webpage inquired for the inquiry submodule, will be described
The description information of the first kind keystone resources of the webpage that is that inquiry submodule inquires and exceeding the time limit, which is denoted as, to be inquired and has surpassed
Phase calculates the cryptographic Hash of the first kind keystone resources, and the cryptographic Hash is added to the description of the first kind keystone resources
In information;Second label submodule is configured as the webpage that is inquiring the inquiry submodule and not yet exceeding the time limit
The description information of second class keystone resources, which is denoted as, to be inquired and not yet exceeds the time limit;Third marks submodule, is configured as looking into described
The description information for asking the third class keystone resources for the webpage that submodule does not inquire, which is denoted as, not to be inquired.
Optionally, described device further include: the second receiving module is configured as receiving the institute of the proxy server feedback
State the second load response;Second rendering module is configured as utilizing when only including code file in the second load response
The keystone resources of the code file and the webpage being locally stored, rendering show the webpage;Third rendering module, quilt
It is configured to when only including code file and differential data in the second load response, according to the differential data and storage
Original keystone resources corresponding with the differential data, the original keystone resources are updated to key application resource, according to
Other keystone resources of the key application resource, the code file and the webpage being locally stored, rendering display institute
State webpage;4th rendering module is configured as loading in response when described second including code file, differential data and crucial money
When source, according to the differential data and the original keystone resources corresponding with the differential data of storage, by the original pass
Key resource updates are key application resource, according in the key application resource, the code file, the second load response
Including keystone resources and the webpage being locally stored other keystone resources, rendering shows the webpage.
According to a fourth aspect of embodiments of the present disclosure, a kind of webpage loading device is provided, is applied in proxy server, institute
Stating device includes: the first receiving module, be configured as receive mobile terminal send webpage the first load request, described first
Load request is that the mobile terminal loads the load request sent when the webpage for the first time;First obtains module, is configured as
Obtain the code file of the webpage and the keystone resources of the webpage;First feedback module is configured as to the movement
Terminal feedback includes the first load response of the keystone resources of the code file and the webpage, and the first load response is used
Rendering is carried out to the webpage using the code file and the keystone resources in the triggering mobile terminal to show.
Optionally, described first module is obtained, comprising: the first acquisition submodule is configured as in the proxy server
When not receiving the history load request of the webpage, the code file of the webpage is obtained from the destination server of the webpage
And all resources of the webpage, extract the keystone resources of the webpage;Submodule is inquired, is configured as in the agency
When server received the history load request of the webpage, inquire the webpage of storage code file and the webpage
Keystone resources.
Optionally, described device further include: the second receiving module is configured as receiving the webpage that the mobile terminal is sent
The second load request, second load request includes the description information of the keystone resources of the webpage;Second obtains module,
It is configured as obtaining the code file corresponding with the webpage of storage;Determining module is configured as according to the description information
Determine the differential data for needing to feed back to the mobile terminal and keystone resources, the differential data is described for being reflected in
Difference between the keystone resources of mobile terminal storage and the same keystone resources of proxy server storage;Second feedback
Module is configured as feeding back to the mobile terminal added with differential data, keystone resources and the generation determined
Second load response of code file, the second load response are calculated for triggering the mobile terminal according to the differential data
Proxy server storage with obtain the keystone resources of the differential data, according to the calculated keystone resources, institute
Other keystone resources of the code file in the second load response and the webpage being locally stored are stated, rendering shows the net
Page.
Optionally, the determining module, comprising: determine submodule, be configured as the description information when a keystone resources
Including being used to indicate the information and cryptographic Hash that inquire and exceeded the time limit, then the cryptographic Hash is had according to cryptographic Hash determination
Original keystone resources;Second acquisition submodule, be configured as acquisition storage is the same money with the original keystone resources
The key application resource in source calculates the difference between the original keystone resources and the key application resource, obtain with it is described
The corresponding differential data of original keystone resources, the differential data is for triggering the mobile terminal for the original keystone resources
It is updated to the key application resource.
According to a fifth aspect of the embodiments of the present disclosure, a kind of webpage loading device is provided, is applied in mobile terminal, it is described
Device includes: processor;Memory for storage processor executable instruction;Wherein, the processor is configured to: need
When loading webpage, it is determined whether be stored with the keystone resources of the webpage;In the not stored keystone resources for having the webpage,
The first load request of the webpage is sent to proxy server, first load request is for triggering the proxy server
The code file of the webpage and the keystone resources of the webpage are obtained, Xiang Suoshu mobile terminal feedback includes the code text
First load response of the keystone resources of part and the webpage;First load for receiving the proxy server feedback is answered
It answers;It is aobvious to carry out rendering to the webpage for the code file for including using the first load response and the keystone resources
Show.
According to a sixth aspect of an embodiment of the present disclosure, a kind of webpage loading device is provided, is applied in proxy server, institute
Stating device includes: processor;Memory for storage processor executable instruction;Wherein, the processor is configured to: connect
The first load request of the webpage that mobile terminal is sent is received, first load request is described in the mobile terminal loads for the first time
The load request sent when webpage;Obtain the code file of the webpage and the keystone resources of the webpage;To the movement
Terminal feedback includes the first load response of the keystone resources of the code file and the webpage, and the first load response is used
Rendering is carried out to the webpage using the code file and the keystone resources in the triggering mobile terminal to show.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 be according to exemplary partial implement the webpage loading method that exemplifies involved in implementation environment schematic diagram;
Fig. 2 is a kind of flow chart of webpage loading method shown according to an exemplary embodiment;
Fig. 3 A is a kind of flow chart of the webpage loading method shown according to another exemplary embodiment;
Fig. 3 B is a kind of flow chart of webpage loading method shown according to another exemplary embodiment;
Fig. 3 C is a kind of process of the description information of keystone resources for obtaining webpage shown according to an exemplary embodiment
Figure;
Fig. 3 D be it is shown according to an exemplary embodiment it is a kind of according to description information determine need it is anti-to mobile terminal
The flow chart of the differential data of feedback;
Fig. 4 is a kind of block diagram of webpage loading device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the webpage loading device shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of webpage loading device shown according to another exemplary embodiment;
Fig. 7 is a kind of block diagram of webpage loading device shown according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of device for webpage load shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the device for webpage load shown according to another exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 be according to exemplary partial implement the webpage loading method that exemplifies involved in implementation environment schematic diagram, should
Implementation environment includes proxy server 110, at least one mobile terminal 120, at least one destination server 130.
Information can be transmitted by predetermined protocol between proxy server 110 and mobile terminal 120, it can also be by existing
The network transmission protocol transmit information.For example, the existing common network transmission protocol can for hypertext transfer protocol (English:
HyperText Transfer Protocol, http) etc..
Information can be transmitted by the existing network transmission protocol between proxy server 110 and destination server 130.
In general, access request directly can be pushed to generation when accessing webpage using the address of webpage by mobile terminal 120
Server 110 is managed, proxy server 110, then can be whole for the movement in the not stored code file and resource for having the webpage
End 120 obtains the code file of the webpage and all resources of webpage from the corresponding destination server 130 in the address;If agency
Server 110 can directly utilize the code file of the webpage of storage in the code file and resource for being stored with the webpage
It is that mobile terminal 120 provides service with resource.
Mobile terminal 120 said here can be the equipment for having internet browsing function, such as smart phone, plate electricity
Brain, desktop computer, multimedia player etc..
Object here server 130 is provided with unique domain name.Any one webpage that mobile terminal 120 requests access to is equal
Unique destination server 130 can be corresponded to.
Proxy server 110 can be a server, be also possible to the cluster of multiple servers, work as proxy server
110 when being the cluster of multiple servers, and the data between multiple servers can be shared.
Fig. 2 is a kind of flow chart of webpage loading method shown according to an exemplary embodiment, as shown in Fig. 2, the net
For page loading method mainly to be applied to be illustrated in implementation environment shown in FIG. 1, which includes following
Step.
In step 201, mobile terminal is when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage.
When user trigger show some webpage chained address, or trigger for guide display some webpage its
His content, at this point, mobile terminal then needs to load the webpage.
In general, after mobile terminal loaded a webpage, it will usually the relevant information of the webpage of load is cached, such as
The resource etc. of webpage.These resources can be stored in mobile terminal for a period of time after failure or it is expired, web page resources caching this
The section time is usually to be determined by the destination server of offer resource.
In practical application, mobile terminal may determine whether the keystone resources for being stored with webpage when needing to load webpage.
Keystone resources said here generally refer to the resource that webpage represents webpage entire content in rendering Shi Neng, that is,
After the keystone resources in webpage are rendered display, user it can be learnt that the webpage entire content.
It can also include non-key resource, these non-key resources can not in webpage other than comprising keystone resources
The content for largely influencing webpage is shown, usually after carrying out webpage rendering, can first be rendered, be allowed according to keystone resources
User's content for learning webpage as fast as possible, then obtains non-key resource again, carries out web page contents according to non-key resource
Rendering, to allow user to learn the full content of webpage.
Here resource can be the file of different-format, for example can be the cascading style sheets of the entitled .css of suffix,
The JavaScript file that can be the entitled .js of suffix can also be the picture of the entitled .jpg of suffix, here not to the tool of resource
Physique formula is defined.
In step 202, mobile terminal sends the net to proxy server in the not stored keystone resources for having the webpage
First load request of page.
When mobile terminal is in the not stored keystone resources for having the webpage, it is meant that mobile terminal must be obtained from server
The keystone resources of the webpage, therefore at this time according to the transport protocol between mobile terminal and proxy server, to proxy server
Send the load request of the webpage.Here transport protocol can be what mobile terminal consulted in advance with proxy server, can
With not common http agreement.
In step 203, proxy server receives the first load request of the webpage that mobile terminal is sent.
In step 204, proxy server obtains the code file of the webpage and the keystone resources of the webpage.
Proxy server can obtain the code text of the webpage after receiving the load request of webpage of mobile terminal transmission
Part and keystone resources.
Code file said here generally refers to the main document of webpage namely the hypertext markup language of common webpage
(English: HyperText Markup Language, html) document.Code file and keystone resources can be used for the wash with watercolours of webpage
Dye display, code file can define which position that the resources such as picture, text, link on webpage are located at webpage, with
Which type of form displaying etc., it is seen then that code file defines the layout and display format etc. of each element in webpage.
In step 205, proxy server includes the of the keystone resources of code file and webpage to mobile terminal feedback
One load response.
In order to reduce mobile terminal to the waiting time of keystone resources, selected here by the code file of webpage and crucial money
Source is sent to mobile terminal together, and also the code file of webpage and keystone resources are added in the first load response.It is very aobvious
So, the transmission of load response here is also with the transport protocol negotiated in advance between mobile terminal and proxy server.
In step 206, the first load response of mobile terminal Receiving Agent server feedback.
In step 207, mobile terminal is using the first load response code file for including and keystone resources, to webpage into
Row rendering display.
Mobile terminal can solve the code of webpage after the code file and keystone resources for receiving webpage
Analysis, parses the description information for the keystone resources determined, carries out webpage using the description information and keystone resources of keystone resources
The rendering of content is shown, in this way, mobile terminal can then show the keystone resources of webpage.
It should be noted is that wherein step 201, step 202, step 206 and step 207 can be implemented separately and become
Using mobile terminal as the webpage loading method of executing subject, wherein step 203, step 204 and step 205 can be implemented separately into
For using proxy server as the webpage loading method of executing subject.
In conclusion the webpage loading method provided in the embodiment of the present disclosure, is sent out by mobile terminal to proxy server
After sending load request, the code file and keystone resources of the webpage of Receiving Agent server feedback utilize code file and key
Resource carries out rendering to webpage and shows, since proxy server feedback key can provide while feeding back the code file of webpage
Source, therefore mobile terminal can carry out webpage rendering first with code file and keystone resources, save individually to agency service
Device sends the time of the acquisition request and waiting agents server feedback keystone resources that obtain keystone resources, solves related skill
In art after web page acquisition by mobile terminal code file, waiting for server feedback keystone resources is needed to cause webpage render time longer
The problem of;The time that can shorten webpage rendering is achieved the effect that.Client load is being received for the first time by proxy server
When the load request of webpage, the code file of webpage and keystone resources are fed back into mobile terminal, to allow mobile terminal according to generation
Code file and keystone resources carry out rendering to webpage and show, solve server in related art scheme and receive adding for code file
A response is sent back to after carrying request, then receives returning response after the acquisition request of keystone resources, and causes mobile terminal two inferior
Wait respond the problem of causing webpage render time to extend, the efficiency of webpage load is improved.
Fig. 3 A is a kind of flow chart of the webpage loading method shown according to another exemplary embodiment, as shown in Figure 3A,
Mainly to be applied to be illustrated in implementation environment shown in FIG. 1, which includes the webpage loading method
Following steps.
In step 301, mobile terminal is when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage.
In step 302, mobile terminal sends the net to proxy server in the not stored keystone resources for having the webpage
First load request of page.
In step 303, proxy server receives the first load request of the webpage that mobile terminal is sent.
Step 301 is similar to step 203 with step 201 respectively to step 303, specifically may refer to step 201 to step
Rapid 203 description, just repeats no more here.
In step 304, proxy server is in the history load request for not receiving the webpage, from the target of the webpage
Server obtains the code file of the webpage and all resources of the webpage, extracts the keystone resources of the webpage.
Proxy server did not received the history load request of the webpage, show none of mobile terminal once to
The proxy server is transmitted across the load request of the webpage, and the webpage that proxy server is stored beats code file and resource is equal
It is to be obtained under the triggering after the load request of first mobile terminal from the destination server of the webpage, therefore act on behalf of clothes
Business device needs obtain the code file of the webpage and all resources of the webpage from the destination server of the webpage.
In practical applications, proxy server can send the http request about the webpage, mesh to the destination server
Mark server feeds back the code file of the webpage according to existing http agreement to the proxy server, and proxy server is to the generation
Code file is parsed, and all resources involved in the code file are parsed, to these moneys of the destination server request
The resource acquisition in source is requested, and destination server requests to feed back money involved in the webpage to proxy server according to the resource acquisition
Source.In this way, proxy server then can store the code file and all resources of the webpage, and the code file of these webpages
It can also be other each mobile terminal services with resource.
Proxy server can extract pass from all resources of the webpage after getting all resources of the webpage
Key resource.
In step 305, proxy server includes the of the keystone resources of code file and webpage to mobile terminal feedback
One load response.
In order to which mobile terminal can be shown faster, webpage, proxy server can be by the webpages extracted
The code file of keystone resources and the webpage is sent to mobile terminal simultaneously, also i.e. by the code file and keystone resources of webpage
It is added in the first load response.It will be apparent that the transmission of load response here is also with mobile terminal and proxy server
Between the transport protocol negotiated in advance.
Within step 306, the first load response of mobile terminal Receiving Agent server feedback.
In step 307, mobile terminal is using the first load response code file for including and keystone resources, to webpage into
Row rendering display.
Step 306 and step 307 are similar with step 206 and step 207 respectively, specifically may refer to step 206 and step
Rapid 207 description, just repeats no more here.
In conclusion the webpage loading method provided in the embodiment of the present disclosure, receives mobile terminal by proxy server
The load request of transmission feeds back to mobile terminal and renders to webpage come the code file and keystone resources for directly acquiring webpage
Display;After solving web page acquisition by mobile terminal code file in the related technology, waiting for server feedback keystone resources is needed to lead
Cause the longer problem of webpage render time;And proxy server directly acquires code file and keystone resources shorten webpage rendering
Time.
In practical applications, in mobile terminal in the keystone resources for being stored with webpage, in order to reduce these as far as possible
The description information of keystone resources can inform the occupancy of flow, mobile terminal to proxy server by effective keystone resources,
By the reply keystone resources of proxy server selectivity, namely after step 301, step shown in Fig. 3 B can also be performed.
Fig. 3 B is a kind of flow chart of webpage loading method shown according to another exemplary embodiment, as shown in Figure 3B,
Mainly to be applied to be illustrated in implementation environment shown in FIG. 1, which includes the webpage loading method
Following steps.
In step 308, mobile terminal obtains the keystone resources of the webpage in the keystone resources for being stored with the webpage
Description information.
Mobile terminal shows that the mobile terminal loaded the webpage recently in the keystone resources for being stored with the webpage, this
When the webpage some keystone resources may be directly to use, can then be occupied at this time to avoid the flow of efficient resource.
Due to mobile terminal it needs to be determined that effective keystone resources and invalid keystone resources out, it is also necessary to close these
The description information of key resource is informed to proxy server, therefore mobile terminal retouching firstly the need of the keystone resources for obtaining the webpage
Information is stated, which may include the step of Fig. 3 C is shown.
In step 308a, each keystone resources of the webpage are inquired.
In general, mobile terminal, can be by the web page address of the webpage and the webpage after loading some webpage
Related keystone resources carry out corresponding caching, therefore mobile terminal is when needing to load some web page address, then can basis
The web page address is indexed, to find keystone resources corresponding to the webpage changed into.
In step 308b, for inquiring the keystone resources of webpage, by the first kind of webpage that is inquiring and exceeding the time limit
The description information of keystone resources, which is denoted as, to be inquired and has exceeded the time limit, and calculates the cryptographic Hash of first kind keystone resources, cryptographic Hash is added
Into the description information of first kind keystone resources.
When keystone resources exceed the time limit, generally indicate that the keystone resources may be modified, it is therefore desirable to update key money
Source, but the change of the keystone resources in view of exceeding the time limit may store certain similitude with the keystone resources to exceed the time limit, in order to subtract
The occupied flow of entire keystone resources is downloaded less, therefore can download the differential data of this kind of keystone resources, and downloads these
The premise of the differential data of keystone resources is to need to inform which version the proxy server expired keystone resources are, so as to
Differential data is determined according to the version and newest version that find in proxy server.And keystone resources will not generally store
Version number, therefore the cryptographic Hash of keystone resources is used in the present embodiment.
Cryptographic Hash said here be with the unique corresponding binary value of each resource, for distinguishing different resources.
Different resources has different binary numerals, and it is uniquely corresponding with binary numeral to can use the calculating of these binary numerals
Cryptographic Hash, such cryptographic Hash then uniquely corresponds to the resource of a resource or a version.
In order to allow proxy server to feed back the difference between the expired keystone resources and corresponding newest keystone resources
Data are measured, mobile terminal is needed using the cryptographic Hash of such keystone resources as a part of its description information, with notice to agency
Server.
In step 308c, the description information of the second class keystone resources of webpage that is inquiring and not yet exceeding the time limit is denoted as
It inquires and not yet exceeds the time limit.
Mobile terminal can be directly using these local keystone resources not yet to exceed the time limit, but there is still a need for inform agency service
Device repeats to issue this kind of the second class keystone resources not yet to exceed the time limit to avoid proxy server.
In step 308d, the description information of the third class keystone resources for the webpage not inquired is denoted as and is not inquired.
In a step 309, mobile terminal sends the second load request for being added with description information to proxy server.
In the step 310, proxy server receives the second load request of the webpage that mobile terminal is sent.
In step 311, when proxy server received the history load request of the webpage, proxy server acquisition is deposited
The code file corresponding with the webpage of storage.
In general, once mobile terminal passes through agency service after mobile terminal and the completion of proxy server framework
Device accesses web page address, therefore when mobile terminal can inquire the resource for the webpage being locally stored, shows the mobile terminal
Web page address was accessed, at this time it is also assumed that the mobile terminal accessed the web page address, therefore generation by proxy server
Reason server can be stored with the code file and all resources of the webpage.
Also therefore, when proxy server received the history load request of the webpage, proxy server available
The code file corresponding with the webpage of ground storage.
In step 312, proxy server determines the differential data for needing to feed back to mobile terminal according to description information
And keystone resources.
Differential data said here is used to be reflected in keystone resources and the proxy server storage of mobile terminal storage
Difference between the same keystone resources.
When proxy server determines the differential data for needing to feed back to mobile terminal according to description information, it may refer to walk
Step shown by rapid 3D.
In step 312a, when the description information of a keystone resources includes being used to indicate the information for inquiring and having exceeded the time limit
And cryptographic Hash, then the original keystone resources for having cryptographic Hash are determined according to cryptographic Hash.
In general, proxy server can store each history keyword resource of resource, be closed in this way according to each history
The cryptographic Hash of key resource, so that it may match history keyword resource corresponding to the cryptographic Hash in received description information.
Optionally, proxy server can also obtain newest resource from server at the scheduled time, and replace original
Resource, these original resources are also possible to be dropped or cover at this time, therefore proxy server is according to the cryptographic Hash of description information
It, can be directly by newest resource supplying corresponding to the cryptographic Hash to mobile terminal when can not find matched resource from local;
It optionally, can also be to the net when proxy server can not find matched resource from local according to the cryptographic Hash of description information
Destination server corresponding to page obtains, if still obtained less than can be directly by newest money corresponding to the cryptographic Hash
Source is pushed to mobile terminal.
In step 312b, obtain storage is the key application resource of the same resource with original keystone resources, is calculated
Difference between original keystone resources and key application resource obtains differential data corresponding with original keystone resources.
What key application resource said here was stored into proxy server is same with the original keystone resources
The newest keystone resources of resource.
In step 313, proxy server to mobile terminal feedback added with determine differential data, keystone resources with
And the second load response of code file.
After proxy server determines differential data, differential data can be added in the second load response, the present age
Reason server determines the keystone resources of the webpage that mobile terminal not yet stores, then these keystone resources can be added to the
In two load responses, in addition, proxy server answers the second load request, the code file of the webpage can be also added to second and added
It carries in response.
In a step 314, the second load response of mobile terminal Receiving Agent server feedback.
In step 315, when only including code file in the second load response, mobile terminal using code file and
The keystone resources for the webpage being locally stored, rendering display webpage.
When only including code file in the second load response, show that the keystone resources of the webpage are stored in mobile terminal
It is local and not out of date, at this point, mobile terminal then can be provided directly using code file and the crucial of the webpage being locally stored
Source, rendering display webpage.
In step 316, when only including code file and differential data in the second load response, mobile terminal is according to difference
Original keystone resources are updated to key application money by the original keystone resources corresponding with differential data for measuring data and storage
Source, according to other keystone resources of key application resource, code file and the webpage being locally stored, rendering display webpage.
When only including code file and differential data in the second load response, show the keystone resources of the webpage in addition to difference
It is expired outer to measure the corresponding keystone resources of data, other keystone resources of the webpage are being locally stored and not out of date, at this point, mobile
Terminal then can be according to differential data and the original keystone resources corresponding with differential data of storage, more by original keystone resources
It is newly key application resource, according to other keystone resources of key application resource, code file and the webpage being locally stored, wash with watercolours
Dye display webpage.
In step 317, when including code file, differential data and keystone resources in the second load response, according to difference
Original keystone resources are updated to key application money by the original keystone resources corresponding with differential data for measuring data and storage
Source, according to the keystone resources for including in key application resource, code file, the second load response and the webpage being locally stored
Other keystone resources, rendering display webpage.
When including code file, differential data and keystone resources in the second load response, show the crucial money of the webpage
Source is other than the corresponding keystone resources of differential data are expired and not stored second loads the keystone resources for including in response, the webpage
Other keystone resources be locally stored and not out of date, at this point, mobile terminal then can be according to differential data and storage
Original keystone resources are updated to key application resource, are provided according to key application by original keystone resources corresponding with differential data
Source, code file, second load other keystone resources of the keystone resources for including and the webpage being locally stored in response, rendering
Show webpage.
For example, for mobile terminal when issuing the load request to webpage a.html, mobile terminal is first in local lookup
The corresponding relationship of the webpage and child resource obtains description information after inquiry, and description information is added to and is asked to the load of a.html
In asking, mobile terminal sends the load request to a.html, and proxy server receives this load request, loads a.html and pass
Key resource a.css and a.js, according to description information, proxy server sends back to response, if not inquiring, then proxy server
A.html is sent back to, if inquiring and having exceeded the time limit, then proxy server sends back to a.html and differential data, if inquiring and still
Do not exceed the time limit, then proxy server sends back to a.html and keystone resources a.css and a.js, and mobile terminal receives response, and rendering is simultaneously
Show the page.
Here load response is the code file returned according to the description information that mobile terminal is sent and related resource.
For example, the description information in the load request that mobile terminal is sent is to inquire and not yet exceed the time limit, load in response
Just comprising the code document of webpage.
If the description information in the load request that mobile terminal is sent is to inquire and exceeded the time limit, loads in response and just wrap
Code document and differential data containing webpage, mobile terminal by differential data and storage original key corresponding with differential data
The rendering that resource updates and code file carry out webpage together is shown.
If the description information in the load request that mobile terminal is sent is not inquire, load in response just comprising code
The keystone resources of document and webpage.
The resource updates stored in mobile terminal can be newest resource by webpage load each time.
In conclusion the webpage loading method provided in the embodiment of the present disclosure, is asked by sending load to proxy server
After asking, the code file and keystone resources of the webpage of Receiving Agent server feedback, using code file and keystone resources to net
Page carries out rendering and shows, since proxy server can feed back keystone resources while feeding back the code file of webpage, moves
Dynamic terminal can carry out webpage rendering first with code file and keystone resources, save and individually send acquisition to proxy server
The acquisition request of keystone resources and the time of waiting agents server feedback keystone resources solve mobile whole in the related technology
After end obtains web page code file, waiting for server feedback keystone resources is needed to lead to the longer problem of webpage render time;It reaches
To the effect for the time that can shorten webpage rendering.
In addition, description information is added in load request and is sent to by the description information for obtaining webpage keystone resources
Proxy server when so that proxy server receives load request, can determine keystone resources according to description information
Differential data avoids load every time and requires to request complete resource that webpage render time is caused to be prolonged to destination server again
It is long.
By the keystone resources of query webpage, three kinds of possible situations are remembered into different description informations, it can be effective
The information of the resource needed when loading webpage is passed into proxy server, enables proxy server straight according to description information
Related resource is received and sent, to save the time of webpage rendering.
By mobile terminal receive webpage load response, according to load response feedback return code file and resource with
Original keystone resources update, and for carrying out webpage rendering display, divide the carry out resource of situation to merge and update, enable to next time
The time that keystone resources acquisition is reduced when load allows users to faster see webpage so as to shorten webpage render time.
By for the first time receive client load webpage load request when, the code file of webpage and keystone resources is anti-
It feeds mobile terminal, shows solve correlation to allow mobile terminal to carry out rendering to webpage according to code file and keystone resources
A response is sent back to after the load request of server reception code file in technical solution, then receives the acquisition request of keystone resources
Returning response afterwards, and cause mobile terminal twice wait-for-response cause webpage render time extend the problem of, improve webpage and add
The efficiency of load.
The code file and all resources that webpage is obtained by proxy server, when the history load request for receiving webpage
When, the code file and keystone resources for inquiring the webpage of storage, which can return to mobile terminal and carry out rendering to webpage, to be shown;
What proxy server was obtained to destination server is all resources, therefore withouts waiting for mobile terminal and send adding for keystone resources
It carries request and just knows which resource needed to load;And when being loaded again to same page, return code file and keystone resources,
The time that resource transmission can be shortened allows user that can first see main content of pages, the time shown so as to shorten the page.
The load request for being added with description information is received by proxy server, obtains the code file of the webpage of storage,
The differential data for needing to return and keystone resources are determined by description information, relative to source material, it is only necessary to transmit seldom number
According to, shorten data transmission time.
Include the load request of information and cryptographic Hash for inquiring and having exceeded the time limit by receiving addition, proxy server according to
Cryptographic Hash determines original keystone resources, and difference is calculated with the keystone resources got in original keystone resources, that is, can determine
The differential data for needing to feed back to mobile terminal can be quasi- since cryptographic Hash and each resource are only one-to-one correspondences
It is standby to judge the content that original keystone resources include, differential data, which is calculated, for proxy server provides foundation.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of webpage loading device shown according to an exemplary embodiment, as shown in figure 4, the webpage
Mainly to be applied to be illustrated in mobile terminal 120 shown in FIG. 1, which includes but not loading device
It is limited to: determining module 410, the first sending module 420, the first receiving module 430 and the first rendering module 440.
Determining module 410 is configured as when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage.
First sending module 420 is configured as determining the not stored keystone resources for having the webpage in determining module 410
When, the first load request of the webpage is sent to proxy server, first load request is for triggering proxy server acquisition
The code file of webpage and the keystone resources of webpage include the keystone resources of code file and webpage to mobile terminal feedback
First load response.
First receiving module 430 is configured as the first load response of Receiving Agent server feedback.
First rendering module 440 is configured as the code file for including using the first load response and keystone resources, to net
Page carries out rendering and shows.
In conclusion the webpage loading device provided in the embodiment of the present disclosure, determines whether to store by determining module
There are the keystone resources of the webpage, when determining module determines the not stored keystone resources for having the webpage, is sent out to proxy server
After sending load request, the code file and keystone resources of the webpage of Receiving Agent server feedback utilize code file and key
Resource carries out rendering to webpage and shows, since proxy server feedback key can provide while feeding back the code file of webpage
Source, therefore mobile terminal can carry out webpage rendering first with code file and keystone resources, save individually to agency service
Device sends the time of the acquisition request and waiting agents server feedback keystone resources that obtain keystone resources, solves related skill
In art after web page acquisition by mobile terminal code file, waiting for server feedback keystone resources is needed to cause webpage render time longer
The problem of;The time that can shorten webpage rendering is achieved the effect that.
Fig. 5 is a kind of block diagram of the webpage loading device shown according to another exemplary embodiment, as shown in figure 5, the net
Page loading device mainly be applied to mobile terminal 120 shown in FIG. 1 in be illustrated, the webpage loading device include but
It is not limited to: determining module 501, the first sending module 502, the first receiving module 503 and the first rendering module 504.
Determining module 501 is configured as when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage.
Keystone resources said here generally refer to the resource that webpage represents webpage entire content in rendering Shi Neng, that is,
After the keystone resources in webpage are rendered display, user it can be learnt that the webpage entire content.
It can also include non-key resource, these non-key resources can not in webpage other than comprising keystone resources
The content for largely influencing webpage is shown, usually after carrying out webpage rendering, can first be rendered, be allowed according to keystone resources
User's content for learning webpage as fast as possible, then obtains non-key resource again, carries out web page contents according to non-key resource
Rendering, to allow user to learn the full content of webpage.
First sending module 502 is configured as determining the not stored keystone resources for having the webpage in determining module 501
When, the first load request of the webpage is sent to proxy server, first load request is for triggering proxy server acquisition
The code file of webpage and the keystone resources of webpage include the keystone resources of code file and webpage to mobile terminal feedback
First load response.
When mobile terminal is in the not stored keystone resources for having the webpage, it is meant that mobile terminal must be obtained from server
The keystone resources of the webpage, therefore at this time according to the transport protocol between mobile terminal and proxy server, to proxy server
Send the load request of the webpage.
First receiving module 503 is configured as the first load response of Receiving Agent server feedback.
First rendering module 504 is configured as the code file for including using the first load response and keystone resources, to net
Page carries out rendering and shows.
Mobile terminal can solve the code of webpage after the code file and keystone resources for receiving webpage
Analysis, parses the description information for the keystone resources determined, carries out webpage using the description information and keystone resources of keystone resources
The rendering of content is shown, in this way, mobile terminal can then show the keystone resources of webpage.
Optionally, which can also include: to obtain module 505.
Module 505 is obtained, is configured as when determining module 501 determines the keystone resources for being stored with the webpage, is obtained
The description information of the keystone resources of the webpage.
Mobile terminal shows that the mobile terminal loaded the webpage recently in the keystone resources for being stored with the webpage, this
When the webpage some keystone resources may be directly to use, can then be occupied at this time to avoid the flow of efficient resource.
Optionally, obtaining module 505 may include: inquiry submodule 505a, the first label submodule 505b, the second label
Submodule 505c and third mark submodule 505d.
Submodule 505a is inquired, is configured as inquiring each keystone resources of the webpage.
In general, mobile terminal, can be by the web page address of the webpage and the webpage after loading some webpage
Related keystone resources carry out corresponding caching, therefore mobile terminal is when needing to load some web page address, then can basis
The web page address is indexed, to find keystone resources corresponding to the webpage changed into.
First label submodule 505b is configured as the crucial money for the inquiry submodule 505a webpage inquired
The description information for inquiring the first kind keystone resources of the webpage that is that submodule 505a is inquired and exceeding the time limit is denoted as and inquires by source
And exceeded the time limit, the cryptographic Hash of first kind keystone resources is calculated, cryptographic Hash is added in the description information of first kind keystone resources.
When keystone resources exceed the time limit, generally indicate that the keystone resources may be modified, it is therefore desirable to update key money
Source, but the change of the keystone resources in view of exceeding the time limit may store certain similitude with the keystone resources to exceed the time limit, in order to subtract
The occupied flow of entire keystone resources is downloaded less, therefore can download the differential data of this kind of keystone resources, and downloads these
The premise of the differential data of keystone resources is to need to inform which version the proxy server expired keystone resources are, so as to
Differential data is determined according to the version and newest version that find in proxy server.And keystone resources will not generally store
Version number, therefore the cryptographic Hash of keystone resources is used in the present embodiment.
Cryptographic Hash said here be with the unique corresponding binary value of each resource, for distinguishing different resources.
Different resources has different binary numerals, and it is uniquely corresponding with binary numeral to can use the calculating of these binary numerals
Cryptographic Hash, such cryptographic Hash then uniquely corresponds to the resource of a resource or a version.
In order to allow proxy server to feed back the difference between the expired keystone resources and corresponding newest keystone resources
Data are measured, mobile terminal is needed using the cryptographic Hash of such keystone resources as a part of its description information, with notice to agency
Server.
Second label submodule 505c, is configured as that the webpage that is that submodule 505a is inquired and not yet exceeding the time limit will be inquired
The description informations of the second class keystone resources be denoted as and inquire and not yet exceed the time limit.
Mobile terminal can be directly using these local keystone resources not yet to exceed the time limit, but there is still a need for inform agency service
Device repeats to issue this kind of the second class keystone resources not yet to exceed the time limit to avoid proxy server.
Third marks submodule 505d, and the third class for being configured as to inquire the webpage that submodule 505a is not inquired is closed
The description information of key resource, which is denoted as, not to be inquired.
Optionally, which can also include: the second sending module 506, the second receiving module 507, the second rendering module
508, third rendering module 509 and the 4th rendering module 510.
Second sending module 506 is configured as sending the second load request for being added with description information to proxy server,
Second load request is used to trigger the code file corresponding with the webpage that proxy server obtains storage, according to description information
The differential data for determining the keystone resources of the webpage, to mobile terminal feedback added with differential data and code file the
Two load responses, the keystone resources which is used to be reflected in mobile terminal storage store same with proxy server
Difference between keystone resources.
Second receiving module 507 is configured as the second load response of Receiving Agent server feedback.
Second rendering module 508 is configured as utilizing code file when only including code file in the second load response
And the keystone resources for the webpage being locally stored, rendering display webpage.
Third rendering module 509 is configured as when only including code file and differential data in the second load response, root
According to differential data and the original keystone resources corresponding with differential data of storage, original keystone resources are updated to key application
Resource, according to other keystone resources of key application resource, code file and the webpage being locally stored, rendering display webpage.
4th rendering module 510 is configured as loading in response when second including code file, differential data and crucial money
When source, according to differential data and the original keystone resources corresponding with differential data of storage, original keystone resources are updated to
Key application resource loads the keystone resources for including in response according to key application resource, code file, second and locally deposits
Other keystone resources of the webpage of storage, rendering display webpage.
When only including code file in the second load response, show that the keystone resources of the webpage are stored in mobile terminal
It is local and not out of date, at this point, mobile terminal then can be provided directly using code file and the crucial of the webpage being locally stored
Source, rendering display webpage.
When only including code file and differential data in the second load response, show the keystone resources of the webpage in addition to difference
It is expired outer to measure the corresponding keystone resources of data, other keystone resources of the webpage are being locally stored and not out of date, at this point, mobile
Terminal then can be according to differential data and the original keystone resources corresponding with differential data of storage, more by original keystone resources
It is newly key application resource, according to other keystone resources of key application resource, code file and the webpage being locally stored, wash with watercolours
Dye display webpage.
When including code file, differential data and keystone resources in the second load response, show the crucial money of the webpage
Source is other than the corresponding keystone resources of differential data are expired and not stored second loads the keystone resources for including in response, the webpage
Other keystone resources be locally stored and not out of date, at this point, mobile terminal then can be according to differential data and storage
Original keystone resources are updated to key application resource, are provided according to key application by original keystone resources corresponding with differential data
Source, code file, second load other keystone resources of the keystone resources for including and the webpage being locally stored in response, rendering
Show webpage.
In conclusion the webpage loading device provided in the embodiment of the present disclosure, determines whether to store by determining module
There are the keystone resources of the webpage, when determining module determines the not stored keystone resources for having the webpage, is sent out to proxy server
After sending load request, the code file and keystone resources of the webpage of Receiving Agent server feedback utilize code file and key
Resource carries out rendering to webpage and shows, since proxy server feedback key can provide while feeding back the code file of webpage
Source, therefore mobile terminal can carry out webpage rendering first with code file and keystone resources, save individually to agency service
Device sends the time of the acquisition request and waiting agents server feedback keystone resources that obtain keystone resources, solves related skill
In art after web page acquisition by mobile terminal code file, waiting for server feedback keystone resources is needed to cause webpage render time longer
The problem of;The time that can shorten webpage rendering is achieved the effect that.
In addition, passing through the description information of web page acquisition by mobile terminal keystone resources, description information is added to load request
In be sent to proxy server when so that proxy server receives load request, can determine to close according to description information
The differential data of key resource avoids load every time and requires to request complete resource to lead to webpage wash with watercolours to destination server again
Contaminate time extension.
By the keystone resources of query webpage, three kinds of possible situations are remembered into different description informations, it can be effective
The information of the resource needed when loading webpage is passed into proxy server, enables proxy server straight according to description information
Related resource is received and sent, to save the time of webpage rendering.
By mobile terminal receive webpage load response, according to load response feedback return code file and resource with
Original keystone resources update, and for carrying out webpage rendering display, divide the carry out resource of situation to merge and update, enable to next time
The time that keystone resources acquisition is reduced when load allows users to faster see webpage so as to shorten webpage render time.
Fig. 6 is a kind of block diagram of webpage loading device shown according to another exemplary embodiment, as shown in fig. 6, the net
Mainly to be applied to be illustrated in proxy server 110 shown in FIG. 1, which includes page loading device
But be not limited to: the first receiving module 610, first obtains module 620 and the first feedback module 630.
First receiving module 610, be configured as receive mobile terminal send webpage the first load request, this first plus
Carrying request is that mobile terminal loads the load request sent when webpage for the first time.
First obtains module 620, is configured as obtaining the code file of webpage and the keystone resources of webpage.
First feedback module 630 is configured as feeding back the keystone resources including code file and webpage to mobile terminal
First load response, the first load response carry out wash with watercolours to webpage using code file and keystone resources for triggering mobile terminal
Dye display.
In conclusion the webpage loading device provided in the embodiment of the present disclosure, is received by the first receiving module for the first time
When client loads the load request of webpage, the code file of webpage and keystone resources are fed back into mobile terminal, to allow movement
Terminal carries out rendering to webpage according to code file and keystone resources and shows, solves server in related art scheme and receives generation
A response is sent back to after the load request of code file, then receives returning response after the acquisition request of keystone resources, and causes to move
Terminal twice wait-for-response cause webpage render time extend the problem of, improve webpage load efficiency.
Fig. 7 is a kind of block diagram of webpage loading device shown according to another exemplary embodiment, as shown in fig. 7, the net
Mainly to be applied to be illustrated in proxy server 110 shown in FIG. 1, which includes page loading device
But be not limited to: the first receiving module 701, first obtains module 702 and the first feedback module 703.
First receiving module 701, be configured as receive mobile terminal send webpage the first load request, this first plus
Carrying request is that mobile terminal loads the load request sent when webpage for the first time.
First obtains module 702, is configured as obtaining the code file of webpage and the keystone resources of webpage.
Code file said here generally refers to the main document of webpage.Code file and keystone resources can be used for webpage
Rendering show code file can define which position that the resources such as picture, text, link on webpage are located at webpage
It sets, shown in the form of which type of etc., it is seen then that code file defines the layout and display format etc. of each element in webpage.
First feedback module 703 is configured as feeding back the keystone resources including code file and webpage to mobile terminal
First load response, the first load response carry out wash with watercolours to webpage using code file and keystone resources for triggering mobile terminal
Dye display.
In order to reduce mobile terminal to the waiting time of keystone resources, selected here by the code file of webpage and crucial money
Source is sent to mobile terminal together, and also the code file of webpage and keystone resources are added in the first load response.It is very aobvious
So, the transmission of load response here is also with the transport protocol negotiated in advance between mobile terminal and proxy server.
Optionally, the first acquisition module 702 may include: the first acquisition submodule 702a and inquiry submodule 702b.
First acquisition submodule 702a is configured as when proxy server did not received the history load request of webpage,
The code file of webpage and all resources of webpage are obtained from the destination server of webpage, extract the keystone resources of webpage.
Proxy server did not received the history load request of the webpage, show none of mobile terminal once to
The proxy server is transmitted across the load request of the webpage, and the webpage that proxy server is stored beats code file and resource is equal
It is to be obtained under the triggering after the load request of first mobile terminal from the destination server of the webpage, therefore act on behalf of clothes
Business device needs obtain the code file of the webpage and all resources of the webpage from the destination server of the webpage.
Submodule 702b is inquired, is configured as when proxy server received the history load request of webpage, inquiry is deposited
The code file of the webpage of storage and the keystone resources of webpage.
Optionally, webpage loading device, further includes: the second receiving module 704, second obtains module 705, determining module
706 and second feedback module 707.
Second receiving module 704, be configured as receive mobile terminal send webpage the second load request, this second plus
Carry the description information that request includes the keystone resources of webpage.
Second obtains module 705, is configured as obtaining the code file corresponding with webpage of storage.
In general, once mobile terminal passes through agency service after mobile terminal and the completion of proxy server framework
Device accesses web page address, therefore when mobile terminal can inquire the resource for the webpage being locally stored, shows the mobile terminal
Web page address was accessed, at this time it is also assumed that the mobile terminal accessed the web page address, therefore generation by proxy server
Reason server can be stored with the code file and all resources of the webpage.
Also therefore, when proxy server received the history load request of the webpage, proxy server available
The code file corresponding with the webpage of ground storage.
Determining module 706, be configured as being determined to need according to description information the differential data fed back to mobile terminal with
And keystone resources, differential data are used to be reflected in the keystone resources of mobile terminal storage and the same pass of proxy server storage
Difference between key resource.
Second feedback module 707 is configured as being added with the differential data determined, keystone resources to mobile terminal feedback
And the second load response of code file, the second load response calculate agency according to differential data for triggering mobile terminal
Server storage with obtain the keystone resources of differential data, according to calculated keystone resources, second load response in generation
Other keystone resources of code file and the webpage being locally stored, rendering display webpage.
After proxy server determines differential data, differential data can be added in the second load response, the present age
Reason server determines the keystone resources of the webpage that mobile terminal not yet stores, then these keystone resources can be added to the
In two load responses, in addition, proxy server answers the second load request, the code file of the webpage can be also added to second and added
It carries in response.
Optionally, determining module 706 may include: determining submodule 706a and the second acquisition submodule 706b.
It determines submodule 706a, is configured as when the description information of a keystone resources including being used to indicate to inquire and
The information and cryptographic Hash exceeded the time limit then determine the original keystone resources for having cryptographic Hash according to cryptographic Hash.
In general, proxy server can store each history keyword resource of resource, be closed in this way according to each history
The cryptographic Hash of key resource, so that it may match history keyword resource corresponding to the cryptographic Hash in received description information.
Second acquisition submodule 706b is configured as obtaining the application with original keystone resources for the same resource of storage
Keystone resources calculate the difference between original keystone resources and key application resource, obtain difference corresponding with original keystone resources
Data are measured, original keystone resources are updated to key application resource for triggering mobile terminal by differential data.
What key application resource said here was stored into proxy server is same with the original keystone resources
The newest keystone resources of resource.
In conclusion the webpage loading device provided in the embodiment of the present disclosure, is received by the first receiving module for the first time
When client loads the load request of webpage, the code file of webpage and keystone resources are fed back into mobile terminal, to allow movement
Terminal carries out rendering to webpage according to code file and keystone resources and shows, solves server in related art scheme and receives generation
A response is sent back to after the load request of code file, then receives returning response after the acquisition request of keystone resources, and causes to move
Terminal twice wait-for-response cause webpage render time extend the problem of, improve webpage load efficiency.
In addition, the code file and all resources of webpage are obtained by proxy server, when the history for receiving webpage loads
When request, the code file and keystone resources for inquiring the webpage of storage can return to mobile terminal, and to carry out rendering to webpage aobvious
Show;What proxy server was obtained to destination server is all resources, therefore withouts waiting for mobile terminal and send keystone resources
Load request just know which resource needed to load;And when being loaded again to same page, return code file and key
Resource can shorten the time of resource transmission, allow user that can first see main content of pages, show so as to shorten the page
Time.
The load request for being added with description information is received by proxy server, obtains the code file of the webpage of storage,
The differential data for needing to return and keystone resources are determined by description information, relative to source material, it is only necessary to transmit seldom number
According to, shorten data transmission time.
Include the load request of information and cryptographic Hash for inquiring and having exceeded the time limit by receiving addition, proxy server according to
Cryptographic Hash determines original keystone resources, and difference is calculated with the keystone resources got in original keystone resources, that is, can determine
The differential data for needing to feed back to mobile terminal can be quasi- since cryptographic Hash and each resource are only one-to-one correspondences
It is standby to judge the content that original keystone resources include, differential data, which is calculated, for proxy server provides foundation.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of webpage loading devices, can be realized the offer of disclosure mobile terminal
Webpage loading method, which includes: processor, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
When needing to load webpage, it is determined whether be stored with the keystone resources of the webpage.
In the not stored keystone resources for having the webpage, the first load request of the webpage is sent to proxy server, it should
First load request is used to trigger proxy server and obtains the code file of webpage and the keystone resources of webpage, to mobile terminal
Feedback includes the first load response of the keystone resources of code file and webpage.
First load response of Receiving Agent server feedback.
The code file and keystone resources for including using the first load response, carry out rendering to webpage and show.
An exemplary embodiment of the present disclosure provides a kind of webpage loading devices, can be realized the disclosure and provide agency service
The webpage loading method that device provides, which includes: processor, for the storage of storage processor executable instruction
Device;
Wherein, processor is configured as:
The first load request of the webpage that mobile terminal is sent is received, which is that mobile terminal loads for the first time
The load request sent when the webpage.
Obtain the code file of webpage and the keystone resources of webpage.
It include the first load response of the keystone resources of code file and webpage to mobile terminal feedback, which answers
It answers and rendering is carried out to webpage using code file and keystone resources for triggering mobile terminal shows.
Fig. 8 is a kind of block diagram of device for webpage load shown according to an exemplary embodiment.For example, device
800 can be the equipment with internet browsing function, and equipment said here may include smart phone, and computer, number is extensively
Broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor module 814, Yi Jitong
Believe component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 818 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between device 800 and user.In some realities
It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with
Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and
And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 808 includes
One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 800 is in operation mode
It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can
Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, the relative positioning of component, such as component
For the display and keypad of device 800, sensor module 814 can be with the position of 800 1 components of detection device 800 or device
Set change, the existence or non-existence that user contacts with device 800, the temperature in 800 orientation of device or acceleration/deceleration and device 800
Variation.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging
With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or their combination.In an exemplary reality
It applies in example, communication component 816 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In one exemplary embodiment, communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned webpage loading method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 818 of device 800 to complete above-mentioned webpage load side
Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
Fig. 9 is a kind of block diagram for webpage loading device shown according to another exemplary embodiment.For example, device
900 may be provided as a network side equipment.Referring to Fig. 9, device 900 includes processing component 902, further comprise one or
Multiple processors, and the memory resource as representated by memory 904, can be by the execution of processing component 902 for storing
Instruction, such as application program.The application program stored in memory 904 may include each one or more correspondence
In the module of one group of instruction.In addition, processing component 902 is configured as executing instruction, to execute above-mentioned webpage loading method.
Device 900 can also include the power management that a power supply module 906 is configured as executive device 900, and one has
Line or radio network interface 908 are configured as device 900 being connected to network and input and output (I/O) interface 910.Dress
Setting 900 can operate based on the operating system for being stored in memory 904, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (18)
1. a kind of webpage loading method, which is characterized in that be applied in mobile terminal, which comprises
When needing to load webpage, it is determined whether be stored with the keystone resources of the webpage, include the key in the webpage
Resource and non-key resource;The non-key resource is smaller than the influence that content of the keystone resources to the webpage is shown;
In the not stored keystone resources for having the webpage, the first load request of the webpage, institute are sent to proxy server
It states the first load request and obtains the code file of the webpage and the key of the webpage for triggering the proxy server
Resource, Xiang Suoshu mobile terminal feedback include the first load response of the keystone resources of the code file and the webpage, institute
Code file is stated for defining the resource on the webpage position on the webpage and display form respectively;
Receive the first load response of the proxy server feedback;
It is aobvious to carry out rendering to the webpage for the code file for including using the first load response and the keystone resources
Show.
2. the method according to claim 1, wherein the method also includes:
When being stored with the keystone resources of the webpage, the description information of the keystone resources of the webpage is obtained;
The second load request for being added with the description information is sent to the proxy server, second load request is used for
It triggers the proxy server and obtains the code file corresponding with the webpage stored and the proxy server according to description
Information determines the differential data of the keystone resources of the webpage, Xiang Suoshu mobile terminal feedback added with the differential data with
And the second load response of the code file, the differential data are used to be reflected in the keystone resources of the mobile terminal storage
Difference between the same keystone resources of proxy server storage;
Wherein, the differential data is that the proxy server determines in the following way: when the description of a keystone resources
Information includes being used to indicate the information and cryptographic Hash for inquiring and having exceeded the time limit, then has the Kazakhstan according to cryptographic Hash determination
The original keystone resources of uncommon value;Obtain storage is the key application resource of the same resource, meter with the original keystone resources
The difference between the original keystone resources and the key application resource is calculated, difference corresponding with the original keystone resources is obtained
Data are measured, the original keystone resources are updated to the key application money for triggering the mobile terminal by the differential data
Source.
3. according to the method described in claim 2, it is characterized in that, the description letter of the keystone resources for obtaining the webpage
Breath, comprising:
Inquire each keystone resources of the webpage;
For inquiring the keystone resources of the webpage, by the first kind keystone resources of the webpage that is inquiring and exceeding the time limit
Description information, which is denoted as, to be inquired and has exceeded the time limit, and calculates the cryptographic Hash of the first kind keystone resources, the cryptographic Hash is added to
In the description information of the first kind keystone resources;
The description information of second class keystone resources of the webpage that is inquiring and not yet exceeding the time limit is denoted as and is inquired and not yet
Exceed the time limit;
The description information of the third class keystone resources for the webpage not inquired is denoted as and is not inquired.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive the second load response of the proxy server feedback;
When only including code file in the second load response, the code file and the net being locally stored are utilized
The keystone resources of page, rendering show the webpage;
When only including code file and differential data in the second load response, according to the differential data and storage
The original keystone resources are updated to key application resource, according to institute by original keystone resources corresponding with the differential data
Other keystone resources of key application resource, the code file and the webpage being locally stored are stated, are rendered described in display
Webpage;
When including code file, differential data and when keystone resources in the second load response, according to the differential data with
And the original keystone resources corresponding with the differential data of storage, the original keystone resources are updated to key application money
Source, according to the keystone resources and local for including in the key application resource, the code file, the second load response
Other keystone resources of the webpage of storage, rendering show the webpage.
5. a kind of webpage loading method, which is characterized in that be applied in proxy server, which comprises
The first load request of the webpage that mobile terminal is sent is received, first load request is that the mobile terminal adds for the first time
The load request sent when carrying the webpage;
Obtain the code file of the webpage and the keystone resources of the webpage, in the webpage comprising the keystone resources and
Non-key resource;The non-key resource is smaller than the influence that content of the keystone resources to the webpage is shown, the code
File is used to define the resource on the webpage position on the webpage and display form respectively;
It include the first load response of the keystone resources of the code file and the webpage to mobile terminal feedback, it is described
First load response carries out the webpage using the code file and the keystone resources for triggering the mobile terminal
Rendering display.
6. according to the method described in claim 5, it is characterized in that, the code file for obtaining the webpage and the net
The keystone resources of page, comprising:
When the proxy server did not received the history load request of the webpage, obtained from the destination server of the webpage
The code file of the webpage and all resources of the webpage are taken, the keystone resources of the webpage are extracted;
When the proxy server received the history load request of the webpage, the code text of the webpage of storage is inquired
The keystone resources of part and the webpage.
7. according to the method described in claim 5, it is characterized in that, the method also includes:
The second load request of the webpage that the mobile terminal is sent is received, second load request includes the pass of the webpage
The description information of key resource;
Obtain the code file corresponding with the webpage of storage;
It determines to need to feed back keystone resources to the mobile terminal according to the description information;
When the description information of a keystone resources includes being used to indicate the information and cryptographic Hash for inquiring and having exceeded the time limit, then basis
The cryptographic Hash determines the original keystone resources for having the cryptographic Hash;
Obtain storage is the key application resource of the same resource with the original keystone resources, calculates the original crucial money
Difference between source and the key application resource obtains differential data corresponding with the original keystone resources, the residual quantity
The original keystone resources are updated to the key application resource for triggering the mobile terminal by data;
To mobile terminal feedback added with differential data, keystone resources and the code file determined the
Two load responses, the second load response calculate agency's clothes according to the differential data for triggering the mobile terminal
Business device storage with obtain the keystone resources of the differential data, according to the calculated keystone resources, it is described second load
Other keystone resources of code file and the webpage being locally stored in response, rendering show the webpage.
8. a kind of webpage loading device, which is characterized in that be applied in mobile terminal, described device includes:
Determining module is configured as when needing to load webpage, it is determined whether is stored with the keystone resources of the webpage, the net
It include the keystone resources and non-key resource in page;The non-key resource is than the keystone resources to the content of the webpage
The influence of display is small;
First sending module is configured as when the determining module determines the not stored keystone resources for having the webpage, to
Proxy server sends the first load request of the webpage, and first load request is obtained for triggering the proxy server
The code file of the webpage and the keystone resources of the webpage are taken, Xiang Suoshu mobile terminal feedback includes the code file
Response is loaded with the first of the keystone resources of the webpage, the resource that the code file is used to define on the webpage exists respectively
Position and display form on the webpage;
First receiving module is configured as receiving the first load response of the proxy server feedback;
First rendering module is configured as the code file and the crucial money that include using the first load response
Source carries out rendering to the webpage and shows.
9. device according to claim 8, which is characterized in that described device further include:
Module is obtained, is configured as when the determining module is determined to be stored with the keystone resources of the webpage, described in acquisition
The description information of the keystone resources of webpage;
Second sending module is configured as asking to proxy server transmission added with the second load of the description information
It asks, second load request is used to trigger the code file corresponding with the webpage that the proxy server obtains storage,
Determine that the differential data of the keystone resources of the webpage, Xiang Suoshu mobile terminal feedback are added with the difference according to description information
The second load response of data and the code file is measured, the differential data is used to be reflected in the mobile terminal storage
Difference between keystone resources and the same keystone resources of proxy server storage,
Wherein, the differential data is that the proxy server determines in the following way: when the description of a keystone resources
Information includes being used to indicate the information and cryptographic Hash for inquiring and having exceeded the time limit, then has the Kazakhstan according to cryptographic Hash determination
The original keystone resources of uncommon value;Obtain storage is the key application resource of the same resource, meter with the original keystone resources
The difference between the original keystone resources and the key application resource is calculated, difference corresponding with the original keystone resources is obtained
Data are measured, the original keystone resources are updated to the key application money for triggering the mobile terminal by the differential data
Source.
10. device according to claim 9, which is characterized in that the acquisition module, comprising:
Submodule is inquired, is configured as inquiring each keystone resources of the webpage;
First label submodule is configured as the keystone resources of the webpage inquired for the inquiry submodule, by institute
The description information for stating the first kind keystone resources of the webpage that are that inquiry submodule inquires and exceeding the time limit, which is denoted as, to be inquired and
Exceed the time limit, calculate the cryptographic Hash of the first kind keystone resources, the cryptographic Hash is added to retouching for the first kind keystone resources
It states in information;
Second label submodule is configured as the second of the webpage that is inquiring the inquiry submodule and not yet exceeding the time limit
The description information of class keystone resources, which is denoted as, to be inquired and not yet exceeds the time limit;
Third marks submodule, is configured as the third class keystone resources for the webpage for not inquiring the inquiry submodule
Description information be denoted as and do not inquire.
11. device according to claim 9, which is characterized in that described device further include:
Second receiving module is configured as receiving the second load response of the proxy server feedback;
Second rendering module is configured as utilizing the code text when only including code file in the second load response
The keystone resources of part and the webpage being locally stored, rendering show the webpage;
Third rendering module is configured as when only including code file and differential data in the second load response, according to
The differential data and the original keystone resources corresponding with the differential data of storage update the original keystone resources
For key application resource, according to other of the key application resource, the code file and the webpage that is locally stored
Keystone resources, rendering show the webpage;
4th rendering module is configured as loading in response when described second including code file, differential data and keystone resources
When, according to the differential data and the original keystone resources corresponding with the differential data of storage, by the original key
Resource updates are key application resource, are wrapped according in the key application resource, the code file, the second load response
Other keystone resources of the keystone resources included and the webpage being locally stored, rendering show the webpage.
12. a kind of webpage loading device, which is characterized in that be applied in proxy server, described device includes:
First receiving module is configured as receiving the first load request of the webpage that mobile terminal is sent, and first load is asked
Mobile terminal described in Seeking Truth loads the load request sent when the webpage for the first time;
First obtains module, is configured as obtaining the keystone resources of the code file of the webpage and the webpage, the net
It include the keystone resources and non-key resource in page;The non-key resource is than the keystone resources to the content of the webpage
The influence of display is small, and the code file is used to define the resource position on the webpage and the displaying respectively on the webpage
Form;
First feedback module, being configured as feeding back to the mobile terminal includes that the code file and the crucial of the webpage provide
The first load response in source, the first load response utilize the code file and the pass for triggering the mobile terminal
Key resource carries out rendering to the webpage and shows.
13. device according to claim 12, which is characterized in that described first obtains module, comprising:
First acquisition submodule is configured as when the proxy server did not received the history load request of the webpage,
The code file of the webpage and all resources of the webpage are obtained from the destination server of the webpage, are extracted described
The keystone resources of webpage;
Submodule is inquired, is configured as when the proxy server received the history load request of the webpage, inquiry is deposited
The code file of the webpage of storage and the keystone resources of the webpage.
14. device according to claim 12, which is characterized in that described device further include:
Second receiving module is configured as receiving the second load request of the webpage that the mobile terminal is sent, and described second adds
Carry the description information that request includes the keystone resources of the webpage;
Second obtains module, is configured as obtaining the code file corresponding with the webpage of storage;
Determining module, be configured as being determined to need according to the description information differential data fed back to the mobile terminal with
And keystone resources, the keystone resources that the differential data is used to be reflected in the mobile terminal storage are deposited with the proxy server
Difference between the same keystone resources of storage;
Second feedback module is configured as being fed back to the mobile terminal added with the differential data determined, crucial money
Second load response of source and the code file, the second load response is for triggering the mobile terminal according to
Differential data calculate proxy server storage with obtain the keystone resources of the differential data, according to described calculated
Other keystone resources of keystone resources, the code file in the second load response and the webpage being locally stored, wash with watercolours
Dye shows the webpage;
Wherein, the determining module, comprising:
It determines submodule, is configured as when the description information of a keystone resources including being used to indicate the letter for inquiring and having exceeded the time limit
Breath and cryptographic Hash then determine the original keystone resources for having the cryptographic Hash according to the cryptographic Hash;
Second acquisition submodule is configured as obtaining the key application with the original keystone resources for the same resource of storage
Resource calculates the difference between the original keystone resources and the key application resource, obtains and the original keystone resources
The original keystone resources are updated to described answer for triggering the mobile terminal by corresponding differential data, the differential data
Use keystone resources.
15. a kind of webpage loading device, which is characterized in that be applied in mobile terminal, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When needing to load webpage, it is determined whether be stored with the keystone resources of the webpage, include the key in the webpage
Resource and non-key resource;The non-key resource is smaller than the influence that content of the keystone resources to the webpage is shown;
In the not stored keystone resources for having the webpage, the first load request of the webpage, institute are sent to proxy server
It states the first load request and obtains the code file of the webpage and the key of the webpage for triggering the proxy server
Resource, Xiang Suoshu mobile terminal feedback include the first load response of the keystone resources of the code file and the webpage, institute
Code file is stated for defining the resource on the webpage position on the webpage and display form respectively;
Receive the first load response of the proxy server feedback;
It is aobvious to carry out rendering to the webpage for the code file for including using the first load response and the keystone resources
Show.
16. a kind of webpage loading device, which is characterized in that be applied in proxy server, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The first load request of the webpage that mobile terminal is sent is received, first load request is that the mobile terminal adds for the first time
The load request sent when carrying the webpage;
Obtain the code file of the webpage and the keystone resources of the webpage, in the webpage comprising the keystone resources and
Non-key resource;The non-key resource is smaller than the influence that content of the keystone resources to the webpage is shown, the code
File is used to define the resource on the webpage position on the webpage and display form respectively;
It include the first load response of the keystone resources of the code file and the webpage to mobile terminal feedback, it is described
First load response carries out the webpage using the code file and the keystone resources for triggering the mobile terminal
Rendering display.
17. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes at least one finger
It enables, when at least one instruction is executed by processor, perform claim requires the described in any item webpage loading methods of 1-4.
18. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes at least one finger
It enables, when at least one instruction is executed by processor, perform claim requires the described in any item webpage loading methods of 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610366038.XA CN106066868B (en) | 2016-05-27 | 2016-05-27 | Webpage loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610366038.XA CN106066868B (en) | 2016-05-27 | 2016-05-27 | Webpage loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106066868A CN106066868A (en) | 2016-11-02 |
CN106066868B true CN106066868B (en) | 2019-12-03 |
Family
ID=57420974
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610366038.XA Active CN106066868B (en) | 2016-05-27 | 2016-05-27 | Webpage loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106066868B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106569902B (en) * | 2016-11-09 | 2020-09-22 | 惠州Tcl移动通信有限公司 | Display method and system for mobile file of mobile terminal |
CN107864173A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Terminal page caching method, system and readable storage medium storing program for executing |
CN108170723B (en) * | 2017-12-07 | 2020-09-29 | 维沃移动通信有限公司 | Webpage resource acquisition method, terminal equipment, server and system |
CN108537872B (en) * | 2018-03-07 | 2022-02-15 | 海信视像科技股份有限公司 | Image rendering method, mobile device and cloud device |
CN108228282B (en) * | 2018-04-04 | 2021-08-27 | 北京三快在线科技有限公司 | Method and device for loading website page |
CN111104635B (en) * | 2019-12-23 | 2023-06-30 | 上海众源网络有限公司 | Method and device for generating form webpage |
CN117235398B (en) * | 2023-11-15 | 2024-02-23 | 深圳万物安全科技有限公司 | Webpage loading method, equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN103064989A (en) * | 2013-02-03 | 2013-04-24 | 广州市动景计算机科技有限公司 | Webpage storing and opening method and device |
CN103281387A (en) * | 2013-05-31 | 2013-09-04 | 北京奇虎科技有限公司 | Method, server, client side and system for processing child resources in web page |
CN104021203A (en) * | 2014-06-17 | 2014-09-03 | 贝壳网际(北京)安全技术有限公司 | Method and device used for having access to webpage |
CN104714982A (en) * | 2013-12-17 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and system for loading webpage |
-
2016
- 2016-05-27 CN CN201610366038.XA patent/CN106066868B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN103064989A (en) * | 2013-02-03 | 2013-04-24 | 广州市动景计算机科技有限公司 | Webpage storing and opening method and device |
CN103281387A (en) * | 2013-05-31 | 2013-09-04 | 北京奇虎科技有限公司 | Method, server, client side and system for processing child resources in web page |
CN104714982A (en) * | 2013-12-17 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and system for loading webpage |
CN104021203A (en) * | 2014-06-17 | 2014-09-03 | 贝壳网际(北京)安全技术有限公司 | Method and device used for having access to webpage |
Also Published As
Publication number | Publication date |
---|---|
CN106066868A (en) | 2016-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106066868B (en) | Webpage loading method and device | |
US10579215B2 (en) | Providing content via multiple display devices | |
US20130138723A1 (en) | Dynamic browser icons | |
CN105474675A (en) | Detecting carriers for mobile devices | |
US20110119298A1 (en) | Method and apparatus for searching information | |
JP2013518338A (en) | System for displaying a cached web page, server for this, terminal for this, method for this and computer-readable recording medium recorded with this method | |
CN104462570B (en) | Web page contents acquisition methods and device | |
CN108604245B (en) | Method and device for acquiring webpage content | |
CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
KR102314868B1 (en) | Information Display Methods, Devices, Programs and Media | |
CN107105336A (en) | Data processing method and data processing equipment | |
CN105095360A (en) | Method and device for processing user requests for browser | |
CN106790743A (en) | Information transferring method, device and mobile terminal | |
CN108351889A (en) | The group of enhancing finds | |
CN107220371B (en) | Page display method and device and storage medium | |
WO2017166297A1 (en) | Wifi hotpot portal authentication method and device | |
CN111079040B (en) | Resource sniffing method, device, terminal, server and storage medium | |
CN107423324A (en) | Access method, device and the equipment of webpage | |
CN105653658B (en) | Information displaying method and device | |
KR20120025209A (en) | System for displaying cached web page, server thereof, terminal thereof, method thereof and computer recordable medium storing the method | |
CN112486617B (en) | Ciphertext data processing architecture, method, apparatus and machine readable medium | |
JP2015138500A (en) | information presentation system and information presentation method | |
CN112256445A (en) | Data processing method, device and equipment based on application program and storage medium | |
KR101498920B1 (en) | Web page pre-caching system and method for offline-executing | |
KR101537222B1 (en) | Web page pre-caching system and method for offline-executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |