CN104021203A - Method and device used for having access to webpage - Google Patents
Method and device used for having access to webpage Download PDFInfo
- Publication number
- CN104021203A CN104021203A CN201410270274.2A CN201410270274A CN104021203A CN 104021203 A CN104021203 A CN 104021203A CN 201410270274 A CN201410270274 A CN 201410270274A CN 104021203 A CN104021203 A CN 104021203A
- Authority
- CN
- China
- Prior art keywords
- data
- content
- web
- target web
- described target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a method and device used for having access to a webpage, and relates to the technical field of network communication. The method comprises the steps that an identifier of a target webpage is obtained; whether webpage information corresponding to the target webpage exists in a webpage information list stored in an internal memory is determined, wherein the webpage information list is generated according to the webpage information of part of or all of webpages stored in a hard disk in the starting stage of a browser, and the webpage information at least comprises the storage addresses of the identifier of the webpage and the content data of the webpage in the hard disk; under the condition that the webpage information corresponding to the target webpage exits in the webpage information list, the content data of the target webpage are obtained according to the webpage information corresponding to the target webpage in the webpage information list, and the target webpage is displayed according to the obtained content data. By having access to the webpage through the scheme, the expenses of a system are small, and the response speed and the user experience effect of having access to the webpage through the browser can be improved.
Description
Technical field
The present invention relates to network communications technology field, particularly a kind of method for accessed web page and device.
Background technology
When user passes through browser access webpage, may repeatedly access a certain webpage, if while accessing this webpage at every turn, all from network side, obtain the source code of webpage, waste network traffics.For above-mentioned situation, in prior art, generally the source code of the webpage of accessing is stored in hard disk, when user accesses this webpage again, first inquire about and in hard disk, whether have the not out of date source code of this webpage, if exist, directly from hard disk, obtain the source code of this webpage, and needn't again obtain from network side the source code of this webpage.Yet system overhead is larger when data query or frequent reading out data in hard disk, easily reduce the response speed of browser, affect user's experience effect.
Summary of the invention
The embodiment of the invention discloses a kind of method for accessed web page and device, the response speed when improving by browser access webpage, and user's experience effect.
For achieving the above object, the embodiment of the invention discloses a kind of method for accessed web page, described method comprises:
Obtain the sign of target web;
According to the sign of described target web, determine in the info web list that is stored in internal memory and whether have the info web that described target web is corresponding, wherein, described info web list is: the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generate, in described info web, at least comprise: the sign of webpage and the memory address of the content-data of webpage in hard disk;
In the situation that there is the info web that described target web is corresponding in described info web list, according to info web corresponding to described target web, obtain the content-data of described target web, and show described target web according to obtained content-data.
Optionally, in the situation that there is not the info web that described target web is corresponding in described info web list, also comprise:
From web page server, obtain the source code of described target web;
Resolve the source code of described target web;
According to analysis result, show described target web.
Optionally, in the situation that described info web list generates according to the part info web stored in hard disk, before the described source code that obtains described target web from web page server, also comprise:
According to the sign of described target web, determine in the content-data outside the content-data of the webpage that the list of info web described in hard disk is corresponding whether have the content-data that described target web is corresponding;
If yes, obtain the content-data that described target web is corresponding, and show described target web according to obtained content-data;
If NO, from web page server, obtain the source code of described target web.
Optionally, after the source code of the described target web of described parsing, also comprise:
The data that obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
Optionally, the data that obtain after the described source code using the source code of described target web or described target web is resolved in the content-data of described target web is stored in internal memory after, also comprise:
Upgrade the extremely described info web list of info web that described target web is corresponding.
Optionally, the data that obtain after the described source code using the source code of described target web or described target web is resolved in the content-data of described target web is stored in internal memory before, also comprise:
Detect free memory resource and whether be less than default threshold value;
If yes, according to default file, write rule, the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory;
If NO the data that, obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
Optionally, describedly according to default file, write rule, the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory, comprising:
According to default file, write rule, determine the content-data of the webpage of hard disk to be written;
Judge and in hard disk, whether have the content-data corresponding with determined content-data;
If yes, in the situation that the expired time of the expired time of determined content-data content-data corresponding with determined content-data in being later than hard disk is replaced the content-data corresponding with determined content-data in hard disk with determined content-data;
If NO, in hard disk, store determined content-data;
Discharge the memory source that determined content-data takies.
Optionally, described default file writes rule, comprising:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
In internal memory, info web is apart from expired time order from the near to the remote.
Optionally, the content-data of described target web, comprising: the source code of target web or the source code of target web is resolved after the data that obtain.
For achieving the above object, the embodiment of the invention discloses a kind of device for accessed web page, described device comprises:
Banner obtains module, for obtaining the sign of target web;
Info web determination module, be used for according to the sign of described target web, determine in the info web list that is stored in internal memory and whether have the info web that described target web is corresponding, wherein, described info web list is: the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generate, in described info web, at least comprise: the sign of webpage and the memory address of the content-data of webpage in hard disk;
The first web page display module, be used in the situation that described info web list exists the info web that described target web is corresponding, according to info web corresponding to described target web, obtain the content-data of described target web, and show described target web according to obtained content-data.
Optionally, the described device for accessed web page also comprises:
Source code obtains module, for obtain the source code of described target web from web page server;
Source code parsing module, for resolving the source code of described target web;
The second web page display module, for according to analysis result, shows described target web;
In the situation that there is not the info web that described target web is corresponding in described info web list, described info web determination module triggers described source code and obtains module, obtains source code.
Optionally, the described device for accessed web page also comprises: content-data determination module and the 3rd web page display module;
Described content-data determination module, be used in the situation that the part info web that described info web list has been stored according to hard disk generates, before described source code obtains module acquisition source code, according to the sign of described target web, determine in the content-data outside the content-data of the webpage that the list of info web described in hard disk is corresponding, whether there is the content-data that described target web is corresponding, if yes, trigger described the 3rd web page display module, show target web, if NO, trigger described source code and obtain module, obtain source code;
Described the 3rd web page display module, for obtaining the content-data that described target web is corresponding, and shows described target web according to obtained content-data to user.
Optionally, the described device for accessed web page also comprises:
Content-data memory module, for after described source code parsing module analysis source code, the data that obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
Optionally, the described device for accessed web page also comprises:
Information list update module, for after described content-data memory module is stored in internal memory by the content-data of described target web, upgrades the extremely described info web list of info web that described target web is corresponding.
Optionally, the described device for accessed web page also comprises: memory source detection module and memory source release module;
Described memory source detection module, for before described content-data memory module is stored in internal memory by the content-data of described target web, detect free memory resource and whether be less than default threshold value, if yes, trigger described memory source release module, releasing memory resource, if NO, trigger described content-data memory module, memory of content data;
Described memory source release module, writes rule for the file according to default, and the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory.
Optionally, described memory source release module, comprising: content-data determines that submodule, content-data judgement submodule, content-data replacement submodule, content-data sub module stored and memory source discharge submodule;
Described content-data is determined submodule, for the file according to default, writes rule, determines the content-data of the webpage of hard disk to be written;
Described content-data judgement submodule, for judging whether hard disk exists the content-data corresponding with determined content-data, if yes, trigger described content-data and replace submodule, replace content-data, if NO, trigger described content-data sub module stored, memory of content data;
Described content-data is replaced submodule, for in the situation that the expired time of determined content-data is later than the expired time of the content-data that hard disk is corresponding with determined content-data, with determined content-data, replace the content-data corresponding with determined content-data in hard disk;
Described content-data sub module stored, for storing determined content-data at hard disk;
Described memory source discharges submodule, the memory source taking for discharging determined content-data.
Optionally, described default file writes rule, comprising:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
In internal memory, info web is apart from expired time order from the near to the remote.
Optionally, the content-data of described target web, comprising: the source code of target web or the source code of target web is resolved after the data that obtain.
As seen from the above, in the scheme that the embodiment of the present invention provides, by this info web list storage in internal memory, when carrying out web page access, first, according to the sign of target web, inquire about in this info web list whether have the info web that target web is corresponding, if exist, according to the info web in this info web list, obtain the content-data of target web, and show this target web according to obtained content-data.Compare with inquiry or reading out data in hard disk, inquiry or reading out data speed in internal memory, and system overhead is less, response speed and user's experience effect in the time of can improving by browser access webpage.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first schematic flow sheet of the method for accessed web page that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet of the method for accessed web page that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of the method for accessed web page that Fig. 3 provides for the embodiment of the present invention;
The 4th kind of schematic flow sheet of the method for accessed web page that Fig. 4 provides for the embodiment of the present invention;
The 5th kind of schematic flow sheet of the method for accessed web page that Fig. 5 provides for the embodiment of the present invention;
The first structural representation of the device for accessed web page that Fig. 6 provides for the embodiment of the present invention;
The second structural representation of the device for accessed web page that Fig. 7 provides for the embodiment of the present invention;
The third structural representation of the device for accessed web page that Fig. 8 provides for the embodiment of the present invention;
The 4th kind of structural representation of the device for accessed web page that Fig. 9 provides for the embodiment of the present invention;
The 5th kind of structural representation of the device for accessed web page that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The first schematic flow sheet of the method for accessed web page that Fig. 1 provides for the embodiment of the present invention, the method comprises:
S101: the sign that obtains target web.
For example, the sign of above-mentioned target web can be for user be at URL (URL(uniform resource locator)) of the target web of word input area input etc.
S102: according to the sign of target web, determine in the info web list that is stored in internal memory whether have the info web that target web is corresponding.
Wherein, above-mentioned info web, at least comprise the sign of webpage and the content-data of webpage, info web list can comprise: the memory address in hard disk of the sign of webpage and the content-data of webpage, this info web list can be the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generates.
Certainly the application does not limit the content comprising in info web and info web list.
The content-data of above-mentioned target web can be the source code of target web, can be also the data that obtain after the source code of target web is resolved.
In addition, in above-mentioned info web, can also comprise the expired time of webpage.In practical application, due to same banner can corresponding a plurality of different editions webpage source code, therefore, according to the sign of target web, while whether there is info web corresponding to target web in query webpage information list, may inquire many info webs corresponding with this target web, now, can further screen again according to the expired time of webpage.
Those skilled in the art are understandable that, from internal memory, the system overhead of reading out data will be much smaller than the system overhead from hard disk reading out data, so, in a preferred embodiment of the invention, the speed reading in order to improve data, can also comprise the content-data of webpage in above-mentioned info web list.
S103: in the situation that there is the info web that target web is corresponding in info web list, obtain the content-data of target web according to info web corresponding to target web, and show target web according to obtained content-data.
From aforementioned, web data can be the source code of target web, can be also the data that obtain after the source code of target web is resolved.
If the source code that web data is target web, the info web corresponding according to target web obtains after the source code of target web from internal memory or hard disk, this source code resolved, and show target web according to analysis result.
If the data of web data for obtaining after the source code of target web is resolved, the info web corresponding according to target web obtains after the web data of target web from internal memory or hard disk, directly to user, show this target web, visible, if need to repeatedly access this target web, can save the process that obtains webpage source code from network side, and the process that webpage source code is resolved, webpage access speed can be accelerated.
As seen from the above, in the scheme that the present embodiment provides, by info web list storage in internal memory, when carrying out web page access, first, according to the sign of target web, inquire about in this info web list whether have the info web that target web is corresponding, if exist, according to the info web in this info web list, obtain the content-data of target web, and show this target web according to obtained content-data.Compare with data query in hard disk, data query speed in internal memory, and system overhead is less, response speed and user's experience effect in the time of can improving by browser access webpage.
Optionally, in above-mentioned S102, if there is not the info web of target web in info web list, as shown in Figure 2, can carry out:
S104: the source code that obtains target web from web page server.
From web page server, obtaining the source code of target web, can be by sending target web request of access to web page server, and receives web page server and realize according to the mode of the source code of the target web of received target web request of access feedback.
S105: the source code of resolving target web.
S106: according to analysis result, show target web.
Optionally, in a specific embodiment of the present invention, referring to Fig. 3, if the information list of info web list for generating according to the info web of having stored in hard disk, the method can also comprise:
S107: according to the sign of target web, determine in the content-data outside the content-data of the webpage that info web list in hard disk is corresponding, whether have the content-data that target web is corresponding, if yes, carry out S108, otherwise, carry out S104.
In practical application, the in the situation that of memory source anxiety, for assurance system is normally moved, in info web list, can only comprise the info web of the part webpage of having stored in hard disk.Therefore,, if do not find the information of target web in info web list, can also in hard disk, again search.
S108: obtain content-data corresponding to target web, and show target web according to obtained content-data.
As seen from the above, in the scheme that the present embodiment provides, even if only comprise the info web of partly having stored webpage in hard disk in the info web list of storing in internal memory, still can from hard disk, search, therefore, in the situation that consume less memory source, response speed and user's experience effect in the time of can improving by browser access webpage.
Optionally, in a specific embodiment of the present invention, referring to Fig. 4, after above-mentioned S104, can also comprise:
S109: the data that obtain after the source code of the source code of target web or target web is resolved are stored in internal memory as the content-data of target web.
Those skilled in the art are understandable that, after the content-data of target web is stored in internal memory, can also upgrade info web that this target web is corresponding to info web list, so that user accesses this target web again.
It should be noted that, the situation of the source code that is target web at the web data of target web is stored the content-data of target web and also can after S104 obtains source code, be carried out in internal memory.
As seen from the above, in the scheme that the present embodiment provides, in the situation that there is not the info web that target web is corresponding in info web list, after network side obtains the content-data of target web, in internal memory, store the content-data of this target web, enrich the content-data of the webpage in internal memory, when user repeatedly accesses this target web, can show fast this target web.
Optionally, in a specific embodiment of the present invention, referring to Fig. 5, before above-mentioned S109, can also comprise:
S110: detect free memory resource and whether be less than default threshold value, if yes, carry out S111, otherwise, carry out S109.
Wherein, default threshold value can be a concrete internal memory numerical value, as 300M etc., can be also a ratio value, as 30%, and 30% of internal memory max cap. etc.
S111: write rule according to default file, the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory.
Wherein, according to default file, write rule, the content-data of having stored webpage in internal memory is write to hard disk, when having stored the memory source that the content-data of webpage takies in releasing memory, can first according to default file, write rule, determine the content-data of the webpage of hard disk to be written; Judge again and in hard disk, whether have the content-data corresponding with determined content-data; While there is corresponding content-data, in the situation that the expired time of the expired time of determined content-data content-data corresponding with determined content-data in being later than hard disk is replaced the content-data corresponding with determined content-data in hard disk with determined content-data; While there is not corresponding content-data, in hard disk, store determined content-data; Discharge the memory source that determined content-data takies.
Wherein, default file writes rule and can comprise:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
The corresponding expired time of info web distance order from the near to the remote in internal memory.
Certainly, in practical application, be not limited in above-mentioned several memory source and discharge rule, in practical application, can determine as the case may be, for example, according to above-mentioned several internal memories, discharge memory source that in the regular mode releasing memory combining, info web takies etc.
In addition, the embodiment providing with reference to Fig. 4, those skilled in the art can expect, the content-data of having stored webpage in internal memory is write after hard disk, info web in can the list of corresponding renewal info web, so that user applies the method accessed web page.
As seen from the above, in the scheme that the present embodiment provides, the in the situation that of memory source anxiety, according to default file, write rule, by the content-data of the webpage of storing in internal memory, store in hard disk, with assurance system, normally move.
The first structural representation of the device for accessed web page that Fig. 6 provides for the embodiment of the present invention, this device comprises: banner obtains module 601, info web determination module 602 and the first web page display module 603.
Wherein, banner obtains module 601, for obtaining the sign of target web;
Info web determination module 602, be used for according to the sign of described target web, determine in the info web list that is stored in internal memory and whether have the info web that described target web is corresponding, wherein, described info web list is: the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generate, in described info web, at least comprise: the sign of webpage and the memory address of the content-data of webpage in hard disk;
The first web page display module 603, be used in the situation that described info web list exists the info web that described target web is corresponding, according to info web corresponding to described target web, obtain the content-data of described target web, and show described target web according to obtained content-data.
Concrete, the content-data of described target web, comprising: the source code of target web or the source code of target web is resolved after the data that obtain.
As seen from the above, in the scheme that the present embodiment provides, by info web list storage in internal memory, when carrying out web page access, first, according to the sign of target web, inquire about in this info web list whether have the info web that target web is corresponding, if exist, according to the info web in this info web list, obtain the content-data of target web, and show this target web according to obtained content-data.Compare with data query in hard disk, data query speed in internal memory, and system overhead is less, response speed and user's experience effect in the time of can improving by browser access webpage.
Optionally, in a specific embodiment of the present invention, referring to Fig. 7, this device can comprise: source code obtains module 604, source code parsing module 605 and the second web page display module 606.
Wherein, source code obtains module 604, for obtain the source code of described target web from web page server;
Source code parsing module 605, for resolving the source code of described target web;
Web page display submodule 606, for according to analysis result, shows described target web;
In the situation that there is not the info web that described target web is corresponding in described info web list, described info web determination module 602 triggers described source code and obtains module 604, obtains source code.
Optionally, in a specific embodiment of the present invention, referring to Fig. 8, this device can also comprise: content-data determination module 607 and the 3rd web page display module 608.
Wherein, content-data determination module 607, be used in the situation that the info web of the part webpage that described info web list has been stored according to hard disk generates, before described source code obtains module 604 acquisition source codes, according to the sign of described target web, determine in the content-data outside the content-data of the webpage that the list of info web described in hard disk is corresponding, whether there is the content-data that described target web is corresponding, if yes, trigger described the 3rd web page display module 608, show target web, if NO, trigger described source code and obtain module 604, obtain source code,
The 3rd web page display module 608, for obtaining the content-data that described target web is corresponding, and shows described target web according to obtained content-data to user.
As seen from the above, in the scheme that the present embodiment provides, even if only comprise the info web of partly having stored webpage in hard disk in the info web list of storing in internal memory, still can from hard disk, search, therefore, in the situation that consume less memory source, response speed and user's experience effect in the time of can improving by browser access webpage.
Optionally, in a specific embodiment of the present invention, referring to Fig. 9, this device can also comprise: content-data memory module 609.
Wherein, content-data memory module 609, for after described source code parsing module 605 analysis source codes, the data that obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
Preferably, this device can also comprise: information list update module (not shown).
Wherein, information list update module, for after described content-data memory module 609 is stored in internal memory by the content-data of described target web, upgrades the extremely described info web list of info web that described target web is corresponding.
As seen from the above, in the scheme that the present embodiment provides, in the situation that there is not the info web that target web is corresponding in info web list, after network side obtains the content-data of target web, in internal memory, store the content-data of this target web, enrich the content-data of the webpage in internal memory, when user repeatedly accesses this target web, can show fast this target web.
Optionally, in a specific embodiment of the present invention, referring to Figure 10, this device can also comprise: memory source detection module 610 and memory source release module 611.
Wherein, memory source detection module 610, for before described content-data memory module 607 is stored in internal memory by the content-data of described target web, detect free memory resource and whether be less than default threshold value, if yes, trigger described memory source release module 611, releasing memory resource, if NO, trigger described content-data memory module 609, memory of content data;
Memory source release module 611, writes rule for the file according to default, and the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory.
Concrete, memory source release module 611 can comprise: content-data determines that submodule, content-data judgement submodule, content-data replacement submodule, content-data sub module stored and memory source discharge submodule (not shown).
Wherein, content-data is determined submodule, for the file according to default, writes rule, determines the content-data of the webpage of hard disk to be written;
Content-data judgement submodule, for judging whether hard disk exists the content-data corresponding with determined content-data, if yes, trigger described content-data and replace submodule, replace content-data, if NO, trigger described content-data sub module stored, memory of content data;
Content-data is replaced submodule, for in the situation that the expired time of determined content-data is later than the expired time of the content-data that hard disk is corresponding with determined content-data, with determined content-data, replace the content-data corresponding with determined content-data in hard disk;
Content-data sub module stored, for storing determined content-data at hard disk;
Memory source discharges submodule, the memory source taking for discharging determined content-data.
Concrete, default file writes rule and can comprise:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
In internal memory, info web is apart from expired time order from the near to the remote.
As seen from the above, in the scheme that the present embodiment provides, the in the situation that of memory source anxiety, according to default file, write rule, by the content-data of the webpage of storing in internal memory, store in hard disk, with assurance system, normally move.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.
Claims (18)
1. for a method for accessed web page, it is characterized in that, described method comprises:
Obtain the sign of target web;
According to the sign of described target web, determine in the info web list that is stored in internal memory and whether have the info web that described target web is corresponding, wherein, described info web list is: the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generate, in described info web, at least comprise: the sign of webpage and the memory address of the content-data of webpage in hard disk;
In the situation that there is the info web that described target web is corresponding in described info web list, according to info web corresponding to described target web, obtain the content-data of described target web, and show described target web according to obtained content-data.
2. method according to claim 1, is characterized in that, in the situation that there is not the info web that described target web is corresponding in described info web list, also comprises:
From web page server, obtain the source code of described target web;
Resolve the source code of described target web;
According to analysis result, show described target web.
3. method according to claim 2, is characterized in that, in the situation that described info web list generates according to the part info web stored in hard disk, before the described source code that obtains described target web from web page server, also comprises:
According to the sign of described target web, determine in the content-data outside the content-data of the webpage that the list of info web described in hard disk is corresponding whether have the content-data that described target web is corresponding;
If yes, obtain the content-data that described target web is corresponding, and show described target web according to obtained content-data;
If NO, from web page server, obtain the source code of described target web.
4. according to the method in claim 2 or 3, it is characterized in that, after the source code of the described target web of described parsing, also comprise:
The data that obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
5. method according to claim 4, is characterized in that, the data that obtain after the described source code using the source code of described target web or described target web is resolved in the content-data of described target web is stored in internal memory after, also comprise:
Upgrade the extremely described info web list of info web that described target web is corresponding.
6. method according to claim 4, is characterized in that, the data that obtain after the described source code using the source code of described target web or described target web is resolved in the content-data of described target web is stored in internal memory before, also comprise:
Detect free memory resource and whether be less than default threshold value;
If yes, according to default file, write rule, the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory;
If NO the data that, obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
7. method according to claim 6, is characterized in that, describedly according to default file, writes rule, and the content-data of having stored webpage in internal memory is write to hard disk, and the memory source having taken to have stored the content-data of webpage in releasing memory, comprising:
According to default file, write rule, determine the content-data of the webpage of hard disk to be written;
Judge and in hard disk, whether have the content-data corresponding with determined content-data;
If yes, in the situation that the expired time of the expired time of determined content-data content-data corresponding with determined content-data in being later than hard disk is replaced the content-data corresponding with determined content-data in hard disk with determined content-data;
If NO, in hard disk, store determined content-data;
Discharge the memory source that determined content-data takies.
8. according to the method described in claim 6 or 7, it is characterized in that, described default file writes rule, comprising:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
In internal memory, info web is apart from expired time order from the near to the remote.
9. method according to claim 1, is characterized in that, the content-data of described target web, comprising: the source code of target web or the source code of target web is resolved after the data that obtain.
10. for a device for accessed web page, it is characterized in that, described device comprises:
Banner obtains module, for obtaining the sign of target web;
Info web determination module, be used for according to the sign of described target web, determine in the info web list that is stored in internal memory and whether have the info web that described target web is corresponding, wherein, described info web list is: the unloading phase of browser, according to the info web of the part or all of webpage of having stored in hard disk, generate, in described info web, at least comprise: the sign of webpage and the memory address of the content-data of webpage in hard disk;
The first web page display module, be used in the situation that described info web list exists the info web that described target web is corresponding, according to info web corresponding to described target web, obtain the content-data of described target web, and show described target web according to obtained content-data.
11. devices according to claim 10, is characterized in that, described device also comprises:
Source code obtains module, for obtain the source code of described target web from web page server;
Source code parsing module, for resolving the source code of described target web;
The second web page display module, for according to analysis result, shows described target web;
In the situation that there is not the info web that described target web is corresponding in described info web list, described info web determination module triggers described source code and obtains module, obtains source code.
12. devices according to claim 11, is characterized in that, described device also comprises: content-data determination module and the 3rd web page display module;
Described content-data determination module, be used in the situation that the part info web that described info web list has been stored according to hard disk generates, before described source code obtains module acquisition source code, according to the sign of described target web, determine in the content-data outside the content-data of the webpage that the list of info web described in hard disk is corresponding, whether there is the content-data that described target web is corresponding, if yes, trigger described the 3rd web page display module, show target web, if NO, trigger described source code and obtain module, obtain source code;
Described the 3rd web page display module, for obtaining the content-data that described target web is corresponding, and shows described target web according to obtained content-data to user.
13. according to the device described in claim 11 or 12, it is characterized in that, described device also comprises:
Content-data memory module, for after described source code parsing module analysis source code, the data that obtain after the source code of the source code of described target web or described target web is resolved are stored in internal memory as the content-data of described target web.
14. devices according to claim 13, is characterized in that, described device also comprises:
Information list update module, for after described content-data memory module is stored in internal memory by the content-data of described target web, upgrades the extremely described info web list of info web that described target web is corresponding.
15. devices according to claim 13, is characterized in that, described device also comprises: memory source detection module and memory source release module;
Described memory source detection module, for before described content-data memory module is stored in internal memory by the content-data of described target web, detect free memory resource and whether be less than default threshold value, if yes, trigger described memory source release module, releasing memory resource, if NO, trigger described content-data memory module, memory of content data;
Described memory source release module, writes rule for the file according to default, and the content-data of having stored webpage in internal memory is write to hard disk, the memory source having taken to have stored the content-data of webpage in releasing memory.
16. devices according to claim 15, it is characterized in that, described memory source release module, comprising: content-data determines that submodule, content-data judgement submodule, content-data replacement submodule, content-data sub module stored and memory source discharge submodule;
Described content-data is determined submodule, for the file according to default, writes rule, determines the content-data of the webpage of hard disk to be written;
Described content-data judgement submodule, for judging whether hard disk exists the content-data corresponding with determined content-data, if yes, trigger described content-data and replace submodule, replace content-data, if NO, trigger described content-data sub module stored, memory of content data;
Described content-data is replaced submodule, for in the situation that the expired time of determined content-data is later than the expired time of the content-data that hard disk is corresponding with determined content-data, with determined content-data, replace the content-data corresponding with determined content-data in hard disk;
Described content-data sub module stored, for storing determined content-data at hard disk;
Described memory source discharges submodule, the memory source taking for discharging determined content-data.
17. according to the device described in claim 15 or 16, it is characterized in that, described default file writes rule, comprising:
The time that in internal memory, info web is not used order from long to short; Or
In internal memory info web storage time order from long to short; Or
In internal memory, the correlativity of info web and described target web has low to high order; Or
In internal memory, info web is apart from expired time order from the near to the remote.
18. devices according to claim 10, is characterized in that, the content-data of described target web, comprising: the source code of target web or the source code of target web is resolved after the data that obtain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410270274.2A CN104021203B (en) | 2014-06-17 | 2014-06-17 | It is a kind of for accessing the method and device of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410270274.2A CN104021203B (en) | 2014-06-17 | 2014-06-17 | It is a kind of for accessing the method and device of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104021203A true CN104021203A (en) | 2014-09-03 |
CN104021203B CN104021203B (en) | 2019-07-12 |
Family
ID=51437957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410270274.2A Active CN104021203B (en) | 2014-06-17 | 2014-06-17 | It is a kind of for accessing the method and device of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104021203B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106066868A (en) * | 2016-05-27 | 2016-11-02 | 北京小米移动软件有限公司 | Webpage loading method and device |
CN107864173A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Terminal page caching method, system and readable storage medium storing program for executing |
CN108345614A (en) * | 2017-01-23 | 2018-07-31 | 易族智汇(北京)科技有限公司 | A kind of device based on memory storage and display webpage |
CN114374557A (en) * | 2022-01-07 | 2022-04-19 | 挂号网(杭州)科技有限公司 | Webpage data requesting method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN102629234A (en) * | 2012-01-18 | 2012-08-08 | 物联微电子(常熟)有限公司 | Fast retrieval method for data of built-in Flash of single chip microcomputer |
CN103077119A (en) * | 2012-12-31 | 2013-05-01 | 记忆科技(深圳)有限公司 | Data processing system and method |
CN103294718A (en) * | 2012-02-29 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and device for web page cache management |
CN103455478A (en) * | 2012-05-21 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Webpage access accelerating method and device |
CN104899208A (en) * | 2014-03-05 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Caching method and apparatus for browser |
-
2014
- 2014-06-17 CN CN201410270274.2A patent/CN104021203B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591963A (en) * | 2011-12-30 | 2012-07-18 | 奇智软件(北京)有限公司 | Method and device for controlling webpage content loading |
CN102629234A (en) * | 2012-01-18 | 2012-08-08 | 物联微电子(常熟)有限公司 | Fast retrieval method for data of built-in Flash of single chip microcomputer |
CN103294718A (en) * | 2012-02-29 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and device for web page cache management |
CN103455478A (en) * | 2012-05-21 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Webpage access accelerating method and device |
CN103077119A (en) * | 2012-12-31 | 2013-05-01 | 记忆科技(深圳)有限公司 | Data processing system and method |
CN104899208A (en) * | 2014-03-05 | 2015-09-09 | 腾讯科技(深圳)有限公司 | Caching method and apparatus for browser |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106066868A (en) * | 2016-05-27 | 2016-11-02 | 北京小米移动软件有限公司 | Webpage loading method and device |
CN106066868B (en) * | 2016-05-27 | 2019-12-03 | 北京小米移动软件有限公司 | Webpage loading method and device |
CN108345614A (en) * | 2017-01-23 | 2018-07-31 | 易族智汇(北京)科技有限公司 | A kind of device based on memory storage and display webpage |
CN107864173A (en) * | 2017-06-26 | 2018-03-30 | 平安普惠企业管理有限公司 | Terminal page caching method, system and readable storage medium storing program for executing |
CN114374557A (en) * | 2022-01-07 | 2022-04-19 | 挂号网(杭州)科技有限公司 | Webpage data requesting method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104021203B (en) | 2019-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102095069B1 (en) | Extension activation for related documents | |
CN108334534A (en) | Operation system field configuration method, apparatus, server and readable storage medium storing program for executing | |
CN105095393A (en) | Method and device for data storage | |
CN104021203A (en) | Method and device used for having access to webpage | |
JP6038894B2 (en) | Auto-suggested content item request | |
CN110874383B (en) | Data processing method and device and electronic equipment | |
CN103747072A (en) | Data reading and writing method and application server | |
CN104794228A (en) | Search result providing method and device | |
CN104919453A (en) | Per-user aggregation of database content | |
CN103841464A (en) | Video information pushing method and device | |
CN103858121B (en) | Web applications are made to obtain the method and system of database change | |
CN103473326A (en) | Method and device providing searching advices | |
US20130110643A1 (en) | Methods and systems for facilitating caching of advertisements | |
US9594762B2 (en) | Intelligent file management | |
CN104267872A (en) | Application program APP information display method and device and mobile terminal | |
CN112488694A (en) | Code scanning control method, device and system | |
CN110502299B (en) | Method and equipment for providing novel information | |
CN104267921A (en) | Page display control method and server | |
CN107526730B (en) | Translation data management method, storage medium and electronic device | |
CN106897224B (en) | Method and device for determining software testing range | |
CN104021192A (en) | Database renewing method and device | |
CN117112941A (en) | Dictionary acquisition method, dictionary acquisition device, computer device, storage medium, and program product | |
CN105373310A (en) | Method and device for updating pages in real time based on user operations | |
CN104021204A (en) | Method and device for having access to webpage | |
CN111291112A (en) | Read-write control method and device for distributed database and electronic equipment |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0071 Patentee after: Beijing cheetah Mobile Technology Co., Ltd. Address before: 100041 Beijing city Shijingshan District Badachu high tech Park West Wells Road No. 3 Building No. 3 1100A Patentee before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY CO., LTD. |