CN105512278A - Webpage display method and device - Google Patents

Webpage display method and device Download PDF

Info

Publication number
CN105512278A
CN105512278A CN201510886409.2A CN201510886409A CN105512278A CN 105512278 A CN105512278 A CN 105512278A CN 201510886409 A CN201510886409 A CN 201510886409A CN 105512278 A CN105512278 A CN 105512278A
Authority
CN
China
Prior art keywords
target web
web page
threshold
page resources
web
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510886409.2A
Other languages
Chinese (zh)
Inventor
余鹏
朱瑞贤
王广建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510886409.2A priority Critical patent/CN105512278A/en
Publication of CN105512278A publication Critical patent/CN105512278A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The invention relates to a webpage display method and device and belongs to the Internet field. The method includes the steps that when an instruction for displaying a target webpage is received, the network speed of a network which the device has access to currently is acquired; when the network speed is smaller than or equal to a first threshold value, webpage resources of the target webpage are acquired from a cache; based on the webpage resources of the target webpage, the target webpage is displayed. By means of the method, the speed and efficiency of displaying the target webpage by the terminal are improved.

Description

Webpage display process and device
Technical field
The disclosure relates to internet arena, particularly relates to a kind of Webpage display process and device.
Background technology
Universal along with internet, network becomes inalienable part in life gradually, and to browse webpage be a kind of important way that user uses network, and by browsing webpage, user can obtain various information and resource.When user needs to browse webpage, web page resources can be obtained by terminal from server, and based on this web page resources display web page.
Due to a complete webpage, to generally include HTML (Hypertext Markup Language) (English: HyperTextMark-upLanguage; Be called for short HTML), CSS (cascading style sheet) is (English: CascadingStyleSheet; Be called for short: CSS) and java script (English: javascript; Be called for short: JS) three class web page resources, certainly, can also comprise the web page resources of other kind such as picture, video, and one of them webpage can comprise one or more similar web page resources.In correlation technique, when terminal demonstration webpage, this terminal needs to send multiple acquisition request to server, wherein the corresponding class web page resources of each acquisition request.When server receives the plurality of acquisition request, send corresponding multiple web page resources respectively to this terminal.When this terminal receives the plurality of web page resources, load the plurality of web page resources, thus show this webpage.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of Webpage display process and device.
According to the first aspect of disclosure embodiment, provide a kind of Webpage display process, described method comprises;
When receiving the idsplay order of target web, obtain the network speed of current institute access network;
When described network speed is less than or equal to first threshold, from buffer memory, obtain the web page resources of described target web;
Based on the web page resources of described target web, show described target web.
In conjunction with first aspect, in the first possible implementation of above-mentioned first aspect, after the network speed of described acquisition current institute access network, also comprise:
When described network speed is greater than described first threshold and is less than or equal to Second Threshold, from buffer memory, obtain the first resource of described target web, and from server, obtain the Secondary resource of described target web;
Wherein, the web page resources of described target web comprises described first resource and described Secondary resource, and the storage space shared by described first resource is greater than the storage space shared by described Secondary resource.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of above-mentioned first aspect is possible, described from server, obtain the Secondary resource of described target web after, also comprise:
The Secondary resource of target web described in buffer memory is replaced with the Secondary resource obtained from described server.
In conjunction with the first possible implementation of first aspect or first aspect, in the third possible implementation of above-mentioned first aspect, after the network speed of described acquisition current institute access network, also comprise:
When described network speed is greater than Second Threshold, from server, obtain the web page resources of described target web.
May implementation in conjunction with the third of first aspect, in the 4th kind of possible implementation of upper first aspect, described from server, obtain the web page resources of described target web after, also comprise:
The web page resources of target web described in buffer memory is replaced with the web page resources obtained from described server.
In conjunction with first aspect to any one the possible implementation in the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of above-mentioned first aspect, it is described when described network speed is less than or equal to first threshold, obtain the web page resources of described target web from buffer memory before, also comprise:
Described first threshold and Second Threshold are set.
According to the second aspect of disclosure embodiment, provide a kind of Web page display apparatus, described device comprises:
First acquisition module, for when receiving the idsplay order of target web, obtains the network speed of current institute access network;
Second acquisition module, for when the network speed that described first acquisition module obtains is less than or equal to first threshold, obtains the web page resources of described target web from buffer memory;
Display module, for the web page resources of the target web based on described second acquisition module acquisition, shows described target web.
In conjunction with second aspect, in the first possible implementation of above-mentioned second aspect, described device also comprises:
3rd acquisition module, for when the network speed that described second acquisition module obtains is greater than described first threshold and is less than or equal to Second Threshold, obtains the first resource of described target web, and from server, obtains the Secondary resource of described target web from buffer memory;
Wherein, the web page resources of described target web comprises described first resource and described Secondary resource, and the storage space shared by described first resource is greater than the storage space shared by described Secondary resource.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of above-mentioned second aspect is possible, described device also comprises:
First replacement module, for replacing with the Secondary resource that described 3rd acquisition module obtains from described server by the Secondary resource of target web described in buffer memory.
In conjunction with the implementation that the second of second aspect or second aspect is possible, in the third possible implementation of above-mentioned second aspect, described device also comprises:
4th acquisition module, for when the network speed that described second acquisition module obtains is greater than Second Threshold, obtains the web page resources of described target web from server.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of above-mentioned second aspect, described device also comprises:
Second replacement module, for replacing with the web page resources that described 4th acquisition module obtains from described server by the web page resources of target web described in buffer memory.
In conjunction with second aspect to the arbitrary possible implementation in the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of above-mentioned second aspect, described device also comprises:
Module is set, for arranging described first threshold and Second Threshold.
According to the third aspect of disclosure embodiment, provide a kind of Web page display apparatus, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When receiving the idsplay order of target web, obtain the network speed of current institute access network;
When described network speed is less than or equal to first threshold, from buffer memory, obtain the web page resources of described target web;
Based on the web page resources of described target web, show described target web.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: in the disclosed embodiments, this terminal can when receiving the idsplay order of target web, obtain the network speed of current institute access network, when this network speed is less than or equal to first threshold, this terminal obtains whole web page resources of this target web from buffer memory, then based on the web page resources of this target web, show this target web, improve the speed that this terminal obtains the web page resources of this target web, and then improve speed and the efficiency of this this target web of terminal demonstration.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of Webpage display process according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of Webpage display process according to an exemplary embodiment.
Fig. 3 is a kind of first interface schematic diagram arranging information according to an exemplary embodiment.
Fig. 4 be a kind of according to an exemplary embodiment first threshold and Second Threshold be set interface schematic diagram is set.
Fig. 5 is the block diagram of a kind of Web page display apparatus according to an exemplary embodiment.
Fig. 6 is the block diagram of the another kind of Web page display apparatus according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of a kind of Webpage display process according to an exemplary embodiment, and as shown in Figure 1, this Webpage display process is used for, in terminal, comprising the following steps.
In a step 101, when receiving the idsplay order of target web, obtain the network speed of current institute access network.
In a step 102, when this network speed is less than or equal to first threshold, from buffer memory, the web page resources of this target web is obtained.
In step 103, based on the web page resources of this target web, show this target web.
In the disclosed embodiments, this terminal can when receiving the idsplay order of target web, obtain the network speed of current institute access network, when this network speed is less than or equal to first threshold, this terminal obtains whole web page resources of this target web from buffer memory, then based on the web page resources of this target web, shows this target web, improve the speed that this terminal obtains the web page resources of this target web, and then improve speed and the efficiency of this this target web of terminal demonstration.
In another embodiment of the present disclosure, after obtaining the network speed of current institute access network, also comprise:
When this network speed is greater than this first threshold and is less than or equal to Second Threshold, from buffer memory, obtain the first resource of this target web, and from server, obtain the Secondary resource of this target web;
Wherein, the web page resources of this target web comprises this first resource and this Secondary resource, and the storage space shared by this first resource is greater than the storage space shared by this Secondary resource.
In another embodiment of the present disclosure, obtain the Secondary resource of this target web from server after, also comprise:
The Secondary resource of this target web in buffer memory is replaced with the Secondary resource obtained from this server.
In another embodiment of the present disclosure, after obtaining the network speed of current institute access network, also comprise:
When this network speed is greater than Second Threshold, from server, obtain the web page resources of this target web.
In another embodiment of the present disclosure, obtain the web page resources of this target web from server after, also comprise:
The web page resources of this target web in buffer memory is replaced with the web page resources obtained from this server.
In another embodiment of the present disclosure, when this network speed is less than or equal to first threshold, obtain the web page resources of this target web from buffer memory before, also comprise:
This first threshold and Second Threshold are set.
Above-mentioned all alternatives, all can form embodiment of the present disclosure according to combining arbitrarily, disclosure embodiment repeats no longer one by one to this.
Fig. 2 is the process flow diagram of a kind of Webpage display process according to an exemplary embodiment, and as shown in Figure 2, this Webpage display process is used for, in terminal, comprising the following steps.
In step 201, first threshold and the Second Threshold of network speed are set.
When this terminal needs display web page, the web page resources of this webpage can be obtained from buffer memory, also the web page resources of this webpage can be obtained from server, when this terminal obtains the web page resources of this webpage from server, need to be obtained by network, and it is very large by the impact of present access network network speed by the speed of this web page resources of Network Capture, therefore, the speed of web page resources is obtained in order to improve this terminal, this terminal can arrange first threshold and the Second Threshold of network speed, and the network speed of present access network and this first threshold are compared, and the network speed of present access network and Second Threshold are compared, judge current network condition, thus determine the need of obtaining this web page resources from server.
Wherein, this terminal can be that mobile phone, computer etc. have network access facility, can obtain web page resources and based on the equipment of this web page resources display-object webpage.
It should be noted that, this first threshold and this Second Threshold can by this terminal default settings, and this first threshold is lower than Second Threshold.Such as, when this terminal uses mobile network, this first threshold can be the average network speed of 2G network, and this Second Threshold can the average network speed of 3G network; When this terminal uses broadband network, the average network speed that this first threshold can be the bandwidth of this broadband network when being 2M, and the average network speed of the bandwidth that this Second Threshold can be this broadband network when being 10M, certainly, this first threshold and this Second Threshold also can be arranged according to the applied environment of reality by user, and the method to set up of disclosure embodiment to this first threshold and Second Threshold does not do concrete restriction.
In addition, when first threshold and this Second Threshold are arranged according to the applied environment of reality by user, this terminal can when receiving first and arranging instruction, display first arranges information, this first arranges information and whether arranges this first threshold and this Second Threshold for pointing out user, when this terminal based on this first arrange information receive confirm instruction time, display first arranges interface, and first arrange in interface at this and detect this user first threshold and Second Threshold are set, thus enable this first threshold and Second Threshold meet the application demand of this terminal under various network environment.
It should be noted that, this terminal demonstration first is arranged information and can be shown by window, play the modes such as window display and show, and disclosure embodiment does not do concrete restriction to this.
Also it should be noted that, first arranges instruction for arranging first threshold and Second Threshold, this confirmation instruction is used for confirmation and arranges first threshold and Second Threshold, and this first arranges instruction and this confirmation instruction and all can be triggered by user, this user can be triggered by specific operation, this specific operation can be clicking operation, slide, shake operation etc., and disclosure embodiment does not do concrete restriction to this.
Also it should be noted that, this terminal also can arbitrary step in step 202 to step 207 to user in display, this first arranges information, thus make this user can determine at any time use or do not use this first threshold and Second Threshold, and adjust this first threshold and this Second Threshold at any time, improve the dirigibility of this first threshold and this Second Threshold.
Such as, this terminal is when receiving first and arranging instruction, display as shown in Figure 3 first arrange information " first threshold and Second Threshold are set? " also comprise " determination " and " cancellation " button in figure 3, confirmation instruction can be triggered when user clicks " determination " button, when user clicks " cancellation " button, cancellation instruction can be triggered.When this terminal based on this first arrange information receive confirm instruction time, this terminal can show as shown in Figure 4 interface is set, thus first threshold and the Second Threshold of user's setting is detected arranging in interface shown in Fig. 4, suppose that first threshold is 20kb/s, Second Threshold 100kb/s.Wherein, " determination " and " cancellation " button can be comprised in the diagram, can not certainly comprise, when not comprising " determination " and " cancellation " button, this terminal can user complete first threshold and Second Threshold input after certain time length, determine the first threshold that user is arranged and Second Threshold.
Wherein, after this terminal arranges first threshold and Second Threshold based on above-mentioned steps 201, this terminal can carry out display web page in accordance with the following steps.
In step 202., when receiving the idsplay order of target web, obtain the network speed of current institute access network.
Owing to needing the network speed of current for this terminal institute access network and the first threshold of setting to be compared, and the network speed of current institute access network and Second Threshold are compared, judge current accessed network state, thus determine the web page resources obtaining this target web from buffer memory, or from server, obtain the web page resources of this target web, therefore, when this terminal receives the idsplay order of target web, the network speed of current institute access network can be obtained.
It should be noted that, this idsplay order is for determining the target web that this terminal shows, thus from server or buffer memory, obtaining the web page resources of this target web, this idsplay order can be triggered by specific operation by user, and disclosure embodiment does not do concrete restriction to this.
In addition, target web mark can be carried in this idsplay order, this target web mark is used for unique identification target web, and target web mark can be the address information, web page title etc. of target web, this address information can be that URL(uniform resource locator) is (English: UniformResourceLocator; Be called for short: URL).
Also it should be noted that, the network speed obtaining current institute access network can with reference to correlation technique, and disclosure embodiment repeats no longer one by one.
In step 203, this network speed and first threshold are compared, and this network speed and Second Threshold are compared, when this network speed is less than or equal to first threshold, perform step 204, when this network speed is greater than first threshold and is less than or equal to Second Threshold, perform step 205, when this network speed is greater than Second Threshold, perform step 206.
By this network speed and first threshold are compared, and this network speed and Second Threshold are compared, and then judge the network speed situation of present access network, and for different network speed situations, take different modes to obtain this web page resources, to improve the speed obtaining this web page resources.
Wherein, when this network speed is less than or equal to first threshold, determine that the current network speed situation of this terminal is for poor; When this network speed is greater than first threshold and is less than or equal to Second Threshold, determine that the current network speed situation of this terminal is good; When this network speed is greater than Second Threshold, determine that the current network speed situation of this terminal is excellent.Thus when obtaining the web page resources of target web from server, network speed situation is that the speed of difference is the slowest, and network speed situation is that good speed is taken second place, and network speed situation is excellent speed.
Such as, the first threshold that this terminal is arranged is 20kb/s, Second Threshold is 100kb/s, when the network speed that this terminal gets present access network is 50kb/s, this network speed and first threshold is compared, and this network speed and Second Threshold are compared, from determining 50kb/s>20kb/s and 50kb/s<100kb/s, therefore, determine that current network speed situation is good, perform step 205.
In step 204, from buffer memory, obtain the web page resources of this target web, perform step 207.
When current network speed situation is difference, if when this terminal obtains the web page resources of this target web from server, speed is slower, may time of at substantial, therefore, this terminal directly can obtain the web page resources of this target web from local cache, if in the buffer memory of this terminal during the web page resources of not this target web, just obtain the web page resources of this target web from server.
It should be noted that, after this terminal obtains the web page resources of this target web from server, this web page resources can be stored in local cache by this terminal, afterwards, if when this terminal also needs to show this target web, directly can obtain this web page resources from buffer memory, thus improve web displaying speed.
In addition, in the disclosed embodiments, in order to distinguish the web page resources of each webpage, regardless of in the local cache of terminal, still in the server, the corresponding relation between this web page resources banner corresponding with this web page resources can be stored when storing web page resources.That is to say, in the local cache and server of terminal, all can store the corresponding relation between banner and web page resources.
When this terminal obtains the web page resources of this target web from buffer memory, this terminal can identify according to this target web, from the corresponding relation between the banner stored and web page resources, obtain corresponding web page resources, and the web page resources of acquisition is defined as the web page resources of this target web.
And when this terminal obtains the web page resources of this target web from server, this terminal can send acquisition request conforms to server, this target web mark is carried in this acquisition request conforms, when server receives this acquisition request conforms, identify based on this target web, from the corresponding relation between the banner stored and web page resources, obtain corresponding web page resources, and the web page resources of acquisition is sent to this terminal.
It should be noted that, all web page resources required when the web page resources of this target web is this target web of display, such as, HTML, CSS and JS tri-class web page resources, certainly, when also comprising the content such as picture, video in this target web, in this web page resources, the resource such as picture, video can also be comprised.
In step 205, from buffer memory, obtain the first resource of this target web, and from server, obtain the Secondary resource of this target web, perform step 207.
Because this target web may comprise multiple web page resources, and may picture be comprised in the plurality of web page resources, the web page resources that the storage spaces such as video are larger, also the smaller web page resources of storage space may be comprised, and when the storage space shared by web page resources is smaller, the speed obtaining this web page resources from server affects not quite by network speed, therefore when current network speed situation is good, this terminal can obtain the first resource of this target web from buffer memory, the Secondary resource of this target web is obtained from server, wherein, the web page resources of this target web comprises this first resource and this Secondary resource, and the storage space shared by this first resource is greater than the storage space shared by this Secondary resource.
Wherein, this server is the server storing this web page resources in network.
This terminal obtains the first resource of this target web from buffer memory, and obtain the Secondary resource of this target web from server before, this web page resources can be divided into first resource and Secondary resource by this terminal.And be divided into by this web page resources the operation of first resource and Secondary resource can be for: the storage space shared by each web page resources obtaining this target web from buffer memory, storage space shared by this each web page resources is compared with resource threshold respectively, and web page resources storage space being greater than this resource threshold is defined as first resource, web page resources storage space being less than or equal to this resource threshold is defined as Secondary resource.
Due to this web page resources be picture, video or music time, this web page resources is general all larger, therefore the operation of first resource and Secondary resource is divided into by this web page resources to be: the picture in the web page resources of this target web, video and music to be defined as Secondary resource, other resources except picture, video and music are defined as first resource.
It should be noted that, resource threshold can be arranged in advance, and this resource threshold can by this terminal default setting; Or, this terminal also can when receiving second and arranging instruction, display second arranges information, this second arranges information and whether arranges this resource threshold for pointing out user, when this terminal based on this second arrange information receive confirm instruction time, display second arranges interface, and second arranges in interface the resource threshold detecting user and arrange at this, and disclosure embodiment is not specifically limited this.
Wherein, during this second information of this terminal demonstration, can be shown by window, play the modes such as window display and show, disclosure embodiment does not do concrete restriction to this.
It should be noted that, second arranges instruction for arranging resource threshold, and this confirmation instruction is used for confirmation and arranges resource threshold, and this second arranges instruction and this confirmation instruction and all can be triggered by user, this user can be triggered by specific operation, and disclosure embodiment does not do concrete restriction to this.
In addition, this terminal obtains the first resource of this target web from buffer memory, and when obtaining the Secondary resource of this target web from server, this terminal can identify according to this target web, from the corresponding relation between the banner stored and web page resources, obtain the first resource in corresponding web page resources, this terminal can also send Secondary resource to server and obtain request, this Secondary resource obtains in request and carries this target web mark, when server receives this Secondary resource acquisition request, identify based on this target web, from the corresponding relation between the banner stored and web page resources, obtain the Secondary resource in corresponding web page resources, and the Secondary resource of acquisition is sent to this terminal, this terminal is when getting this first resource and this Secondary resource, this first resource and this Secondary resource are all defined as the web page resources of this target web.
Further, this terminal is from after server obtains this Secondary resource, the Secondary resource of this target web in buffer memory can be replaced with the Secondary resource obtained from this server, to upgrade the Secondary resource in buffer memory, when this terminal shows this target web again and needs obtain this Secondary resource from buffer memory, also can get newer Secondary resource, improve the efficiency that this terminal obtains web page resources.
Also it should be noted that, when this terminal obtains this first resource from buffer memory, if do not store this first resource in this buffer memory, then this terminal can obtain this first resource from server, and obtain first resource from server after, then this first resource is stored in the buffer.
Such as, the web page resources of this target web comprises resource 1, resource 2, resource 3 and resource 4, storage space shared by resource 1 is 25kb, storage space shared by resource 2 is 3mb, storage space shared by resource 3 is 100kb, storage space shared by resource 4 is 200kb, and resource threshold is 120kb, therefore, respectively by this resource 1, resource 2, resource 3, storage space shared by resource 4 compares with this resource threshold respectively, determine that resource 1 and the storage space shared by resource 3 are less than this resource threshold, and determine that resource 2 and the storage space shared by resource 4 are greater than this resource threshold, therefore resource 1 and resource 3 are defined as Secondary resource, resource 2 and resource 4 are defined as first resource, then this terminal obtains Secondary resource from server, first resource is obtained from buffer memory.
In step 206, from server, obtain the web page resources of this target web, perform step 207.
When current network speed situation is excellent, determine that this terminal obtains the speed of web page resources from server, therefore, this terminal can obtain the web page resources of this target web from server, and the web page resources of this target web in buffer memory is replaced with the web page resources obtained from this server.
In step 207, based on the web page resources of this target web, show this target web.
When this terminal gets all web page resources that this target web comprises, this terminal based on the web page resources of this target web, can show this target web.
It should be noted that, this terminal is based on the web page resources of this target web, and the method showing this target web can with reference to correlation technique, and disclosure embodiment is not specifically limited this.
In the disclosed embodiments, this terminal can arrange first threshold and the Second Threshold of network speed, when receiving the idsplay order of target web, obtain the network speed of current institute access network, and according to the relation of this network speed and first threshold, and with the relation of Second Threshold, the situation of current network speed is divided into excellent, good, poor three kinds of situations.When network speed situation is excellent, this terminal obtains whole web page resources of target web from server, when network speed situation is good, this terminal obtains Secondary resource, from buffer memory, obtains first resource from server, when network speed situation is for difference, this terminal obtains whole web page resources of this target web from buffer memory, and then this terminal is based on the web page resources of this target web, shows this target web.This terminal is according to the situation of current network speed, select different modes to obtain the web page resources of this target web neatly, thus improve the speed that this terminal obtains the web page resources of this target web widely, and then improve speed and the efficiency of this this target web of terminal demonstration.
Fig. 5 is a kind of Web page display apparatus block diagram according to an exemplary embodiment.With reference to Fig. 5, this device comprises the first acquisition module 501, second acquisition module 502, display module 503.
First acquisition module 501, for when receiving the idsplay order of target web, obtains the network speed of current institute access network;
Second acquisition module 502, for when the network speed that this first acquisition module 501 obtains is less than or equal to first threshold, obtains the web page resources of this target web from buffer memory;
Display module 503, for the web page resources of target web obtained based on this second acquisition module 502, shows this target web.
In another embodiment of the present disclosure, this device also comprises the 3rd acquisition module.
3rd acquisition module, for when the network speed that this second acquisition module 502 obtains is greater than this first threshold and is less than or equal to Second Threshold, obtains the first resource of this target web, and from server, obtains the Secondary resource of this target web from buffer memory;
Wherein, the web page resources of this target web comprises this first resource and this Secondary resource, and the storage space shared by this first resource is greater than the storage space shared by this Secondary resource.
In another embodiment of the present disclosure, this device also comprises replacement module.
First replacement module, for replacing with the Secondary resource that the 3rd acquisition module obtains from this server by the Secondary resource of this target web in buffer memory.
In another embodiment of the present disclosure, this device also comprises the 4th acquisition module
4th acquisition module, for when the network speed that this second acquisition module 502 obtains is greater than Second Threshold, obtains the web page resources of this target web from server.
In another embodiment of the present disclosure, this device also comprises the second replacement module.
Second replacement module, for replacing with the web page resources that the 4th acquisition module obtains from this server by the web page resources of this target web in buffer memory.
In another embodiment of the present disclosure, this device also comprises and arranges module.
Module is set, for arranging this first threshold and Second Threshold.
In the disclosed embodiments, this terminal can when receiving the idsplay order of target web, obtain the network speed of current institute access network, when this network speed is less than or equal to first threshold, this terminal obtains whole web page resources of this target web from buffer memory, then based on the web page resources of this target web, shows this target web, improve the speed that this terminal obtains the web page resources of this target web, and then improve speed and the efficiency of this this target web of terminal demonstration.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 6 is the block diagram of a kind of device 600 for web displaying according to an exemplary embodiment.Such as, device 600 can be mobile phone, computing machine, tablet device etc.
With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, storer 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of I/O (I/O), sensor module 614, and communications component 616.
The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 602 can comprise one or more processor 620 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing components 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 608 and processing components 602.
Storer 604 is configured to store various types of data to be supported in the operation of device 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 606 is device 600 provide power supply.Power supply module 606 can comprise power-supply management system, one or more power supply, and other with generate for device 600, manage and assembly that power distribution is associated.
Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When device 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loudspeaker, for output audio signal.
I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 614 comprises one or more sensor, for providing the state estimation of various aspects for device 600.Such as, sensor module 614 can detect the opening/closing state of device 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right pick-up unit 600 of sensor module 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the temperature variation of device 600 orientation or acceleration/deceleration and device 600.Sensor module 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 604 of instruction, above-mentioned instruction can perform said method by the processor 620 of device 600.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of Webpage display process, described method comprises:
When receiving the idsplay order of target web, obtain the network speed of current institute access network;
When this network speed is less than or equal to first threshold, from buffer memory, obtain the web page resources of this target web;
Based on the web page resources of this target web, show this target web.
In another embodiment of the present disclosure, after obtaining the network speed of current institute access network, also comprise:
When this network speed is greater than this first threshold and is less than or equal to Second Threshold, from buffer memory, obtain the first resource of this target web, and from server, obtain the Secondary resource of this target web;
Wherein, the web page resources of this target web comprises this first resource and this Secondary resource, and the storage space shared by this first resource is greater than the storage space shared by this Secondary resource.
In another embodiment of the present disclosure, obtain the Secondary resource of this target web from server after, also comprise:
The Secondary resource of this target web in buffer memory is replaced with the Secondary resource obtained from this server.
In another embodiment of the present disclosure, after obtaining the network speed of current institute access network, also comprise:
When this network speed is greater than Second Threshold, from server, obtain the web page resources of this target web.
In another embodiment of the present disclosure, obtain the web page resources of this target web from server after, also comprise:
The web page resources of this target web in buffer memory is replaced with the web page resources obtained from this server.
In another embodiment of the present disclosure, when this network speed is less than or equal to first threshold, obtain the web page resources of this target web from buffer memory before, also comprise:
This first threshold and Second Threshold are set.
In the disclosed embodiments, this terminal can when receiving the idsplay order of target web, obtain the network speed of current institute access network, when this network speed is less than or equal to first threshold, this terminal obtains whole web page resources of this target web from buffer memory, then based on the web page resources of this target web, shows this target web, improve the speed that this terminal obtains the web page resources of this target web, and then improve speed and the efficiency of this this target web of terminal demonstration.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a Webpage display process, is characterized in that, described method comprises:
When receiving the idsplay order of target web, obtain the network speed of current institute access network;
When described network speed is less than or equal to first threshold, from buffer memory, obtain the web page resources of described target web;
Based on the web page resources of described target web, show described target web.
2. the method for claim 1, is characterized in that, after the network speed of described acquisition current institute access network, also comprises:
When described network speed is greater than described first threshold and is less than or equal to Second Threshold, from buffer memory, obtain the first resource of described target web, and from server, obtain the Secondary resource of described target web;
Wherein, the web page resources of described target web comprises described first resource and described Secondary resource, and the storage space shared by described first resource is greater than the storage space shared by described Secondary resource.
3. method as claimed in claim 2, is characterized in that, described from server, obtain the Secondary resource of described target web after, also comprise:
The Secondary resource of target web described in buffer memory is replaced with the Secondary resource obtained from described server.
4. method as claimed in claim 1 or 2, is characterized in that, after the network speed of described acquisition current institute access network, also comprise:
When described network speed is greater than Second Threshold, from server, obtain the web page resources of described target web.
5. method as claimed in claim 4, is characterized in that, described from server, obtain the web page resources of described target web after, also comprise:
The web page resources of target web described in buffer memory is replaced with the web page resources obtained from described server.
6. the method as described in claim as arbitrary in claim 1-5, is characterized in that, described when described network speed is less than or equal to first threshold, before obtaining the web page resources of described target web, also comprises from buffer memory:
Described first threshold and Second Threshold are set.
7. a Web page display apparatus, is characterized in that, described device comprises:
First acquisition module, for when receiving the idsplay order of target web, obtains the network speed of current institute access network;
Second acquisition module, for when the network speed that described first acquisition module obtains is less than or equal to first threshold, obtains the web page resources of described target web from buffer memory;
Display module, for the web page resources of the target web based on described second acquisition module acquisition, shows described target web.
8. device as claimed in claim 7, it is characterized in that, described device also comprises:
3rd acquisition module, for when the network speed that described second acquisition module obtains is greater than described first threshold and is less than or equal to Second Threshold, obtains the first resource of described target web, and from server, obtains the Secondary resource of described target web from buffer memory;
Wherein, the web page resources of described target web comprises described first resource and described Secondary resource, and the storage space shared by described first resource is greater than the storage space shared by described Secondary resource.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
First replacement module, for replacing with the Secondary resource that described 3rd acquisition module obtains from described server by the Secondary resource of target web described in buffer memory.
10. device as claimed in claim 7 or 8, it is characterized in that, described device also comprises:
4th acquisition module, for when the network speed that described second acquisition module obtains is greater than Second Threshold, obtains the web page resources of described target web from server.
11. devices as claimed in claim 10, it is characterized in that, described device also comprises:
Second replacement module, for replacing with the web page resources that described 4th acquisition module obtains from described server by the web page resources of target web described in buffer memory.
Device as described in 12. claims as arbitrary in right 7-11, it is characterized in that, described device also comprises:
Module is set, for arranging described first threshold and Second Threshold.
13. 1 kinds of Web page display apparatus, is characterized in that, described device comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When receiving the idsplay order of target web, obtain the network speed of current institute access network;
When described network speed is less than or equal to first threshold, from buffer memory, obtain the web page resources of described target web;
Based on the web page resources of described target web, show described target web.
CN201510886409.2A 2015-12-04 2015-12-04 Webpage display method and device Pending CN105512278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510886409.2A CN105512278A (en) 2015-12-04 2015-12-04 Webpage display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510886409.2A CN105512278A (en) 2015-12-04 2015-12-04 Webpage display method and device

Publications (1)

Publication Number Publication Date
CN105512278A true CN105512278A (en) 2016-04-20

Family

ID=55720260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510886409.2A Pending CN105512278A (en) 2015-12-04 2015-12-04 Webpage display method and device

Country Status (1)

Country Link
CN (1) CN105512278A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource
CN111125577A (en) * 2019-11-22 2020-05-08 百度在线网络技术(北京)有限公司 Webpage processing method, device, equipment and storage medium
CN112115388A (en) * 2020-09-09 2020-12-22 深圳市欢太科技有限公司 Webpage display method, mobile terminal and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090050113A (en) * 2007-11-02 2009-05-20 주식회사 엘지텔레콤 Method and equipment for first connecting page loading velocity improvement using exclusive cache memory to mobile internet browser
CN102402518A (en) * 2010-09-09 2012-04-04 中国移动通信有限公司 Method and device for accessing webpage
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN102867007A (en) * 2011-07-08 2013-01-09 腾讯科技(深圳)有限公司 Webpage browsing method and device
CN103377194A (en) * 2012-04-16 2013-10-30 苏州工业园区进一科技有限公司 Method, device and browser for accelerating access to web pages
CN103902588A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Webpage access method and user terminal
CN104104707A (en) * 2013-04-12 2014-10-15 腾讯科技(深圳)有限公司 Webpage data update method, terminal, cache server and system
CN104156233A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Method, device and terminal for updating light applications in offline manner
CN104156401A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Webpage loading method, device and equipment
CN104699780A (en) * 2015-03-12 2015-06-10 浪潮集团有限公司 Method for improving webpage response speed under large data volume

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090050113A (en) * 2007-11-02 2009-05-20 주식회사 엘지텔레콤 Method and equipment for first connecting page loading velocity improvement using exclusive cache memory to mobile internet browser
CN102402518A (en) * 2010-09-09 2012-04-04 中国移动通信有限公司 Method and device for accessing webpage
CN102867007A (en) * 2011-07-08 2013-01-09 腾讯科技(深圳)有限公司 Webpage browsing method and device
CN102591963A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for controlling webpage content loading
CN103377194A (en) * 2012-04-16 2013-10-30 苏州工业园区进一科技有限公司 Method, device and browser for accelerating access to web pages
CN103902588A (en) * 2012-12-27 2014-07-02 腾讯科技(深圳)有限公司 Webpage access method and user terminal
CN104104707A (en) * 2013-04-12 2014-10-15 腾讯科技(深圳)有限公司 Webpage data update method, terminal, cache server and system
CN104156233A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Method, device and terminal for updating light applications in offline manner
CN104156401A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Webpage loading method, device and equipment
CN104699780A (en) * 2015-03-12 2015-06-10 浪潮集团有限公司 Method for improving webpage response speed under large data volume

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource
CN106886545B (en) * 2016-06-08 2020-10-02 阿里巴巴集团控股有限公司 Page display method, page resource caching method and device
CN111125577A (en) * 2019-11-22 2020-05-08 百度在线网络技术(北京)有限公司 Webpage processing method, device, equipment and storage medium
US11475093B2 (en) 2019-11-22 2022-10-18 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus for processing webpage, device, and storage medium
CN112115388A (en) * 2020-09-09 2020-12-22 深圳市欢太科技有限公司 Webpage display method, mobile terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105338399A (en) Image acquisition method and device
CN105338409A (en) Network video pre-loading method and device
CN105159524A (en) Interface display method and apparatus
CN105554581A (en) Method and device for bullet screen display
CN105550357A (en) Web page refreshing method and device
CN104615655A (en) Information recommendation method and device
CN105530292A (en) Page image display method and device
CN105630411A (en) Memory management method and apparatus
CN104111720A (en) Electronic device control method and device and electronic device
CN103885712A (en) Method and device for adjusting webpage and electronic device
CN104580019A (en) Network service supplying method and device
CN104536787A (en) Resource preloading method and device
CN105630337A (en) Control controlling method and device
CN104503690A (en) Arrangement method and device for application icons
CN104020924A (en) Label establishing method and device and terminal
CN105354017A (en) Information processing method and apparatus
CN104572875A (en) Popularization information putting effectiveness determining method and device
CN104035977A (en) Webpage loading method and device
CN105468417A (en) Application software installation method and device
CN105227986A (en) Synchronization processing method and device
CN105242837A (en) Application page acquisition method and terminal
CN105550213A (en) Picture browsing method and device
CN105488200A (en) Webpage display method and device
CN105487758A (en) Method and device for popup control of application software, and terminal equipment
CN105320747A (en) Method and apparatus for stopping web page refreshing and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Yu Peng

Inventor after: Zhu Ruixian

Inventor after: Wang Guangjian

Inventor before: Yu Peng

Inventor before: Zhu Ruixian

Inventor before: Wang Guangjian

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420